On Fri, Feb 10, 2006 at 03:58:35AM -0700, Yu Yang wrote: Hello,Yu > > I am a newbie to user-model-linux. Sorry for the spamming naive questions. > > I patched Linux kernel 2.6.14.7 , and compile it successfully. But I stuck > on > make UML run. I tried to specify some file systems and make UML run, > > # mount root_fs_slack8.1 /dev/ubd/ -o loop > # ./linux root=/dev/ubd
it is unsafe to run uml on a previously mounted filesystem! > > UML reports errors similar to below: > > [42949373.440000] VFS: Cannot open root device "ubd" or unknown-block(0,0) > [42949373.440000] Please append a correct "root=" boot option > [42949373.440000] Kernel panic - not syncing: VFS: Unable to mount root fs > on unknown-block(0,0) > [42949373.440000] after you created your own filesystem (let's call root_fs) or if you prefer to use a downloaded one, be sure your user is in uml-net group (uml-utilities's group), otherwise add to it, then: foo$ linux ubd0=root_fs umid=test root_fs is considered a file from the host point of view, while a filesystem from "linux2 point of view. The default preference should invoke xterm to be run as a console for "linux". If you need to customize your root_fs, please: root# mount -o loop root_fs /mnt root# <whatever customization you prefer> (i.e. roor# vim /mnt/etc/inittab ...) root# umount /mnt foo$ linux ubd0=root_fs umid=test I suggest to use the option umid=test because if you have problem, on another virtual condole/xterm you can run foo$ uml_mconsole test and enter in this console mode and halt/reboot/config new devices ... Read the HOWTO and proceed with your test, enjoy it! Cheers SteX -- Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]> http://etinarcadiaego.dyndns.org -- http://www.stex.name
signature.asc
Description: Digital signature