LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   increase size of /root partition (https://www.linuxquestions.org/questions/linux-newbie-8/increase-size-of-root-partition-898804/)

coldsystem 08-24-2011 05:58 AM

use the Logical volume manager LVM ,

slayerking 08-24-2011 08:23 AM

Are the / and /root the same thing ??I guess the root folder is inside /partition . If / and /root are same how can I increase Its size it's size .Its only 2.9 mb as shown by
Quote:

df -h
but the whole partition made by dsl is 51mb !!I guess that is root

GazL 08-24-2011 09:14 AM

From the output of the df you posted I can see nothing that indicates that the /root directory is not part of the rootfs ('/' filesystem). So, it appears to be limited by the size of /dev/root.old (whatever that is?)

'dsl' is not a normal distro, and gets up to all sorts of shenanigans with unionfs, loop devices and god only knows what else. Unless there's an experienced dsl'er lurking on these boards I suspect all you're going to see is incorrect advice and useless questions from people who really don't know what they're talking about.

Sorry I couldn't be of more help, but I don't know what I'm talking about either when it comes to DSL. But at least I know I don't know. ;)


Perhaps you'd be better off just trying another distro.

EDDY1 08-24-2011 11:41 AM

The reason there aren't very many reponses is that the OP is basically booting a live-cd on 1 partition, if it were a partition I could offer assistance, live-usb is quite tdifferent than an instaled system.

http://ubuntuforums.org/showthread.php?t=1695680

millgates 08-24-2011 01:07 PM

Ok, so in order to get at least a faint idea of what I'm talking about, I downloaded latest iso of DSL. I burned it, booted from a cd and made a USB pendrive install on a 128MB flash disk. It didn't give much chance to influence partitioning of the USB drive, but I could do that if I created the bootable USB manually.

I booted from the usb and, indeed, the output of df was similar to the one posted earlier. in fstab and mtab, however, the /dev/root was (if I remember it correctly) /dev/sda. The distro is on one of the partitions on the usb in the form of image, so I guess there's no simple way to change its configuration except for modifying the image or making your own distro. I don't have much experience with the unionfs, but I guess that the layout of the system is partially in RAM and partially on the usb drive.

The /root (root's home folder) indeed has 2.9 MB available with over 600kB already used. It seems to be a filesystem that doesn't exist physically on the usb drive, so repartitioning will probably not work here. I was, however, able to create 100+ MB files in /usr, /bin, /lib and /home/dsl so you can install additional software if you need it or store data in the regular user's home. If you need to save something that will not disappear after reboot, you can save it on the 1.8GB partition of yours. The only limitation is the 2.9 MB in /root which does not really matter since you shouldn't work with the usb system as root anyway, just use sudo instead.

So my advice is: just deal with the 2.9MB /root it does not limit you in any way. If you can't deal with it, try another distro.


All times are GMT -5. The time now is 03:44 PM.