Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-01-2007, 06:48 PM
|
#1
|
Member
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92
Rep:
|
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
|
|
|
02-01-2007, 07:10 PM
|
#2
|
Senior Member
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,465
|
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
|
|
|
02-01-2007, 07:26 PM
|
#3
|
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:
|
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
|
|
|
02-01-2007, 08:49 PM
|
#4
|
Member
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92
Original Poster
Rep:
|
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.
|
|
|
02-01-2007, 10:49 PM
|
#5
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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
|
|
|
02-02-2007, 01:26 AM
|
#6
|
Member
Registered: Nov 2003
Location: Peoria
Distribution: Fedora 8
Posts: 92
Original Poster
Rep:
|
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.
|
|
|
02-02-2007, 04:00 PM
|
#7
|
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:
|
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
|
|
|
All times are GMT -5. The time now is 01:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|