LinuxQuestions.org
Help answer threads with 0 replies.
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 03-15-2004, 03:15 PM   #1
soloist
LQ Newbie
 
Registered: Jul 2003
Distribution: RH9 MDK9.2+10.0
Posts: 24

Rep: Reputation: 15
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
 
Old 03-15-2004, 04:33 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"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
 
Old 03-15-2004, 04:50 PM   #3
soloist
LQ Newbie
 
Registered: Jul 2003
Distribution: RH9 MDK9.2+10.0
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks, I'll give that a whirl and report back.
 
Old 03-16-2004, 09:10 AM   #4
soloist
LQ Newbie
 
Registered: Jul 2003
Distribution: RH9 MDK9.2+10.0
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 03-16-2004, 09:49 AM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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.
 
Old 03-16-2004, 10:09 AM   #6
soloist
LQ Newbie
 
Registered: Jul 2003
Distribution: RH9 MDK9.2+10.0
Posts: 24

Original Poster
Rep: Reputation: 15
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!
 
Old 03-16-2004, 10:31 AM   #7
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
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
 
  


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
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
appropiate fstab entries -- How to use labels jimieee Linux - Hardware 2 10-31-2003 03:29 AM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM
LABELs in /etc/fstab and grub.conf juggler Red Hat 1 09-28-2003 04:10 PM
Installing new harddisks...Questions about filesystems, labels and fstab needamiracle Linux - Hardware 5 09-23-2002 10:35 AM

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

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