Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-04-2002, 11:12 AM   #1
Registered: Nov 2001
Location: Ohio
Distribution: Redhat 7.3, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
change partition size dynamically

on a RH 7.2 machine, the /usr partition is nearly full. The /home partition has plenty of space. Can I add some space from /home to /usr without reformatting or having to reinstall?

/usr = /dev/hda5
/home = /dev/hda6
Old 01-04-2002, 03:09 PM   #2
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
For one thing, partitions must consist of contiguous space on the drive (they can't be fragmented). You would only be able to "trade" space if the two partitions were physically adjacent to each other. Another problem is that some repartitioning programs (e.g. GNU Parted) will "grow" a partition upward/outward, but will not allow you to alter the partition's start point, which is what needs to be done in your case. Check out Partition Magic; it isn't free, but it will probably do the trick.
Old 01-06-2002, 10:47 AM   #3
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 30
see if this works

alternatively you can create directories in /home and symlink to /usr.

eg. 'mv /usr/local /home/local && ln -s /home/local /usr/local'
Old 01-07-2002, 02:56 PM   #4
Registered: Oct 2001
Location: Lilburn, Ga.
Distribution: RH
Posts: 77

Rep: Reputation: 15
AFTER you have gotten over this, maybe think about taking a look at the LVM utilities for Linux. I have had over a years experience with this, and it IS my answer. Mount partitions that you can turn into "drives" that shrink and grow on the fly. Look at google for linux LVM. Ray


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change partition size after installation Swakoo Linux - Newbie 4 07-29-2005 02:37 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
change partition size paulserjeant Linux - Software 2 05-22-2004 03:26 AM
change swap partition size? jamaso Linux - General 4 07-03-2002 09:46 AM
How to change partition size rsnambiar Linux - Software 2 01-29-2002 08:33 PM

All times are GMT -5. The time now is 07:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration