LinuxQuestions.org
Review your favorite Linux distribution.
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-30-2003, 12:07 PM   #1
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Rep: Reputation: 15
merging partitions question (RH9)


Hello,

I have a bit of a conundrum. I installed RH9 a while back and created appropriate partitions only to find that one of them is growing low on space so I was thinking of merging two partitions. Here's my present setup:

hdb1 = /boot
hdb2 = /
hdb3 = swap
hdb5 = /home
hdb6 = /home/data
hdb7 = /usr
hdb8 = /var

The partitions I need to merge are hdb7 and hdb2 since my /usr partition is filling up rapidly and I have only 1% usage of my "/" partition.

Technically if I move /usr to my / and change the fstab values would that work? or are there some sort of associations to worry about. BTW, how would I move all of /usr to /?
(login as root in failsafe and "mv -R /usr / "?)

Last - if this is the right way of doing it, how could I then physically merge the partition with another so as to recuperate the space left void in hdb7?

**EDIT**
All drives are formatted reiserFS (except /boot and swap )

Thanks for the help
//Canon

Last edited by LooseCanon; 09-30-2003 at 12:33 PM.
 
Old 09-30-2003, 10:03 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,877

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
"BTW, how would I move all of /usr to /?"

login as root.
umount /usr
mkdir /cicero
mount /dev/hdb7 /cicero
cp /cicero/* /usr -R

If it worked OK then:
Edit /etc/fstab and comment out the entry for /usr
rm /cicero/* -R
umount /cicero
rmdir /cicero

"how could I then physically merge the partition with another so as to recuperate the space left void in hdb7?"

The information in both partitions file systems will be destroyed. So the partitions will have to be unused and contiguous. Use a partition editor to delete both partitions and then create a new partition to fill up the space. This may also renumber the other partitions on that drive so edit /etc/fstab to conform to the new partition numbering scheme before you reboot.

Last edited by jailbait; 09-30-2003 at 10:07 PM.
 
Old 10-02-2003, 02:45 PM   #3
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
hmm.. thanks for the advice there jailbait... I got as far as umounting the /usr partition - it wouldn't (in use).

So I tried a workaround - and it worked. Created /plato first, then cp -R /usr/* to /plato and then commenting out the /usr partition in my /etc/fstab. All that worked, then I rebooted and got a bunch of errors (obviously, because /usr didn't exist - but no discouragement). All I did was mkdir /usr then copying everything back to /usr/ from /plato. BAM - finished. reboot and no problems.
 
  


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
Merging driver w/ kernel question Palamides Slackware 4 05-20-2005 03:02 AM
Removing two Windows partitions under SuSE 9.2 and merging them with Linx partition. crozewski Linux - General 4 04-16-2005 10:57 AM
Merging Unalocated Partitions lramos85 Linux - Newbie 6 07-22-2004 02:29 PM
Help merging users from old RH7 to new RH9 cpgeorge Linux - Enterprise 4 05-13-2004 10:22 AM
Merging partitions Chrissi Linux - General 7 06-08-2003 08:36 PM

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

All times are GMT -5. The time now is 05:58 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