Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Debian, Fedora 8 and 9, Mandriva 2009, Mepis, Kubuntu, SuSe 10.1, Slackware 12.1 - and Knoppix.
How to create a boot sector under Linux?
The hard drive that used to be drive C when this was a Windows machine, and then became hda under Linux, died a week or so ago. I replaced it with a new hard drive, and reinstalled all the stuff that was on there - nothing lost.
EXCEPT that it won't boot. Fortunately, I have a GRUB boot floppy so can still work, but NOWHERE can I find how to create a MBR or boot sector in Linux. Various sites suggest using a Windows 3.1 boot floppy and doing an FDISK /MBR - but surely that's a cop-out, and anyway I don't have a Win 3.1 boot floppy any more. The last one I had self-destructed years ago.
Is there really no Linux command that will create an MBR on hda?
Then, how do I get GRUB boot onto it? I have the menu.lst and all the rest. All I have to do once the GRUB floppy has started is type
configfile (hd0,0)/grub/menu.lst and off we go - with all the different distros on the machine available to select.
You list a few distributions, so even if I knew/remembered the right distribution specific details, I wouldn't know which to provide.
I did a quick google search and the top several hits I found were all just suggestions to get those instructions from man grub-install or info grub-install. I'm not at a Linux system now to check how obvious the answer will be within that man or info output.