LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   If I move hd labels, what changes? fstab, grub.conf... (http://www.linuxquestions.org/questions/linux-general-1/if-i-move-hd-labels-what-changes-fstab-grub-conf-158078/)

soloist 03-15-2004 03:15 PM

If I move hd labels, what changes? fstab, grub.conf...
 
What happens to an RH9 installation when the disk labels hda, hdb etc change?

When I installed RH9 on my laptop, it was on the only drive, hda.

Now I want to move that drive into a modular bay and put Win98 in the permanent bay.

By fiddling with bios I'm able to boot linux by inserting the modular drive and turning the machine on. If the modular drive is absent, Win98 boots.

But in this arrangement, the drive labels are different than they were when I installed RH9 on the linux drive. Linux seems to boot OK, but (for example) I noticed that SWAP fails to mount.

The question is, what do I need to change to make this arrangement work? Off the top of my head I suppose: fstab and grub.conf (?) . Anything else?

(Linux is using grub to select kernels. But grub doesn't know about win98.)

Thanks,

soloist

jailbait 03-15-2004 04:33 PM

"The question is, what do I need to change to make this arrangement work? Off the top of my head I suppose: fstab and grub.conf (?) . Anything else?"

You got it. Just change /etc/fstab and grub.conf.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

soloist 03-15-2004 04:50 PM

Thanks, I'll give that a whirl and report back.

soloist 03-16-2004 09:10 AM

Thanks for your help. I've had a confusing success.

In the target configuration, my linux hd that was hda becomes (surprisingly) hdc, not hdb. I see no hdb in the RH9 hardware browser. There were some scary non-booting moments when I made changes assuming the second drive was hdb, but I was saved by a fresh boot-disk.

I now have the following working setup:
change "hda" to "hdc" in fstab, and leave "hd0" as "hd0" in grub.conf.
Grub seems to work fine. But I would have thought grub required a change from "hd0" to "hd2", which I have not tried yet due to the gut-wrenching hdb experience :) . Any thoughts? Is it dangerous to leave it as is?

BTW a Gateway Solo with two hard disks sounds like a jet ready for takeoff! ha ha

aaa 03-16-2004 09:49 AM

Grub doesn't count hd's like Linux, it numbers by the number of hd's, not by the number of places to put them like Linux does.

soloist 03-16-2004 10:09 AM

I have two drives, so in grubspeak they are hd0 and hd1.
I have the bios set to boot from the modular drive first, if it is present. Perhaps that is why grub sees it as hd0, and not hd1, even though it is in the slave position (I think).

All's well that ends well! Thanks!

rberry88 03-16-2004 10:31 AM

Pretty close to the same thing that happened to me here:

http://www.linuxquestions.org/questi...light=rberry88

I couldn't make heads or tails of the re-assignment but it all works and I've adjusted accordingly.

rberry88


All times are GMT -5. The time now is 10:52 AM.