I am using root_fs_redhat_7.0_big.bz2 as the root filesystem when I compile and patch the kernel to run uml. After I boot uml, I can not login because I do not know the password for root and user.
No such problem with debian package.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Another way to deal with the uml in the eairly stages is mount the root_fs, this is also how I got the modules loaded.
su -
mkdir -p /mnt/uml ; # any mount point
cd /usr/src/uml ; # or your path to uml
mount -t ext2 -o loop root_fs /mnt /uml
chroot /mnt/uml /bin/bash --login
passwd root
exit
umount /mnt/uml
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using root_fs_redhat_7.0_big.bz2 as the root filesystem when I compile and patch the kernel to run uml. After I boot uml, I can not login because I do not know the password for root and user.
No such problem with debian package.
Here's what I did to solve the problem:
I booted uml linux in the single user mode as follows:
/usr/bin/linux s
Then I changed the root password using the passwd command.
Then I halted uml linux using the halt command.
Then I started /usr/bin/linux in multi-user mode.
Another way to deal with the uml in the eairly stages is mount the root_fs, this is also how I got the modules loaded.
su -
mkdir -p /mnt/uml ; # any mount point
cd /usr/src/uml ; # or your path to uml
mount -t ext2 -o loop root_fs /mnt /uml
chroot /mnt/uml /bin/bash --login
passwd root
exit
umount /mnt/uml