1. Boot off a live linux cd 2. mkdir /target 3. mount /dev/<root-device> /target 4. (if you've got a separate boot device ) mount /dev/<boot-device> /target/boot 5. chroot /target /bin/bash 6. grub grub> root hd(0,0) [ assuming first partition - adjust the second 0 accorgingly ] grub> setup hd(0,0) grub> exit 7. exit 8. init 6
Should do it. grub allows for tab completion if you are unsure where your boot device is. There is a grub-install command on some distros, but I still don't trust it... hth, Steve On Fri, 06 Jul 2007 13:28:57 +1200 [EMAIL PROTECTED] wrote: > I've just had the nice guys at Dove Electronics replace a faulty hard drive > for me. In the process they upgraded from 80 to 250gb and expanded the > partitions (only the M$ ones as they were using Norton Ghost and couldn't do > anything with the Linux formatted ones). > > My original hard drive used GRUB to dual boot. > > Now when I turn on I first get the F2 (setup) and F12 (multiboot screen and > then it goes to a big black screen with 'GRUB' in top left corner and stops. > > Clearly GRUB has lost its reference to the partitions..can anybody offer a > solution to getting it working again? > > >
