LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-15-2003, 12:04 PM   #1
Hatman
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 10.0
Posts: 28

Rep: Reputation: 15
Need help with my MBR


Hi guys. First things first, iīm an idiot. ^_^

I have a dual boot system with WinXP (all FAT partitions) and Slackware9.1. Lately i reinstalled Windows to solve some weird driver problems and now my LILO is gone (obviously). I didnīt care how to reboot to Linux at that moment and i dont have a bootdisk too. Just the 2 Install CDs. So how can i get my bootmanager back?

If anyone knows, plz help.





PS: I found alot of Boot-/Root- Disk-images on the install CD but dont quite know what to do withem.
 
Old 11-15-2003, 01:00 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
if you put in your boot disks I think you enter "setup" somthing like that. You should be able to reinstall your bootloader. Now you learned the hardway, always make a boot disk:-)
 
Old 11-15-2003, 01:38 PM   #3
Hatman
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
Thats the first thing i tried. But theres no step for installing the bootmanager in the menu. could u be more specific?
 
Old 11-15-2003, 01:54 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
Quote:
if you put in your boot disks I think you enter "setup" somthing like that. You should be able to reinstall your bootloader
I was just guessing. I looked at the setup menu, I did not see anything about installing a bootloader. good luck
 
Old 11-15-2003, 02:41 PM   #5
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Put in disc one and reboot from the CD.

At the boot prompt enter mount root=/dev/hdxy (whatever your slackware root partition is). This will boot your slackware system with the bare.i kernel from the CD.

log in as root and with `lilo` you can rewrite your Master Boot Record. You might want to check your lilo.conf before doing that though
 
Old 11-15-2003, 04:41 PM   #6
Hatman
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
thank u guys, i'm back on slack.

the right boot option was "bare.i root=/dev/hdb3 noinitrd ro" though.

like the text said ... *sigh*
 
Old 11-16-2003, 06:18 PM   #7
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
yo, same thing happend to me like a tousand times :P what i always do is; insert the install cd 1, i config targets, and sources, then i reconfig. then it all works again, and no need to "reinstall"
 
Old 11-16-2003, 06:26 PM   #8
Misel
Member
 
Registered: Mar 2003
Location: Berlin
Distribution: Slackware current
Posts: 310

Rep: Reputation: 31
Luckily it's much easier this way. I once had to rewrite the MBR for Windows 2000 without being able to boot it. It's actually not that difficult but you have to find it out.
 
Old 11-16-2003, 06:47 PM   #9
Stuartb21
Member
 
Registered: Jun 2003
Location: U.K
Distribution: Slack - Current
Posts: 55

Rep: Reputation: 15
I know its not quite the same, but how did you rebuild the mbr?

I have just removed a second hard drive from a pc, amd now all i get is "l" at start up, and i figure this is cos slack was on hdb, and lilo was on the mbr of hda.

But the box aint mine, and i cant be botherd to reinstall windoze!!

or is it just better to reinstall windoze and be done with? (obviously the perfect answer would be to DELETE windoze and just have slack, but each 2 there own!)

Any help will be appreciated!
 
Old 11-16-2003, 09:07 PM   #10
cellist
Member
 
Registered: Oct 2003
Location: Cincinnati, OH
Distribution: Ubuntu 12.04
Posts: 145

Rep: Reputation: 16
Hi everyone. I've been using Linux for about a year now, and yesterday installed Slackware 9.1 on my Thinkpad 600. I did this because when I installed WinXP Pro on one of my other partitions, it overwrote LILO in the MBR, which is where I had it.

Well, checking out various posts in this and other sites gave me a bunch of people who think installing LILO in the MBR is a bad idea. I don't really care either way, but I do know that putting LILO in the MBR leaves you open to having LILO overwritten everytime you reinstall Windows XP (and who wants to go through that mess again!!!).

So when I installed Slack (consciously formatting Mandrake --good riddance MDK--), I decided to experiment and put LILO in the Root Partition. I then went to fdisk, made my Slack partition the bootable partition instead of the Windows partition (I'm assuming this works because we're dealing with XP and not 98). Presto. When I rebooted, LILO came up and I'm now able to boot both Windows and Slack. Don't know if this helps anyone, but it helped me. Cheers!

Last edited by cellist; 11-16-2003 at 09:08 PM.
 
Old 11-17-2003, 01:39 AM   #11
Hatman
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
@Stuartb21

I donīt quite get ur problem. So u have windows on the installed hda but cant boot it anymore because lilo is screwed up? If thats right u can fix it easily. Boot from the WinXP-CD. Enter the repair-console from the first splash-screen (hit R-Key) and execute "fixmbr" wich will reinstall the normal winxp mbr. Windows is good at overwriting things.
 
Old 11-18-2003, 03:18 PM   #12
Stuartb21
Member
 
Registered: Jun 2003
Location: U.K
Distribution: Slack - Current
Posts: 55

Rep: Reputation: 15
i think the problem is that lilo is looking for hdb, and that screws it up, coz when i reconnect it, it works fine!

the win xp cd i have isnt bootable (i think its an upgrade) so im jus gonna have to do a reinstall

thanks anyway, its a good tip 2 remember
 
  


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
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 05:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM

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

All times are GMT -5. The time now is 05:33 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