Click to See Complete Forum and Search --> : Changing HDB to HDA


Dirk
11-09-2000, 01:49 AM
How do I change my Linux HDD to hda since I set it up as hdb and I'm going to move the hda [Windoz] HDD to another box? What do I change on my hdb harddrive so that it is recognized as the hda disk?? Thanks, Dirk [ O/S = Red Hat 6.2]

Letalis
11-09-2000, 05:21 AM
You move it from second ide slave to primary ide master...

TheGimp
11-09-2000, 04:56 PM
If you use lilo, you will have to reconfigure it to boot hda instead of hdb http://www.linuxnewbie.org/ubb/smile.gif

Shad
11-09-2000, 05:00 PM
Does you bios support booting from hardrives other than Primary Master? Some do, if yours does, then write lilo to hdb and you are all set.

------------------
Just a Tuna in the Sea of Life

fafnir
11-10-2000, 02:14 AM
The way I've done this is like so, this assumes you have lilo installed on hdb, if not then at step 2 you will have to do the same thing but boot from you rescue disk (I have only used this method to move my primary from hda to hde on a second ide controller):

1. change your fstab so that the mount points are all set to hdaN instead of hdbN.

2. shutdown, move the drive (in your case set to master), reboot and at the lilo prompt type: linux root=/dev/hdaN (whichever partition it is, probably N=2 or N=6 - check lilo.conf before hand)

3. once you are in then change lilo.conf to point at hda instead of hdb and then run lilo. You cannot do this step until you have
moved the disk as lilo will fail otherwise.

And you're done http://www.linuxnewbie.org/ubb/smile.gif

HTH
Fafnir

PS feel free to mail me if I haven't been clear. Although I prolly won't see it 'til Monday - Sunday night to US ppl