LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-06-2004, 05:57 PM   #1
lawadm1
Member
 
Registered: Jul 2003
Location: Illinois
Distribution: Fedora 11, Ubuntu 9.04
Posts: 80

Rep: Reputation: 15
Question separate /usr from root fs


distro->fedora core 2

What is the best way to separate /usr from the "/" (root) filesystem?

Right now /usr is included in the / filesystem, and /usr seems to be a good chunk of space.

drive1->30gb
drive2->40gb

Below is the df -k output

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 10078852 7319220 2247644 77% /
/dev/hda1 524292 18384 479276 4% /boot
none 193592 0 193592 0% /dev/shm
/dev/hda3 3023640 601096 2268952 21% /home

/dev/hdb1 7441112 20 7063096 1% /main
/dev/hdb2 7441144 20 7063124 1% /extra
/dev/hdb3 7441144 436340 6626804 7% /backup
/dev/hdb4 16147568 20 15327288 1% /storage
 
Old 09-06-2004, 07:44 PM   #2
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
(1)
Using cfdisk or some other tool, split hdb1 or hdb2 into required partitions.
(2)
Mount the new partition as /usrnew - say
(3)
Using `find` all in /usr, piped to `dd`, copy all /usr to /usrnew.
(4)
Change the mount point of /usrnew to /usr.
(5)
Rename /usr (under hda2) as /usrold - say.
(5)
Reboot the system to be sure (or umount and remount).
(6)
After a reasonably safe period, remove /usrold.

I expect that the whole thing can be achieved by your favourite GUI tool.

HTH

END
 
  


Reply



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
use of separate /usr/local ArchNGEL Linux - General 6 10-18-2005 09:49 AM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 02:42 AM
Does anyone here have a separate /root and /home partition? Kramer Linux - General 12 03-17-2004 05:52 AM
using cdburner as a usr - not as root? ursar Linux - Newbie 4 01-08-2004 11:30 AM
Separate partions for /usr, /home,/root, and /swap hedburner Slackware 2 09-14-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 PM.

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