LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2011, 12:43 PM   #1
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Rep: Reputation: 3
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
 
Old 08-22-2011, 12:46 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Post output of
Quote:
df -h
&
Quote:
fdisk -l
 
Old 08-22-2011, 01:04 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Did you install DSL? Or are you running it from the CD?
 
Old 08-22-2011, 02:02 PM   #4
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
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!!

Last edited by slayerking; 08-23-2011 at 12:23 AM.
 
Old 08-23-2011, 05:20 AM   #5
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
Can anybody help me??
 
Old 08-23-2011, 02:01 PM   #6
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
hello !!
Isn't there anybody in this fourm who can help me !
Please please help !!!!
 
Old 08-23-2011, 02:20 PM   #7
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
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?
 
Old 08-23-2011, 02:20 PM   #8
Zatarra
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: 0
Boot with a live CD and try resize2fs on the partition (the pratition should not be mounted)
 
Old 08-23-2011, 02:44 PM   #9
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
I couldn't unmount this partition .It is in ext2 file system.How can i do that?
 
Old 08-23-2011, 02:51 PM   #10
Zatarra
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: 0
Boot with a live CD it will be automatically unmounted
 
Old 08-23-2011, 05:29 PM   #11
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
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
 
Old 08-23-2011, 05:50 PM   #12
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
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?
 
Old 08-23-2011, 05:53 PM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,443

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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?
 
Old 08-24-2011, 03:00 AM   #14
slayerking
Member
 
Registered: Apr 2011
Posts: 60

Original Poster
Rep: Reputation: 3
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!!
 
Old 08-24-2011, 03:10 AM   #15
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 852

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by slayerking View Post
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to increase my root partition size singhjc Linux - Newbie 3 05-19-2011 07:34 AM
how to increase the root size partition in fedora . mohdsuboor23 Linux - Server 3 12-28-2010 06:04 AM
Root partition full - how do I increase size? txlombardi Linux - General 8 09-30-2010 10:24 PM
Increase my root partition size? fintan.moloney Linux - Newbie 3 05-30-2006 01:01 AM
How to increase root partition size ? abhigo Fedora 2 01-29-2005 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration