LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove 1st HD (https://www.linuxquestions.org/questions/linux-newbie-8/remove-1st-hd-132930/)

linuxnube 01-08-2004 10:12 PM

remove 1st HD
 
I have two HDs with different versions of linux on each. Grub is on the MBA of hda. I need to remove hda and promote hdb to hda.

Can I do anything before I do this so that once done, I will be able to bring up the new hda (the old hdb)?

Thanks!

synaptical 01-08-2004 10:21 PM

i guess you should change grub and install it to current hdb.

Thymox 01-09-2004 04:02 AM

You could change an option in GRUB so that hda thinks it is hdb, and vice versa. However, I would suggest changing your bootloader to reflect the changes in disc position and boot from a rescue medium, mount the partition that contains your /etc/fstab file and edit it accordingly (ie change all hdas to hdbs, and vice versa). Save the file. Reboot.

synaptical 01-09-2004 11:53 AM

oh yeah - i forgot to mention the fstab. :p i had to do the same exact thing when i removed my windows hda and made my linux hdb the new hda, except i use lilo. but overall the process was very easy. just make the necessary changes to grub, fstab, and your MBR as Thymox and i have outlined here and it should work fine.

linuxnube 01-10-2004 09:15 AM

I booted hdb, ran grub and used /dev/hdb as the target.

I then went to /boot/grub/ and edited grub.conf so that the original (hd0,0) entries were removed and then changed the (hd1,0) to (hd0,0).

I powered down, took out the old hda and made hdb -> hda and rebooted.

It all works.

Thanks for the help.


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