On Fri, Feb 10, 2006 at 02:26:45PM -0700, Yu Yang wrote: Hello Yu, > > Thanks a lot for the reply! Now I understand on running UML better. > I still got questions on how to create a filesystem by myself. > Right now I can only use the created file systems from sourceforge. > These file systems are a little bit out of dated.
yes, you are right, but remember that if you set up the network connection and you have got an Internet access, you can easily upgrade your root_fs to whatever recent distro. Ok? > > The documentation online make me confused. > At http://user-mode-linux.sourceforge.net/fs.html, > it is said we can create a file system with dd , > then create and mount the file system , etc. > The problem with me is that when I use > > dd if=/dev/zero of=my_filesystem seek=100 count=1 bs=1M With this command you have a file at all: I use Debian, but I think you can do the same with the other distro, too. Next step is to make this file a filesystem: for instance, if you need a ext2 filesystem, you must: # mkfs.ext2 my_filesystem Then you need to fill it up with the OS: # mount -o loop my_filesystem /mnt # debootstrap sarge /mnt http://ftp.debian.org/debian > > to create my_filesystem, I cannot boot UML with it. then unmount /mnt # umount /mnt and run linux: $ linux ubd0=my_fylesystem umid=test root=/dev/ubd0 ... and whatever other option(s) you need to. > I always got some error information like what I got in the > previous email. How can I create a filesystem just like those downloadable > from sourceforge? I am sure that you will be able to do the same with the other distros. Try it and if you will fail, please report all the command you type, ok? Cheers SteX -- Stefano Melchior, GPG key = D52DF829 - <[EMAIL PROTECTED]> http://etinarcadiaego.dyndns.org -- http://www.stex.name
signature.asc
Description: Digital signature