LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2004, 02:25 PM   #1
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Rep: Reputation: 16
reinstall Windows bootloader


I installed Mandrake to a seperate hard disk (hdc) and it installed LILO on the mbr (hda, Windows XP). However I've replaced Mandrake with Slackware 9.1 and put LILO on the Linux disk (hdc) to dual boot instead of on the mbr. But I still have LILO on the mbr that links to the now gone Mandrake Linux. How can I reinstall the windows bootloader on the mbr without reinstalling windows? I tried to reinstall it using 'rescue' from the Mandrake CD but it didn't work.
 
Old 02-06-2004, 02:28 PM   #2
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
Thats easy make a XP bootdisk and boot off it when in DOS type the following:

fdisk /mbr
and reboot.
This will write XP's MBR back to the disk killing the LILO one.

Last edited by CryptDragoon; 02-06-2004 at 02:36 PM.
 
Old 02-06-2004, 02:32 PM   #3
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Rep: Reputation: 30
Once you put a bootloader on the MBR you can't get rid of it so I have the solution. Uninstall LILO from hdc and overwrite the LILO configuration for the MBR it should be in /etc/lilo.conf, change it to boot the Slackware partition
 
Old 02-06-2004, 02:35 PM   #4
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
Ummm with the fdisk /mbr option you can... I know cause I have done this more times then I can count! ..LOL and I can count pretty high!
Even if you uninstall the LILO there will be no MBR cause LILO overwrites the last MBR that was present.
 
Old 02-06-2004, 02:38 PM   #5
extrasolar
Member
 
Registered: Feb 2004
Location: Northamptonshire, UK
Distribution: Windows XP, Arch Linux
Posts: 131

Original Poster
Rep: Reputation: 16
Thanks but I got it sorted anyway.

I booted from the XP CD and went to recovery console. Typed 'fixmbr' at the prompt and it reinstalled it. I followed some instructions given for Windows 2000.

Another question on the same subject. I now have LILO on the linux disk but it won't boot into windows. It just goes to 'Loading Windows' or something and just stays on that screen doing nothing. At the LILO setup to add a DOS / Windows entry I entered '/dev/hda1' but it doesn't work. Could this be because the windows disk is NTFS and not FAT?
 
Old 02-06-2004, 02:58 PM   #6
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
Nope I have a WinXP + Slackware + LFS system going on here...
are you sure you habe the right partition set in lilo?

And if you ran the XP bootCD it should have killed lilo and placed windows's entry in the MBR.
 
Old 02-06-2004, 03:12 PM   #7
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
Quote:
Originally posted by extrasolar
Thanks but I got it sorted anyway.
<snip>
At the LILO setup to add a DOS / Windows entry I entered '/dev/hda1' but it doesn't work. Could this be because the windows disk is NTFS and not FAT?
there's nothing in /dev/hda1 to boot-- use /dev/hda ( that's where the MBR is - not in the partition)
 
Old 02-06-2004, 03:21 PM   #8
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
Quote:
Originally posted by bnice
there's nothing in /dev/hda1 to boot-- use /dev/hda ( that's where the MBR is - not in the partition)


Right, extrasolar on the "other" line it should say /dev/hda
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Need to reinstall WinXP, How do I keep my GRUB bootloader? jesusphreak Linux - Software 2 04-17-2005 09:38 PM
need help a before reinstall Windows... leduytien Linux - Software 7 10-30-2004 04:07 AM
Fix the Bootloader or Reinstall the System? Sadie Newlinux Mandriva 6 08-26-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration