LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 07-17-2004, 08:18 PM   #1
thebeast
Member
 
Registered: Sep 2003
Location: West Virginia, USA
Distribution: Gentoo / Slackware
Posts: 52

Rep: Reputation: 15
Windows took over MBR!!


Hey Slackers. Just installed Slack 10 and I do believe it's the best OS i've used. I had a virus in Windows previously so I decided to reinstall windows afterwards. I had a working dual-boot, until I reinstalled windows. It took over my MBR! Lilo doesn't come up, it just goes straight to windows. (My Linux partitions are still in tact however. I told windows only to install over the partition it was on before.) How can I get Lilo back? Will Slack10 install disks help any? I really need my Linux back....
 
Old 07-17-2004, 08:30 PM   #2
ozar
Member
 
Registered: May 2004
Location: USA
Distribution: Arch Linux
Posts: 191

Rep: Reputation: 30
Boot back into Slack with your boot floppy or slack cd then run /sbin/lilo as root and it will rewrite lilo to the mbr.
 
Old 07-17-2004, 08:30 PM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
try using the slackware install cd, then run setup, and reinstall lilo.
 
Old 07-17-2004, 08:31 PM   #4
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 454

Rep: Reputation: 30
Well you could boot off disk 2, using it as a recovery disk, mount your linux partition and rerun lilo. That should work if your lilo.conf is setup properly. There are directions on the bootup screen for disk2 for how to use your hd partition as root from the recovery disk.

Edit: Or use your boot floppy if you have one.
 
Old 07-17-2004, 08:39 PM   #5
thebeast
Member
 
Registered: Sep 2003
Location: West Virginia, USA
Distribution: Gentoo / Slackware
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the suggestions. Unfortunately, I don't have a boot disk. I'll try booting from cd 2.
 
Old 07-17-2004, 11:26 PM   #6
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
If you can get Knoppix, you can always fix most anything.
It's nice to keep around.
Here's how to fix lilo with it:

http://www.knoppix.net/docs/index.php/FaqRescue
 
Old 07-18-2004, 04:30 AM   #7
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Lesson here...

The above issue is why you always install windors first when doing a dual/multi-boot install. Yes installing/re-installing windors breaks a MBR.
A good thingy to do as part of a total system backup plan is to back up your MBR to floppy for easy recovery.
 
Old 07-18-2004, 05:12 AM   #8
guardian653
Member
 
Registered: Oct 2003
Distribution: Gentoo
Posts: 79

Rep: Reputation: 15
you could always boot of disc 1 at the boot prompt

Code:
boot:  bare.i root=/dev/hda2 noinitrd ro
(change hda2 to whatever your root is)

(sadly, lilo doesn't like my ide controller, so I have to boot this way.. or miss my 120 gb drive O_o)
 
Old 07-18-2004, 12:21 PM   #9
thebeast
Member
 
Registered: Sep 2003
Location: West Virginia, USA
Distribution: Gentoo / Slackware
Posts: 52

Original Poster
Rep: Reputation: 15
Talking

Thanks so much for the help. I'm in Slack now. Slack rescue disk is great!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to clean MBR since Windows XP Bob_Esponja Linux - Newbie 3 12-12-2006 05:26 AM
windows wiped my MBR garba Linux - General 2 05-15-2005 02:11 PM
LINUX vs WINDOWS BECAUSE MBR Barq Linux - General 3 10-10-2004 02:31 AM
help windows ate my MBR AhYup Slackware 1 10-07-2004 04:24 PM
windows about to wreck my mbr disorderly Linux - General 1 05-26-2004 10:56 AM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration