2009/10/13 Kristian Kirilov <d3v1...@d3v1ous.info>: > Can somebody tell to me how to make my own file system? I want Debian Lenny.
OK, These are the instructions to make your own debian lenny image filesystem using debootstrap: Note: you are in a directory containing a directory named loop (it's empty now) 1) dd if=/dev/zero of=root_fs bs=1024k count=1 seek=5120 2) mkfs.ext3 root_fs 3) mount -o loop root_fs loop/ 4) debootstrap --arch amd64 lenny loop/ http://ftp.debian.org/debian (Chose your favorite arch i386|amd64|...) Once you read "I: Base system installed successfully." you can go to the point 5). 5) cd loop/dev/ 6) for i in 0 1 2 3 4 5 6 7; do mknod ubd$i b 98 $[ $i * 16 ]; done 7) cd .. 8) nano etc/fstab and put the following lines inside: /dev/ubd0 / ext3 defaults 0 0 /dev/ubd1 none swap sw 0 0 9) cd .. 10) chroot loop/ 11) Set up your favorite (lenny) repositories and perform an apt-get update 12) apt-get install locales 13) dpkg-reconfigure locales 14) passwd 15) dpkg-reconfigure tzdata 16) modify the /etc/hostname file as it follows: debian-lenny 17) modify the /etc/hosts file as it follows: 127.0.0.1 localhost debian-lenny 18) put the following lines inside /etc/network/interface file: network/interface auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp 19) nano /etc/inittab 20) Comment out the following lines: #2:23:respawn:/sbin/getty 38400 tty2 #3:23:respawn:/sbin/getty 38400 tty3 #4:23:respawn:/sbin/getty 38400 tty4 #5:23:respawn:/sbin/getty 38400 tty5 #6:23:respawn:/sbin/getty 38400 tty6 21) exit 22) umount loop/ 23) ./linux ubd0=root_fs ubd1=swapfs.debian eth0=tuntap,,,your_host_IP mem=512M It should work at this point, but I have a problem that I was able to solve only in a XEN lenny guest: Once UML is started, I get the following: Starting periodic command scheduler: crond. No protocol specified Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm Xt error: Can't open display: %s If you solve this, you can now enjoy your UML guest system. Note that it may depends on UML, but on the filesystem image. I had the same problem using XEN, but fixed modifying the start scripts, not present in User Mode Linux. Bye, Flavio ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user