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/)

slayerking 08-22-2011 12:43 PM

increase size of /root partition
 
I am currently using dsl and the /root folder is only about 2.9mb as shown by command df -h how can I increase it's size ?

Any help would be great

EDDY1 08-22-2011 12:46 PM

Post output of
Quote:

df -h
&
Quote:

fdisk -l

szboardstretcher 08-22-2011 01:04 PM

Did you install DSL? Or are you running it from the CD?

slayerking 08-22-2011 02:02 PM

The output of the program are as as follows:

#df -h

Filesystem Size Used Available Use% Mounted on
/dev/root.old 2.9M 618.0k 2.3M 21% /
/dev/pts 1.6G 3.3M 1.6G 0% /dev/pts
/dev/sda2 51.7M 49.8M 0 100% /cdrom
/dev/cloop 122.6M 122.6M 0 100% /KNOPPIX
/ramdisk 1.6G 2.7M 1.6G 0% /ramdisk
unionfs 1.7G 125.3M 1.6G 7% /KNOPPIX/bin
unionfs 1.6G 3.3M 1.6G 0% /dev
unionfs 1.6G 3.3M 1.6G 0% /etc
unionfs 1.7G 125.3M 1.6G 7% /KNOPPIX/lib
unionfs 1.7G 125.3M 1.6G 7% /KNOPPIX/sbin
unionfs 1.7G 125.3M 1.6G 7% /KNOPPIX/usr
unionfs 1.6G 2.7M 1.6G 0% /ramdisk/var
/dev/sda1 1.8G 64.0k 1.8G 0% /mnt/sda1

#fdisk -l


Disk /dev/sda: 2021 MB, 2021593088 bytes
63 heads, 62 sectors/track, 1010 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 982 1917845+ b Win95 FAT32
/dev/sda2 * 983 1010 54684 83 Linux


I installed it on a usbflash drive.

Please help me!!

slayerking 08-23-2011 05:20 AM

Can anybody help me??

slayerking 08-23-2011 02:01 PM

hello !!
Isn't there anybody in this fourm who can help me !
Please please help !!!!

millgates 08-23-2011 02:20 PM

ok, so you have DSL on usb drive? is it the /dev/sda? what partition is /dev/root.old?
Do you just want to resize the partition? do you have unallocated space before/after it?

Zatarra 08-23-2011 02:20 PM

Boot with a live CD and try resize2fs on the partition (the pratition should not be mounted)

slayerking 08-23-2011 02:44 PM

I couldn't unmount this partition .It is in ext2 file system.How can i do that?

Zatarra 08-23-2011 02:51 PM

Boot with a live CD it will be automatically unmounted

slayerking 08-23-2011 05:29 PM

I used resize2fs to expand the sda2 partition to 2.7 gb but the size of /root is still 2.9mb. As it cannot be expand from live cd because the os installation is frugal.How can I unmount the /root partition?

Thanks for reply

millgates 08-23-2011 05:50 PM

You do realize that when you boot from a live cd the root partition is different than the root partition of your installed system, right?
what partition is mounted as root in your system?

yancek 08-23-2011 05:53 PM

DSL is a good little distribution but it hasn't been supported for some time and won't be.
What is on that 1.8GB FAT32 partition?
Were you ever able to boot DSL on the USB? With a root folder of 2.9MB, I don't see how you could since the iso image file is around 50MB.
If you were able to boot it, what changes were made before this problem occurred?

slayerking 08-24-2011 03:00 AM

OK,let me make it clear!!
I am not talking about the /(root partition) here,I am talking about /root folder which is by default 2.9mb in size on dsl.
I did the usb-hdd install of dsl which by default makes two partition .One is the ext3 where all the OS data is located with the size of 50mb and the remaining are fat partition which contains mydsl extensions.The usb installation is similar to that of live CD,usb-install too contains the compressed knoppix image file and kernel boot loader etc.I guess to re-size the /root folder it should be booted from flash drive itself.
I tried
Quote:

resize2fs /dev/root
but it couldn't re-size because it was mounted.I tried to unmount but couldn't unmount it.
I guess I explain the problem as possible I can!!

Please help!!

millgates 08-24-2011 03:10 AM

Quote:

Originally Posted by slayerking (Post 4451845)
OK,let me make it clear!!
I am not talking about the /(root partition) here,I am talking about /root folder which is by default 2.9mb in size on dsl.

you mean the root's home folder? Is it on a separate partition then? or is there a quota or something?
why do you resize /dev/root then? dev/root is the / (root partition)

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:41 PM.