UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am thinking about moving a linux-only hard drive from PC-A to PC-B. Both PC-A and PC-B have existing hard drives with WindowsXP-only installed. What I see needing to make this happen is:
1) Remove grub from the MBR of PC-A's Windows-only hard drive so that it will automatically boot up into WindowsXP. I will then remove the linux-only hard drive.
2) Install the linux-only hard drive in the PC-B. Somehow, or another, install grub on the MBR of PC-B's Windows-only hard drive, so that it will give me the choice to either boot up in Ububtu, or WindowsXP.
If this is too hard, I may have to purchase a second linux-only hard drive for PC-B.
What you are suggesting is perfectly reasonable. To restore the Windows MBR you will need the install CD.
When installing the Linux drive in the other computer, you need some way to boot into Linux so that you can install GRUB in the MBR of drive 1. The quickest way is to boot up with a Live CD.
You can also put GRUB on the MBR of the Linux drive before moving it. In PC-B, use the BIOS settings to boot into Linux, then install GRUB to the other drive from there. Keep in mind that if you get into Linux by changing drive order, then you would be installing GRUB to drive 2, but setting GRUB's "root" to the /boot partition on drive 1. When you re-boot and restore the boot order, GRUB is now on drive 1.
Keep in mind that--during installation--GRUB always has to be pointed to its "home base"--i.e. the partition containing /boot.
I'm sure you have everything backed-up, so I won't mention that.......
I ending up moving my Ubuntu-only hard drive from PC-1 to PC-2. I had no trouble repairing the MBR on PC-1 to make it boot into WindowsXP. (Install CD-ROM -> Repair -> 'fixmbr')
However, I still cannot get grub to work using the Ubuntu CD-ROM. According to my BIOS, the WindowsXP-only drive (ntfs) is 'hard drive 0' (primary master). My Ubuntu-only hard drive (reiserfs) is 'hard drive 4' (secondary slave). The Ubuntu CD-ROM sees the drives, and I can mount them.
When I try to issue the grub command 'root (<tab>', it automagically inserts 'hd0'. Grub does not see any other hard drives. When I issue the grub command 'root (list', it gives an error.
Everything on my Ubuntu-only drive is still intact. I just need to insert the boot info in the WindowsXP-only hard drive MBR.
I tried to re-install Ubuntu, but the install screen resolution does not work with my 1440x900 monitor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.