Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2006, 12:22 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
Root filled when tarring /home

I was trying to expand my /home directory by moving it to a new drive. I added the new drive, mounted it as home and did cd /home;tar cvf - .|(cd /newhome;tar xvf - .)

Unfortunately, it filled up by root drive. I can't find specifically where though. I cleaned out all the temp directories, the trash etc, but it still says 100% usage. What do I do?
Old 10-15-2006, 12:50 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Search the root file system for the name of a directory that is in the /home directory. That will tell you where the tar command put the files. If you had a directory in /home named abe then you would enter this command.
find / -mount -name abe
The -mount parameter prevents the find command from looking on other file systems.

Last edited by stress_junkie; 10-15-2006 at 12:52 PM.
Old 10-15-2006, 01:06 PM   #3
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Is there any specific reason or performance gain when you are using tar to tar the files in old /home directory and then, pipe it into tar again to extract into the new /home directory ?

I would use cp command to do that !
Old 10-15-2006, 01:45 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,188

Rep: Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131Reputation: 4131
"cp -a ..." is definitely the way to go.
To check for where the space has gone try
du / -x | sort -nr | less
Could take a while.
Old 10-15-2006, 02:32 PM   #5
LQ Newbie
Registered: Nov 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Well, I've successfully moved home. Now I have space to extend root.

I reformatted the old /home. I chose (via diskdrake) to create it as an extension and mounted it in /usr. Is that what I wanted to do?

I did a search for files from my old home and the only place they turned up were the old one.


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
My home partition is getting filled up by something. dYz Linux - Newbie 14 08-09-2006 09:44 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
.xsession-errors filled my root partition now i cant boot suse10.0 64bit ianio Linux - Hardware 1 03-23-2006 04:40 AM
tarring a dd stream john8675309 Linux - Software 1 04-22-2005 03:04 PM
un-tarring multiple files phil1076 Linux - General 19 12-18-2003 02:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:19 AM.

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
Open Source Consulting | Domain Registration