LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 07-08-2005, 11:07 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 561

Rep: Reputation: 30
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 3,988

Rep: Reputation: 261Reputation: 261Reputation: 261
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Why boot?

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


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

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

Original Poster
Rep: Reputation: 30
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration