[wellylug] Dual Booting & MBR
Jethro Carr
jethro.carr at jethrocarr.com
Fri Aug 10 19:28:10 NZST 2007
On Wed, 2007-08-01 at 20:39 +1200, tim_oflaherty wrote:
> I'm currently running Windows and Kubuntu 7.04 on a dual
> boot, and, funnily enough, now have to reinstall the MS OS.
>
> Of course, in doing so, it's going to rewrite the MBR.
>
> Once I have reinstalled MS OS, how would I go about
> rewriting the MBR, as I've got 7.04 running with everything
> I want in there, and don't want to particularly reinstall
> 7.04 as well.
>
> Any advice would be greatly appreciated!
Arnim's solution is probably going to be the easiest, but if you ever do
wipe your MBR and need to get Linux and/or dual boot working again, you
can actually use a restore disk and run manual commands to install the
bootloader.
Warning: You have to know a bit about the Linux CLI and how your Linux
system is installed. If you do this wrong, you will probably have an
unbootable system.
1) Boot into the rescue environment from the CD.
2) run "mount /dev/THE_ROOT_PARTITION_YOU_CHOOSE /mnt"
3) run "chroot /mnt/ /bin/bash"
4) run "grub"
5) We are now in the grub console. We need to convert the name of your
partition to grub format.
So, as an example of an IDE system:
hda1 = (hd0,0)
hda2 = (hd0,1)
And an example of a SATA systems
sda1 = (hd0,0)
sda2 = (hd0,1)
run (in the grub command line):
"root (hdX,X)" (X being the number you chose)
then
"setup (hd0)" (to install the bootloader to the MBR)
then
"quit"
to return to the shell.
6) Exit from chroot - "exit"
7) Reboot - "reboot". Remove the CD whilst booting, and it should now
boot into the grub menu.
--
Jethro Carr
www.jethrocarr.com
www.jethrocarr.com/index.php?cms=blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20070810/7402f869/attachment.pgp
More information about the wellylug
mailing list