Moving hard disk from hdc to hda
![](https://seccdn.libravatar.org/avatar/ef3635e71e2baca688ed7953400c355b.jpg?s=120&d=mm&r=g)
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this? Thank you. Shibu
![](https://seccdn.libravatar.org/avatar/a25e43c496c0d388638254f50430d083.jpg?s=120&d=mm&r=g)
On Thursday, December 22, 2005 @ 6:42 PM, Shibu Basheer wrote:
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
Thank you. Shibu
I'm not familiar with lilo, but with grub, the boot process is controlled by 3 files -- /boot/grub/menu.list /boot/grub/device.map /etc/grub.conf If you're using grub, take a look at those three files and see where you need to change things. device.map assigns the drives (hda, hdb, etc.) to a numeric drive number such as hd0, hd1, etc. grub.conf tells grub which drive to install to and where the menu file is (should be /boot/grub/menu.list on the appropriate hdn drive). menu.list is your boot menu. Greg Wallace
![](https://seccdn.libravatar.org/avatar/37d69c31d1db2d1e0ca72c244bb32473.jpg?s=120&d=mm&r=g)
Greg Wallace wrote:
On Thursday, December 22, 2005 @ 6:42 PM, Shibu Basheer wrote:
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
Thank you. Shibu
I'm not familiar with lilo, but with grub, the boot process is controlled by 3 files --
/boot/grub/menu.list /boot/grub/device.map /etc/grub.conf
If you're using grub, take a look at those three files and see where you need to change things. device.map assigns the drives (hda, hdb, etc.) to a numeric drive number such as hd0, hd1, etc. grub.conf tells grub which drive to install to and where the menu file is (should be /boot/grub/menu.list on the appropriate hdn drive). menu.list is your boot menu.
Greg Wallace
I think you also need to look at /etc/fstab and change references to the partitions from /dev/hdc? to /dev/hda?. Terry -- SUSE LINUX 10.0 (i586) -- 2.6.13-15.7-default -- Fri 12/23/05 9:50am up 1 day 23:21, 4 users, load average: 0.22, 0.25, 0.33
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-12-22 at 23:42 -0400, Shibu Basheer wrote:
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
There are two issues: grub and mount. For the first, you have to edit /boot/grub/menu.lst; for the second, you have to edit /etc/fstab. Also, you might have to rewrite the mbr - yast shold be able to do this one. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDrB4NtTMYHG2NR9URAiP0AJ9UyJBtTKIYwNerreDg5tQg9Vv7DQCfT/GT XxMIe7CWXLLPviJ5k4FplSA= =M39v -----END PGP SIGNATURE-----
![](https://seccdn.libravatar.org/avatar/ae9e1c52f7693f8923e040894660e5e9.jpg?s=120&d=mm&r=g)
On Fri, 2005-12-23 at 16:55 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Thursday 2005-12-22 at 23:42 -0400, Shibu Basheer wrote:
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
There are two issues: grub and mount. For the first, you have to edit /boot/grub/menu.lst; for the second, you have to edit /etc/fstab. Also, you might have to rewrite the mbr - yast shold be able to do this one.
Would it not be easier at this point to use the repair function in the SuSE installer? Mind you they've hidden it under the "other" button, whereas in 9,3 it was more readily findable, but it seems an easier way to go.
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-12-23 at 11:53 -0500, Mike McMullin wrote:
Would it not be easier at this point to use the repair function in the SuSE installer? Mind you they've hidden it under the "other" button, whereas in 9,3 it was more readily findable, but it seems an easier way to go.
Perhaps... I don't know, I don't trust it, the few times I tried it, it wanted to do the "wrong" repairs. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDrKOPtTMYHG2NR9URAnqqAKCW7uhGLlf4S/xNb/PI2tO/l1JK2wCgiw4O LJrff8NX/rb6VNQIEPeBCFE= =qXLO -----END PGP SIGNATURE-----
![](https://seccdn.libravatar.org/avatar/8a47722ec9cfd9702f7abefaefa22482.jpg?s=120&d=mm&r=g)
[Shibu Basheer]
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
I needed to do the same thing not so long ago, yet I do not remember all the details. You probably ought to do three things: 1) Edit /etc/fstab for the changed disk devices, 2) Edit /boot/grub/menu.lst similarly. 3) Install grub on your disk, so it will boot. The last step is more touchy, unless you can get YaST2 to do it for you. The `grub' command starts an interactive shell, and you'll probably have to use commands `root' and `install'. The Info manual for `grub' has the required information and examples you may adapt to your need. Not being much familiar with `grub' myself, I had to browse the manual a few times before I can figure out what needs to be done. -- François Pinard http://pinard.progiciels-bpi.ca
![](https://seccdn.libravatar.org/avatar/ef3635e71e2baca688ed7953400c355b.jpg?s=120&d=mm&r=g)
On 12/24/05, François Pinard
[Shibu Basheer]
My SuSE 10 is installed on hda (IDE1). I would like to move it to IDE0 (hda). If I move it SuSE fails to boot up, I guess lilo or grub cannot find the root drive expected to be at hdc2. How will I fix this?
I needed to do the same thing not so long ago, yet I do not remember all the details. You probably ought to do three things:
1) Edit /etc/fstab for the changed disk devices, 2) Edit /boot/grub/menu.lst similarly. 3) Install grub on your disk, so it will boot.
The last step is more touchy, unless you can get YaST2 to do it for you. The `grub' command starts an interactive shell, and you'll probably have to use commands `root' and `install'. The Info manual for `grub' has the required information and examples you may adapt to your need. Not being much familiar with `grub' myself, I had to browse the manual a few times before I can figure out what needs to be done.
Thanks everyone for your feedback. I am using lilo, so I think I need to update lilo.conf, run lilo-v, update /etc/fstab, and I am good to go. I will test it out, and post the results for future reference.
participants (6)
-
Carlos E. R.
-
François Pinard
-
Greg Wallace
-
Mike McMullin
-
Shibu Basheer
-
Terry Eck