LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-01-2007, 06:48 PM   #1
CaptainInsane
Member
 
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92

Rep: Reputation: 15
Thumbs up FC6 drive/partitions reconfig question sda sdb swap


Hi all.

Here is my situation.

Machine is P4 3000HT cpu on Asus P4P800-E deluxe MB. 2 SATA drives.

I initially had win98se installed on sda and then installed FC6 on sdb. Dualboot via
grub.

The other day to celebrate the release of Vista, I added an additional 1g pc3200
ram and a new GeForce 7600GS 512mb DDR2 videocard to my system instead of giving
the money to microsoft for their latest horrible bloated OS.

Since I have the last few programs I was using win98 for running on linux via wine now, I
want to blast 98 off the sda drive and use it for linux.

My tentative plan is to repartion the sda drive, setting up a 2nd swap partition for
my extra ram, one for /tmp and one for /home.
Then I was going to modify the fstab, device.map and grub.conf files, swapping sda and sdb
entries, then physically swap the sata connectors.

My question is, will this work, or would I be better off just doing a fresh install ?

Another possible issue is that I unfortunately let the Fedora install setup sdb as a
Linux LVM volume when I installed.

I have spent a considerable amount of time getting the existing FC6 install all
tweaked and configured the way I want, which is why I am looking at doing the above
plan rather than just reinstalling.

Looking forward to any feedback or advice.

Thanks
 
Old 02-01-2007, 07:10 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,465

Rep: Reputation: 299Reputation: 299Reputation: 299
Why would you need two swap partitions? Just make your existing one bigger if you need so...

As for adding the extra space, I would add it in the LVM.
I just did this myself based on this howto:
http://voidmain.is-a-geek.net/redhat...al_volume.html
 
Old 02-01-2007, 07:26 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If plan on adding a 1 gig swap then I would say that would not be needed. In the old days swap was twice the ram because the cost of ram in those days. Now with the price of ram the swap theroy does not apply. If you run out of memory then I would add more memory because the cost of ram is cheap. Harddrives are still slow.

What is your current swap space?
Do you every run out of memory and start using swap?

Not knowing how exactly the setup of your LVM, I am guessing there is a /boot and and LVM with a single / inside that?

You can create the needed partitions on the new drive like one for boot, home, swap, tmp, and /. Mount each new ones like /boot1, /home1 and so on. Now copy the contents from /boot to /boot1. Same for the rest except /. Here is where you need to copy all but /boot, /home, /tmp, and a few others like /proc, /sys, /dev and /media. Each should be created on a reboot. Edit fstab and grub.conf to reflect the new drive layout of /sda. I would exclude any references to /sdb for now. Edit ones on the sda drive and not sdb. Also for what you mounted /home1 as would be of course /home. Almost forgot you need to create the directories with the same permissions for /home, /boot, /tmp on the / partition of sda. Now boot up with the install cd and run the command grub-install to set grub up on the sda drive to the new grub.conf.

Brian
 
Old 02-01-2007, 08:49 PM   #4
CaptainInsane
Member
 
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks guys. Think I will go ahead and attempt the method suggested by Brian1 now.
Dont really care if the new directories on sda get included in the LVM or not, as long as everything
works. *Yes, the current LVM on sdb has boot then /. for everything else.

Re: swap. You are both probably right on that. Current swap is 2g, twice the 1g I had when FC6
first installed. Just backed up a bunch of stuff on 3 DVD's, and system used a grand total of 116k
swap space. Just figured it wouldnt hurt to have a 2g swap on each drive, just incase I have to
load a 2g+ database file for a client or something crazy like that at some point. With the 2 80gb
drives, space isnt really an issue since I dont collect a bunch of huge music CD or video files.

Will post back in an hour or 2 if all goes well, or much later if something goes haywire and I do
the reinstall thing. Going to attempt to plug in a spare IDE hd first, and make another backup on
it before blasting sda and proceding with the new partitions.
 
Old 02-01-2007, 10:49 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
My post may be a little late,

Because you said you spent allot of time tweaking & configuring FC6, and I know where you're coming from. I have a simple solution for hacking up my unit without worries, and not having to come here at LQ over a great span of time (time is expensive these days) asking questions because I'm scared of screwing things up. Read my posts & the thread starter's comments after reading my post in this thread.

http://www.linuxquestions.org/questi...d.php?t=519444
 
Old 02-02-2007, 01:26 AM   #6
CaptainInsane
Member
 
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks. Looks like I got it all dialed in now. I went ahead and actually swapped the cables
on my 2 SATA drives, just so that the main drive with /. and /boot on it would be sda1.

Got the other (sdb) partitioned up with 4 partitions. sdb2 at 100mb, will be /boot_spare (backup boot)
sdb3 at about 9gb will be /tmp and sdb4 at 60gb will be /home

Got them all mounted to the temporary mount points. Going to copy the data over now, delete the
original directories from / on sda then update fstab. Looks like all should go well.
 
Old 02-02-2007, 04:00 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Before deleting the orginal named directories I would just rename for now and then create new directories with the name of the old ones and mount them to make sure is good.

Brian
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find sda or sdb for mounting pen drive in RH9 sakal_woman Linux - Hardware 3 11-20-2006 10:41 PM
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 08:41 AM
Firewire disc adds multiple devices to kernel 2.6 (sda, sdb, .. , sdh) mehlkelm Linux - Hardware 2 04-18-2005 09:54 AM
swap partitions on different drive. dr_zayus69 Linux - Hardware 7 01-08-2005 09:42 AM
zip drive alternately mounts on /sda and /sdb timsch75 Linux - Hardware 6 09-26-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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