View previous topic :: View next topic |
Author |
Message |
neilcon n00b
Joined: 19 Sep 2004 Posts: 3
|
Posted: Sun Sep 19, 2004 2:20 am Post subject: Messed up somehow. MBR problem. |
|
|
Ok well i installed everything fine. Followed every detail in the hand book and after i installed grub and rebooted i still got an old lilo boot screen from a previous version of slack i installed a while ago.
I have two HD's hda (windows) and hdb (linux). So i installed grub on hdb and wrote the mbr there also. I think my problem is that i have hda(lilo) booting instead of hdb (grub). Is this possible? can lilo be on hda even though it's an NTFS partition? I don't understand how lilo can still be there even after i formatted and installed gentoo on hdb. Lilo must reside on hda.
Im not an expert with all this so any help would be awesome.
Is there a way i can change the mbr to hdb instead of hda? |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sun Sep 19, 2004 2:28 am Post subject: |
|
|
Quote: | I have two HD's hda (windows) and hdb (linux). So i installed grub on hdb and wrote the mbr there also. I think my problem is that i have hda(lilo) booting instead of hdb (grub). Is this possible? can lilo be on hda even though it's an NTFS partition? I don't understand how lilo can still be there even after i formatted and installed gentoo on hdb. Lilo must reside on hda. |
The MBR is just the 512 first byte of your harddisk, so no problem for lilo to survive a format of your partition.
The bios will always boot with the mbr on the first hdd. So either you swap the drives and use grub (linux hdd, to use the mbr on the second hdd swap them physically) or you install grub into the mbr of the first. To do so boot your livecd, mount the partitions, chroot and install grub into first mbr with setup (hd0) |
|
Back to top |
|
|
mbjr Guru
Joined: 17 Jan 2004 Posts: 531 Location: Budapest/Hungary
|
|
Back to top |
|
|
rush_ad l33t
Joined: 22 Jul 2004 Posts: 863 Location: New Jersey, USA
|
Posted: Sun Sep 19, 2004 12:00 pm Post subject: |
|
|
change boot order of disks. |
|
Back to top |
|
|
neilcon n00b
Joined: 19 Sep 2004 Posts: 3
|
Posted: Sun Sep 19, 2004 1:51 pm Post subject: |
|
|
Thanks inode77, i did what you told me (mounted, chrooted and installed grub on hd0 and is works now.
BUT everytime i go to boot gentoo from grub is goes back to grub boot screen all the time. I think this is because i now have grub installed on hd0 and hd1 (which i originally installed it one).
How would i get grub removed from hd1? |
|
Back to top |
|
|
inode77 Veteran
Joined: 20 Jan 2004 Posts: 1303 Location: Heart of Europe
|
Posted: Sun Sep 19, 2004 3:22 pm Post subject: |
|
|
Post grub.conf and fstab please.
Normally restoring a MBR is just possible if you have a backup. To do one and the restore command (save version that does not affect the partitioning of the disk in case you change between backup and restor)
Code: | dd if=/dev/hda of=mbr.backup bs=512 count=1
dd if=mbr.backup of=/dev/hda bs=446 count=1 |
DOS and windows bootdisk can overwrite a mbr with "fdisk /mbr". |
|
Back to top |
|
|
|