Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian, Fedora 8 and 9, Mandriva 2009, Mepis, Kubuntu, SuSe 10.1, Slackware 12.1 - and Knoppix.
Posts: 155
Rep:
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.
I've never had a problem after issuing "liloconfig". I did have problems
trying to figure out the esoteric GrUB info, which seems to be where
this thread is heading.
check the file
/boot/grub/menu.lst
or
/boot/grub/grub.conf
if the contents are o.k. - should be the case if you partitioned your new drive the same way as your old one
(...and as you can use it to boot using the floppy)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.