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 07-08-2005, 11:07 PM   #1
Registered: Apr 2004
Posts: 730

Rep: Reputation: 46
can I move the /usr directory to another partition?

I need to free up some space. I have a free linux partition. I don't have any data stored, the apps are taking up all the room.

Can I move the /usr directory to the free partition? The free partition is mounted on /temp. Can I just move everything in /usr to /temp. Then delete the old /usr and remane /temp /usr?

The only problem that I can forsee is that the fstab may not mount the partition with /usr on it soon enough.
Old 07-09-2005, 12:41 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can do this. It's best to do it in single user mode so nothing is actually relying on the /usr partition. You more or less have the procedure correct: move everything over and then edit /etc/fstab so that the new partition is mounted as /usr, then reboot.
Old 07-09-2005, 01:44 AM   #3
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Why boot?

init 1
umount /usr
edit fstab
mount /usr
init 3

Old 07-10-2005, 04:31 AM   #4
Registered User
Registered: Jul 2005
Posts: 56

Rep: Reputation: 15
you can create a link
Old 07-10-2005, 07:24 PM   #5
Registered: Apr 2004
Posts: 730

Original Poster
Rep: Reputation: 46
Okay, I moved it.

It was a cinche. Nothing to it. I did a cp -r, instead of a mv; just to make sure I wouldn't lose anything if there was a problem.

After everything copied over, and the system worked just fine, I went ahead and deleted the original /usr directory, and freed up the space.

Thanks for the help.


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
denied access to move files into /usr/src directory Larry O Linux - Newbie 4 01-17-2005 11:14 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
How add a partition to mount on /usr directory on run time kkdw Red Hat 4 03-31-2004 12:17 PM
deleting old /usr directory after a move... jimieee Linux - General 2 12-26-2003 05:15 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 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
Open Source Consulting | Domain Registration