Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-15-2011, 06:31 AM   #1
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
How to increase a file-system capacity from "/home" to "/"

Hello guys,

I would like to increase my "/" filesystem, as you can see, it has 81% occupied, and i would like to decrease the capacity of "/home" and pass it to the /

Is this possible?

MY-SERVER:#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 2.9G 707M 81% /
/dev/sda5 14G 214M 13G 2% /home
/dev/sda1 46M 22M 22M 50% /boot
tmpfs 506M 0 506M 0% /dev/shm

Or may be the next installations should be installed with another user different than root? this could be done easily changing the owner permissions of the "software" to be installed?

Old 04-15-2011, 07:21 AM   #2
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You can use gparted-live-cd to resize sda5(shrink from left) then do the same to it's container (most likely sda3) & enlarge sda2.
Old 04-18-2011, 08:52 AM   #3
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 12.2 and 13.2, Leap 4.2
Posts: 120

Rep: Reputation: 24
If you are logging in as root, then it may be that the folder /root is getting too big. A quick and dirty method is to move the whole of this folder to /home and replace it with a logical link, thus:

cd /
mv /root /home
ln -s /home/root /root

That worked for me once. A danger to logging in as root is that you lose the personal files in your root folder if you update the distribution; this way you don't, since /home/root is unaffected (but is no longer the root folder!).
Old 04-18-2011, 08:58 AM   #4
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
Just like Peverel said, there are solutions before resizing partitions.

Personally, my favorite is this command:

du -xak /|sort -n|tail -100

it tells you the 100 biggest files or directories in the directory chosen, without crossing over to other filesystems.

Start with the biggest folders and files, then question if you need to remove or move some smaller ones.

You do have a small disk, so next time you install Linux on it, it might be good to have just one big / partition and no /home


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
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
[SOLVED] how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Linux - Newbie 4 10-04-2009 06:28 PM
How might I restore kmail folders/mail/settings from a "badly" saved "home"? deh6 Linux - Software 5 03-08-2008 09:25 PM
"fc5" mount does not recognize "smbfs" file system? bdplays Linux - Networking 6 06-28-2006 11:21 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:47 PM.

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