Felix Miata wrote:
On 2010/03/03 08:26 (GMT-0500) James Knott composed:
I've now got all the partitions copied to the new drive, with some enlarged. The next problem is getting Linux bootable (Windows already is). I understand that grub has to be reconfigured, but I'm not sure how. /boot is in it's own partition, but everything else for Linux is in the LVM. So, what's next?
There are several options for making Linux bootable here. One way: rescue boot Linux, mount your doz boot partition (below assumes it's mounted on /disks/C), and assuming your /boot is on /dev/sda3 and you don't have one of those 4096 byte sectors HDs, do:
dd if=/dev/sda3 of=/disks/C/grubboot bs=512 count=1
Adjust to your actual mountpoints/devicenames/sectorsizes. Then add a stanza to boot.ini for booting Grub. See: http://fm.no-ip.com/install-doz-after.html
If your new /boot doesn't start on the same sector number as it did on the old disk (and maybe even if it does, depending on how you performed the clone of your old /boot), you'll need to reinstall Grub from that rescue boot. I usually do it manually:
login: root passwd: # grub
root (hd0,2) setup (hd0,2) quit
#
The result of all the above is Windows' ntldr is your primary boot manager, from which you may choose Windows or Grub, and Grub loads Linux, all using standard MBR code, a configuration that won't scramble Linux when you reinstall Windows.
Why would I want to boot into Windows first? Linux is my primary OS on this computer. I alway boot straight into grub and choose the OS (default Linux) from there. If I just follow the 2nd part will grub be functional again? I used dd to copy the /boot partition to a file and then back onto the same partition number. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org