LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-04-2002, 12:12 PM   #1
kodiakmook
Member
 
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, 04:09 PM   #2
DMR
Member
 
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, 11:47 AM   #3
kervin
Member
 
Registered: Jan 2002
Location: Melbourne, FL.
Distribution: redhat
Posts: 168

Rep: Reputation: 30
see if this works http://www.gnu.org/software/parted/

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, 03:56 PM   #4
Posterboy
Member
 
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
 
  


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 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 03:37 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
change partition size paulserjeant Linux - Software 2 05-22-2004 04:26 AM
change swap partition size? jamaso Linux - General 4 07-03-2002 10:46 AM
How to change partition size rsnambiar Linux - Software 2 01-29-2002 09:33 PM


All times are GMT -5. The time now is 11:21 AM.

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