From: Kristian K. <d3...@d3...> - 2009-10-12 19:12:22
|
Hello, I'm new in user mode Linux. I have setuped UML with networking sucessfully, fixed network IP address and manual port forwarding. Everything was good until I saw the size of virtual HDD which is only 1GB. So I need more space, what can I do to increase the size of the root partition?? Thanks K.Kirilov |
From: Flavio <fbc...@gm...> - 2009-10-12 19:18:41
|
Hi! I had the same problem and there are a lot of guides in the Internet. Unfortunately, I didn't find any valid procedure to get filesystem images resized. Finally, I created a new filesystem and installed the distribution once again inside it. Flavio 2009/10/12 Kristian Kirilov <d3...@d3...>: > Hello, > > I'm new in user mode Linux. I have setuped UML with networking > sucessfully, fixed network IP address and manual port forwarding. > Everything was good until I saw the size of virtual HDD which is only 1GB. > > So I need more space, what can I do to increase the size of the root > partition?? > > Thanks > K.Kirilov > > ------------------------------------------------------------------------------ > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > |
From: andy b. <an...@ea...> - 2009-10-12 19:27:32
|
Flavio wrote: > Hi! > I had the same problem and there are a lot of guides in the Internet. > Unfortunately, I didn't find any valid procedure to get filesystem > images resized. > > Finally, I created a new filesystem and installed the distribution > once again inside it. > > I'm using uml with partition filesystem image. In debian you can use deboootstrap to create the image. But I'm finding uml unreliable - crashes about every day with a drupal test site running on it. I have looked at the logs (syslog, apache and mysql logs) and I can't find anything. any thoughts anyone on how I can go about fixing this? cheers, andy > Flavio > > 2009/10/12 Kristian Kirilov <d3...@d3...>: > >> Hello, >> >> I'm new in user mode Linux. I have setuped UML with networking >> sucessfully, fixed network IP address and manual port forwarding. >> Everything was good until I saw the size of virtual HDD which is only 1GB. >> >> So I need more space, what can I do to increase the size of the root >> partition?? >> >> Thanks >> K.Kirilov >> >> ------------------------------------------------------------------------------ >> 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 >> Use...@li... >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >> >> > > ------------------------------------------------------------------------------ > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > |
From: Flavio <fbc...@gm...> - 2009-10-12 19:37:19
|
2009/10/12 Jonas Meyer <jm...@jo...>: > The best method is to shut down the guest, mount the root filesystem on > the host, make a new larger file system with dd, copy the data over, > delete the old root_fs, and reboot. Depending on how big a new one you > want, should 5-20 minutes or so. You shouldn't have to reinstall, just > copy. This could be a solution, but I've never tried it. If it works, let me know please! 2009/10/12 andy baxter <an...@ea...>: > I'm using uml with partition filesystem image. In debian you can use > deboootstrap to create the image. > > But I'm finding uml unreliable - crashes about every day with a drupal test > site running on it. Yes, right! Me too! I use XEN now actually! Flavio |
From: andy b. <an...@ea...> - 2009-10-12 19:48:46
|
Flavio wrote: > 2009/10/12 Jonas Meyer <jm...@jo...>: > >> The best method is to shut down the guest, mount the root filesystem on >> the host, make a new larger file system with dd, copy the data over, >> delete the old root_fs, and reboot. Depending on how big a new one you >> want, should 5-20 minutes or so. You shouldn't have to reinstall, just >> copy. >> > This could be a solution, but I've never tried it. > If it works, let me know please! > > 2009/10/12 andy baxter <an...@ea...>: > >> I'm using uml with partition filesystem image. In debian you can use >> deboootstrap to create the image. >> >> But I'm finding uml unreliable - crashes about every day with a drupal test >> site running on it. >> > Yes, right! Me too! I use XEN now actually! > Someone recommended linux-vserver to me. I like the idea of what they call operating system level virtualisation, which uml and vserver both are. (I.e. a program pretending to be a kernel to a virtual OS). I would like to get uml working right because I have put some time into it and I remember it from years ago. But if I have to I'll try something else. I need to check which SKAS mode I am running in. andy |
From: andy b. <an...@ea...> - 2009-10-12 20:03:17
|
andy baxter wrote: > I need to check which SKAS mode I am running in. > to which the answer is - SKAS 0 But to get SKAS 3 would need a kernel patch on debian stable, so it would be good to know if this is likely to make a difference. |
From: Jonas M. <jm...@jo...> - 2009-10-12 19:44:42
|
The best method is to shut down the guest, mount the root filesystem on the host, make a new larger file system with dd, copy the data over, delete the old root_fs, and reboot. Depending on how big a new one you want, should 5-20 minutes or so. You shouldn't have to reinstall, just copy. Jonas On Mon, 2009-10-12 at 21:18 +0200, Flavio wrote: > Hi! > I had the same problem and there are a lot of guides in the Internet. > Unfortunately, I didn't find any valid procedure to get filesystem > images resized. > > Finally, I created a new filesystem and installed the distribution > once again inside it. > > Flavio > > 2009/10/12 Kristian Kirilov <d3...@d3...>: > > Hello, > > > > I'm new in user mode Linux. I have setuped UML with networking > > sucessfully, fixed network IP address and manual port forwarding. > > Everything was good until I saw the size of virtual HDD which is only 1GB. > > > > So I need more space, what can I do to increase the size of the root > > partition?? > > > > Thanks > > K.Kirilov > > > > ------------------------------------------------------------------------------ > > 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 > > Use...@li... > > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > ------------------------------------------------------------------------------ > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Flavio <fbc...@gm...> - 2009-10-12 19:58:58
|
2009/10/12 Kristian Kirilov <d3...@d3...>: > OK, I read how to setup custom kernel to UML but I didn't find any howto's > for making custom file system image. > Can you explain your solution? > Look at the google cache copy of this website: http://209.85.129.132/search?q=cache:eACPSbxz9gwJ:www.vdd-project.org/index2.php%3Foption%3Dcom_content%26do_pdf%3D1%26id%3D20+how+to+make+a+debian+UML+filesystem+image&cd=5&hl=it&ct=clnk&gl=it There are some instructions I wrote after a big website update. Flavio |
From: Jonas M. <jm...@jo...> - 2009-10-12 23:04:43
|
Three steps. 1) dd if=/dev/zero of=root_fs bs=1GB count=0 seek=150 2) mkfs.ext3 root_fs 3) mount -o loop root_fs mount_point/ Jonas On Mon, 2009-10-12 at 21:58 +0200, Flavio wrote: > 2009/10/12 Kristian Kirilov <d3...@d3...>: > > OK, I read how to setup custom kernel to UML but I didn't find any howto's > > for making custom file system image. > > Can you explain your solution? > > > > Look at the google cache copy of this website: > http://209.85.129.132/search?q=cache:eACPSbxz9gwJ:www.vdd-project.org/index2.php%3Foption%3Dcom_content%26do_pdf%3D1%26id%3D20+how+to+make+a+debian+UML+filesystem+image&cd=5&hl=it&ct=clnk&gl=it > > There are some instructions I wrote after a big website update. > > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Flavio <fbc...@gm...> - 2009-10-13 05:47:35
|
2009/10/13 Jonas Meyer <jm...@jo...>: > Three steps. > > 1) dd if=/dev/zero of=root_fs bs=1GB count=0 seek=150 > 2) mkfs.ext3 root_fs > 3) mount -o loop root_fs mount_point/ 4) debootstrap 5) configure the guest system through a chroot (fstab, locales etc.) 6) enjoy Flavio |
From: Kristian K. <d3...@d3...> - 2009-10-13 13:54:40
|
Flavio wrote: > 2009/10/13 Jonas Meyer <jm...@jo...>: > >> Three steps. >> >> 1) dd if=/dev/zero of=root_fs bs=1GB count=0 seek=150 >> 2) mkfs.ext3 root_fs >> 3) mount -o loop root_fs mount_point/ >> > 4) debootstrap > 5) configure the guest system through a chroot (fstab, locales etc.) > 6) enjoy > > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > Hello again, I have created new image with dd command with 5GB size, then i have setuped ext3 file system and debian lenny with debootstrap. I have downloaded http://user-mode-linux.sourceforge.net/linux-2.6.24-rc7.bz2 from the web to test my new filesystem, but when i try to boot i receive this error: INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: crond. xterm_open: $DISPLAY not set. Failed to open console 1, err = -19 xterm_open: $DISPLAY not set. Failed to open console 2, err = -19 xterm_open: $DISPLAY not set. Failed to open console 3, err = -19 xterm_open: $DISPLAY not set. Failed to open console 4, err = -19 xterm_open: $DISPLAY not set. And system is busy, the command line which i use is: ./linux-2.6.24-rc7 ubda=debian_lenny_fs mem=128M debian_lenny_fs is the name of my new root partiton, i just installed fresh debian lenny filesystem with debootstrap. Can somebody help to me to fix this problem? Thanks |
From: Jay S. <jay...@gm...> - 2009-10-13 14:11:40
|
These are the instructions I use to resize the UML filesystems: http://user-mode-linux.sourceforge.net/old/resize.html Jay 2009/10/13 Kristian Kirilov <d3...@d3...>: > Flavio wrote: >> 2009/10/13 Jonas Meyer <jm...@jo...>: >> >>> Three steps. >>> >>> 1) dd if=/dev/zero of=root_fs bs=1GB count=0 seek=150 >>> 2) mkfs.ext3 root_fs >>> 3) mount -o loop root_fs mount_point/ >>> >> 4) debootstrap >> 5) configure the guest system through a chroot (fstab, locales etc.) >> 6) enjoy >> >> 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 >> Use...@li... >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user >> > Hello again, I have created new image with dd command with 5GB size, > then i have setuped ext3 file system and debian lenny with debootstrap. > > I have downloaded > http://user-mode-linux.sourceforge.net/linux-2.6.24-rc7.bz2 from the web > to test my new filesystem, but when i try to boot i receive this error: > > INIT: Entering runlevel: 2 > Starting enhanced syslogd: rsyslogd. > Starting periodic command scheduler: crond. > xterm_open: $DISPLAY not set. > Failed to open console 1, err = -19 > xterm_open: $DISPLAY not set. > Failed to open console 2, err = -19 > xterm_open: $DISPLAY not set. > Failed to open console 3, err = -19 > xterm_open: $DISPLAY not set. > Failed to open console 4, err = -19 > xterm_open: $DISPLAY not set. > > And system is busy, the command line which i use is: ./linux-2.6.24-rc7 > ubda=debian_lenny_fs mem=128M > debian_lenny_fs is the name of my new root partiton, i just installed > fresh debian lenny filesystem with debootstrap. > > Can somebody help to me to fix this problem? > Thanks > > ------------------------------------------------------------------------------ > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > |
From: Flavio <fbc...@gm...> - 2009-10-13 14:40:04
|
2009/10/13 Jay Shah <jay...@gm...>: > These are the instructions I use to resize the UML filesystems: > > http://user-mode-linux.sourceforge.net/old/resize.html > > Jay Hi! This method never worked to me. When I do the resize2fs step, it terminates with an error actually. # resize2fs -p rootfs resize2fs 1.41.3 (12-Oct-2008) The filesystem is already 384000 blocks long. Nothing to do! Flavio |
From: Kristian K. <d3...@d3...> - 2009-10-13 14:53:00
|
Flavio wrote: > 2009/10/13 Jay Shah <jay...@gm...>: > >> These are the instructions I use to resize the UML filesystems: >> >> http://user-mode-linux.sourceforge.net/old/resize.html >> >> Jay >> > Hi! > This method never worked to me. > When I do the resize2fs step, it terminates with an error actually. > # resize2fs -p rootfs > resize2fs 1.41.3 (12-Oct-2008) > The filesystem is already 384000 blocks long. Nothing to do! > > Flavio > The filesystem is already 384000 blocks long. Nothing to do!..... This not working for me. Can somebody tell to me how to make my own file system? I want Debian Lenny. Thanks |
From: David F. <da...@di...> - 2009-10-13 18:04:41
|
Hi, > -----Mensaje original----- > De: Kristian Kirilov [mailto:d3...@d3...] > Enviado el: martes, 13 de octubre de 2009 16:53 > Para: Flavio; use...@li... > Asunto: Re: [uml-user] Can i increase the hard disk of virtual > mashine > > Flavio wrote: > > 2009/10/13 Jay Shah <jay...@gm...>: > > > >> These are the instructions I use to resize the UML filesystems: > >> > >> http://user-mode-linux.sourceforge.net/old/resize.html > >> > >> Jay > >> > > Hi! > > This method never worked to me. > > When I do the resize2fs step, it terminates with an error > actually. > > # resize2fs -p rootfs > > resize2fs 1.41.3 (12-Oct-2008) > > The filesystem is already 384000 blocks long. Nothing to do! > > > > Flavio > > We use that recipe for resizing VNUML rootfilesystems since long without problem. See http://www.dit.upm.es/vnumlwiki/index.php/Resize-rootfs > > The filesystem is already 384000 blocks long. Nothing to do!..... > This not working for me. > Can somebody tell to me how to make my own file system? I want > Debian Lenny. Have a look at http://www.dit.upm.es/vnumlwiki/index.php/Create-rootfs Best regards, David > > Thanks > > > -------------------------------------------------------------------- > ---------- > 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 > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
From: Flavio <fbc...@gm...> - 2009-10-13 16:05:21
|
2009/10/13 Flavio <fbc...@gm...>: > Now you are able to login, but another issue arise! -_- > > When I try to login as root, I'm not able to do it!!! I found a workaround, not a solution. In the host system, make a chroot to the lenny filesystem mounted as loop. Create a new user with the following command: 1) useradd buddy -m -G users,root -s /bin/bash 2) passwd buddy Now, exit from the chroot, umount the loop file and boot UML again. Instead of logging in as root, try as buddy now. You will prompted for the buddy password. Once you are logged in, you may use "su" to become root, and insert the password you set up at step 14. I am wandering why this happens!!! I'ts very strange. let me know if you solve this problem. Flavio |
From: Flavio <fbc...@gm...> - 2009-10-13 16:12:16
|
Errata corrige Step 18: Another fix: If the network doesn't work, configure the /etc/network/interface file in the guest system, as follows: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.42 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.254 Of course, adapt the IP address for your subnet, and set up your /etc/resolv.conf. Flavio |
From: Flavio <fbc...@gm...> - 2009-10-13 15:34:47
|
2009/10/13 Kristian Kirilov <d3...@d3...>: > 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 |
From: Flavio <fbc...@gm...> - 2009-10-13 15:49:05
|
2009/10/13 Flavio <fbc...@gm...>: > 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 OK, this maybe solved editing the guest filesystem /etc/inittab file at point 20) Change the following line from: 1:2345:respawn:/sbin/getty 38400 tty1 to: 1:2345:respawn:/sbin/getty 38400 tty0 Now you are able to login, but another issue arise! -_- When I try to login as root, I'm not able to do it!!! Looking for a solution also to this problem! Flavio |
From: andy b. <an...@ea...> - 2009-10-13 16:14:22
|
Flavio wrote: > 2009/10/13 Flavio <fbc...@gm...>: > >> Now you are able to login, but another issue arise! -_- >> >> When I try to login as root, I'm not able to do it!!! >> Are you logging in using ssh? If so, this might be the problem - the ssh server is often configured by default to refuse the root user. andy |
From: Flavio <fbc...@gm...> - 2009-10-13 16:31:48
|
2009/10/13 andy baxter <an...@ea...>: > Are you logging in using ssh? If so, this might be the problem - the ssh > server is often configured by default to refuse the root user. No Andy, I would like to login as root in the classic way.... start uml, get the login prompt and type root as username. This is what happens: INIT: Entering runlevel: 2 Starting enhanced syslogd: rsyslogd. Starting periodic command scheduler: crond. Debian GNU/Linux 5.0 debian-lenny tty0 debian-lenny login: root <---------- I type root and even though I didn't insert any password, it gives me Login incorrect!!!! -_- Login incorrect debian-lenny login: Very strange fact! Flavio |
From: andy b. <an...@ea...> - 2009-10-13 16:48:28
|
Flavio wrote: > 2009/10/13 andy baxter <an...@ea...>: > >> Are you logging in using ssh? If so, this might be the problem - the ssh >> server is often configured by default to refuse the root user. >> > No Andy, > I would like to login as root in the classic way.... start uml, get > the login prompt > and type root as username. > > This is what happens: > > INIT: Entering runlevel: 2 > Starting enhanced syslogd: rsyslogd. > Starting periodic command scheduler: crond. > > Debian GNU/Linux 5.0 debian-lenny tty0 > > debian-lenny login: root <---------- I type root and even though > I didn't insert any password, it gives me Login incorrect!!!! -_- > > Login incorrect > debian-lenny login: > The only thing I can think of is to mount the filesystem as a loopback (without uml running, or you will trash the filesystem), and have a look at /etc/passwd and /etc/shadow. Look to see if anything is different between the root user and the one you created. Apart from this, I don't know. andy |
From: Flavio <fbc...@gm...> - 2009-10-13 17:02:38
|
2009/10/13 andy baxter <an...@ea...>: > The only thing I can think of is to mount the filesystem as a loopback > (without uml running, or you will trash the filesystem), and have a look at > /etc/passwd and /etc/shadow. > > Look to see if anything is different between the root user and the one you > created. I didn't notice anything strange, but, actually I see they are a little bit different. /etc/passwd: root:x:0:0:root:/root:/bin/bash buddy:x:1000:1000::/home/buddy:/bin/bash But this is not the problem. Also my host filesystem has the "root line" like the above one. Thank you. Flavio |
From: Flavio <fbc...@gm...> - 2009-10-13 17:14:15
|
2009/10/13 David Fernández <da...@di...>: > We use that recipe for resizing VNUML rootfilesystems since long without > problem. See http://www.dit.upm.es/vnumlwiki/index.php/Resize-rootfs It works like a charm!!! Thanks a lot! Flavio |
From: Kristian K. <d3...@d3...> - 2009-10-13 18:08:44
|
Flavio wrote: > 2009/10/13 David Fernández <da...@di...>: > >> We use that recipe for resizing VNUML rootfilesystems since long without >> problem. See http://www.dit.upm.es/vnumlwiki/index.php/Resize-rootfs >> > It works like a charm!!! > Thanks a lot! > > Flavio > I have success :)) root@debian:~/debian-lenny# ls Debian-4.0-x86-root_fs kernel32-2.6.31.3 root@debian:~/debian-lenny# root@debian:~/debian-lenny# dd if=/dev/zero of=Debian-4.0-x86-root_fs bs=1 count=1 seek=5000M conv=notrunc 1+0 records in 1+0 records out 1 byte (1 B) copied, 0.000426031 s, 2.3 kB/s root@debian:~/debian-lenny# e2fsck -f Debian-4.0-x86-root_fs e2fsck 1.41.3 (12-Oct-2008) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information ROOT: 13076/393216 files (1.3% non-contiguous), 79407/768000 blocks root@debian:~/debian-lenny# resize2fs -p Debian-4.0-x86-root_fs resize2fs 1.41.3 (12-Oct-2008) Resizing the filesystem on Debian-4.0-x86-root_fs to 1280000 (4k) blocks. Begin pass 1 (max = 16) Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX The filesystem on Debian-4.0-x86-root_fs is now 1280000 blocks long. root@debian:~/debian-lenny# ls -lh total 1.2G -rw-r--r-- 1 root root 4.9G 2009-10-13 21:03 Debian-4.0-x86-root_fs -rwxr-xr-x 1 root root 65M 2009-10-13 13:46 kernel32-2.6.31.3 root@debian:~/debian-lenny# Booting .. Debian GNU/Linux 4.0 (none) tty0 (none) login: root Last login: Tue Oct 13 17:58:59 2009 on tty0 Linux (none) 2.6.31.3 #2 Tue Oct 13 11:34:33 BST 2009 i686 (none):~# df -h Filesystem Size Used Avail Use% Mounted on tmpfs 61M 0 61M 0% /lib/init/rw tmpfs 61M 0 61M 0% /dev/shm rootfs 4.9G 263M 4.4G 6% / tmpfs 768M 0 768M 0% /tmp (none):~# Thanks to all :)) |