LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fdisk /mbr (https://www.linuxquestions.org/questions/linux-software-2/fdisk-mbr-146692/)

rharvey@cox 02-16-2004 07:55 AM

fdisk /mbr
 
I know I shouldn't have forgotten this, but I have. I'm trying to install grub on the mbr where Windoze is residing. I've installed gentoo on another partition and can reach it with grub boot disks, no problem. I've somehow screwed up the mbr and

grub> setup (hd0)

is not writing to the mbr.

I have my old dos disks but the command fdisk /mbr isn't working.

What is the correct syntax for using fdisk from the floppy to fix the mbr of the first SCSI disk on the system?

Thanks.

Andrew Benton 02-16-2004 10:29 AM

Tell it where to look for its stage{1,2} files first. Grub counts from zero so all numbers are one less than you're used to. For example, if you root is on /dev/hda5 change the Xin this for a 4
Code:

grub
grub> root (hd0,X)
grub> setup (hd0)


rharvey@cox 02-16-2004 12:19 PM

I"ve done that. I'm actually working with disk copy (dd) of a working disk with a functional grub setup on the mbr, so I'm quite sure it's a corruption of the mbr and not my setting up grub on the mbr.


All times are GMT -5. The time now is 05:36 PM.