LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-22-2003, 06:50 AM   #1
Tw0
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9 and Red Hat 9
Posts: 3

Rep: Reputation: 0
Partition Management


I wasn't paying to much attention when I was partitioning my disk while installing red hat 9. Now, I'm out of space on my root partition. I was wondering, is there a way to change partition sizes without destroying data in linux? More specifically, decrease the size of /usr by 1GB and then increase the size of / by 1GB without destroying data? Also, I'm a noob, so I would appreciate it if you dumbed the answer down.
 
Old 09-22-2003, 08:05 AM   #2
MacKtheHacK
Member
 
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
Not unless you're using Logical Volume Management, which you're probably not because you would have had to use the Expert Partitioning option to set it up. There may be some tools like the PartitionMagic program for the MS world around, but I don't know about them. There's actually a simple way to solve this problem without re-partitioning, though.

Identify some subdirectory (or set of subdirectories) of / that occupies around 1GB and isn't needed at boot time. /var or /opt are good candidates. Take your system down to single-user mode (use "telinit 1" to do that), log in as root, and move the directory (or directories) into /usr somewhere. For example: "mv /opt /usr/opt". Then make a symbolic link from the old place to the new place so that the directory will still appear to be where it used to be (eg. "ln -s /usr/opt /opt"). Bring your system back to the usual runlevel 5 ("telinit 5") and everything should be as you want it to be.
 
Old 09-22-2003, 12:12 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
GNU Parted can nondestructively resize partitions. It's probably on your RH9 cd.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 - Partition Management un shiza Fedora 2 06-30-2005 03:14 PM
What content management or file management software is best for the job? Niceman2005 Linux - Software 2 05-10-2005 10:02 PM
HR Management MadTurki Linux - Software 5 07-21-2004 03:07 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Partition Management qliedtke Linux - Software 2 11-02-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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