Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-24-2003, 07:57 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 4
Rep:
|
XP NtLdr setup
I have a dual boot XP / Mandrake 9.1 system.
In installing Mandrake 9.1, I wanted to keep Lilo out of the MBR, letting NTLDR do the boot work (this was due to an unfortunate experience with Lilo a couple of years ago where it completely stuffed my boot sector).
Anyway, Lilo somehow ended up on the MBR anyway (whether installation program bug, or more likely good old Human error I don't know). I copied the boot sector over to my Windows root drive (hda), and then overwrote Lilo using the XP recovery system.
Unfortunately, having modified boot.ini to point to my Linux boot sector file, my dual boot system did not work. XP would boot fine, but the Linux boot just sits there doing nothing.
I still have a Linux boot floppy, and I want to know the procedure for copying the boot sector from the floppy disk so I can access it from the NTLDR (I don't want to reload Lilo onto the MBR to recreate the boot file).
Can anybody help me??? ta in advance.
|
|
|
07-24-2003, 08:19 PM
|
#2
|
Member
Registered: Jul 2003
Location: Aust
Distribution: Suse
Posts: 41
Rep:
|
If you just want to remove lilo from the mbr you should be able to boot from the M$ CD and enter the recovery console
then type "fixmbr" and "fixboot"
If that's what your asking anyway
|
|
|
07-24-2003, 08:35 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 4
Original Poster
Rep:
|
yeah - I've already done that - which leaves me with being able to boot to XP fine, but with no access to Linux, except through boot floppy.
I want to copy the boot sector off the boot floppy onto my main Windows drive (hda in Linux), so I can point to this file with NTLDR, giving me back my dual boot system.
I assume it involves dd if /dev/fd0 and specifying an output file.
I'm just unsure of the correct syntax I require when doing this from a floppy disk (after all it looks like I stuffed this operation up when doing it from the HDD in the first place).
|
|
|
07-24-2003, 08:49 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
|
|
|
07-24-2003, 09:14 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 4
Original Poster
Rep:
|
OK that looks fantastic - thanks. So basically I recreate the Lilo boot partition on my Linux partition, and then copy this off to point to from NTLDR - I can forget trying to get it from the boot floppy. Ta!
|
|
|
08-17-2003, 11:54 PM
|
#6
|
Member
Registered: Aug 2003
Distribution: Slackware 12.1, Slackware Current, Ubuntu Hardy Heron 8.04
Posts: 110
Rep:
|
I know that your problem might be resolved, but I wasted a week before I finally figured this out. Hope this helps someone. One thing I ran into on all the Howtos is that they never tell you exactly "how to" install LILO on your Linux partition when you are trying to dual boot with NTLDR. I know this takes the fun out of discovering it for yourself; but if you are anything like me, you just like to know beforehand.
I found that simply uninstalling LILO from the MBR was not enough, and taking a boot sector image of the Linux partition would cause all kinds of errors(L 01 01 01 etc). I guessed that, at least in my case, LILO only writes the actual bootloader into the MBR at installation and not the Linux partition. Unless you tell LILO to write itself into the first sector of your Linux partition, you will continue to get errors. Seems my guess might have had some validity, because this worked.
Do everything the howto says about uninstalling LILO from your MBR then follow these instructions.
In order to get the LILO Bootloader onto your Linux partition use the following command from root (hdx represents your Linux partition) run:
lilo -b /dev/hdx
If you get a warning from LILO saying that it's ignoring something or other, don't worry, it'll still work.
Once this is done, run:
dd if=/dev/hdx of=bootsect.lnx bs=512 count=1
Note that you are making a copy of the first sector where you just installed LILO (your Linux partition). Copy bootsect.lnx to a floppy, reboot to Windows, copy bootsect.lnx to your C: (or boot) drive and edit your boot.ini file to point to it.
This is what worked for me when nothing else would and this process seems to be a little easier.
Hope I helped someone. Thanx for listening to the ramblings of a madman (mad after a week.... lol). If you have any questions, comments, or complaints you know where to find me. Take care.
Alex
Mandrake 9.1 User
Last edited by dangerboy; 08-18-2003 at 12:15 AM.
|
|
|
08-18-2003, 08:11 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake 9.1
Posts: 4
Original Poster
Rep:
|
Thanks for that. I followed pretty much this procedure to get my dual boot system up and going, although I note that I made the same mistake you did in removing LILO from the MBR - I was also getting the old L 01 01 01, even after I restored the XP MBR. It would give me that error for a few seconds, and then go boot XP. Go figure - I guess I had a partially screwed MBA, but not so much so that it couldn't boot XP.
Anyway I eventually managed to get the Linux boot sector over onto my Windows C: (following the website advice a couple of posts back - ie. the same steps as you outline, dangerboy), and all is sweet now (except my motherboard has just been RMA'd, but that's another issue!)
|
|
|
All times are GMT -5. The time now is 11:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|