LinuxQuestions.org
Help answer threads with 0 replies.
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 04-20-2003, 05:05 AM   #1
SoSlack
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Rep: Reputation: 0
WinXP cleared my MBR! How can I get Lilo back?


I was using WinXP and Slack9.0 before i reinstlaled my WinXP.
Now my MBR with lilo is cleared.
How can I get back Lilo on my MBR with Slack9.0
Thanks.
 
Old 04-20-2003, 06:55 AM   #2
bynaar
Member
 
Registered: Jul 2002
Posts: 141

Rep: Reputation: 15
boot your linux system , trough a floppy or the install CD.
 
Old 04-20-2003, 07:42 AM   #3
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Rep: Reputation: 15
once you boot that disk or CD, mount your /dev/hdaX (X being your root linux partition, in my case it's hda5) by typing:

mount root=/dev/hdaX

and dont forget to run lilo, bacause this is what restores lilo in your MBR ... and youre done

lilo
 
Old 04-20-2003, 09:59 AM   #4
SoSlack
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ok. I tried doing that after using the cd to boot bare.i
i get this error:

mount: cant find root=/dev/hda7 in /etc/fstab or /etc/mtab

and i dont haev a floppy drive too boot from. I tried booting from cd but how can i install LILO again on the mbr without and HD formatting at all?
 
Old 04-20-2003, 10:14 AM   #5
1_8_7
Member
 
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44

Rep: Reputation: 15
If im reading what you wrote correctly at the end, then you can't install on a HD that is not formatted for linux. Boot from the cd and run cfdisk and make your linux swap and linux partitions and intstall slackware, installing LILO in the mbr and your fine. Hope this helps, if i have even read your post correctly
 
Old 04-20-2003, 10:23 AM   #6
SoSlack
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Original Poster
Rep: Reputation: 0
OK..i actually have Linux installed on my computer already.
It's just that I cant boot to Linux again because:
1. I dont have a floppy drive, hence I cant boot from floppy
2. MBR with Lilo has been cleared by WinXP.

This is my HD structure:
/dev/hda1 = NTFS
/dev/hda5 = FAT32
/dev/hda6 = SWAP
/dev/hda6 = EXT3 (/)
/dev/hda7 = EXT3 (/usr)
/dev/hda8 = EXT3 (/home)

So now I have a Slackware 9.0 cdrom and I do not want to reinstall Slackware software into my HD. The question is:
How can I reinstall LILO on my computer using Slackware 9.0 cdrom. I cant reconfigure my linux system (in setup) without having to install the / system again.

Any suggestions?
 
Old 04-20-2003, 10:30 AM   #7
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Find a distro cd like Mandrake's with a Rescue > Restore Lilo option when you boot it?

Edit: You sure you used a correct mount command? Doesnt it need a target folder which you're mounting it as?

mount t ext3 /dev/hdb6 /

Last edited by Proud; 04-20-2003 at 10:34 AM.
 
Old 04-20-2003, 10:34 AM   #8
SoSlack
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Original Poster
Rep: Reputation: 0
There has to be another way with Slackware 9.0
 
Old 04-20-2003, 10:58 AM   #9
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Rep: Reputation: 15
And there is ... I'll boot from the Slack 9 CD and give you more precise directions

I'll be back.
 
Old 04-20-2003, 11:43 AM   #10
X_shadow_X
LQ Newbie
 
Registered: Apr 2003
Posts: 27

Rep: Reputation: 15
try this then you bot from cd
bare.i root=/dev/hda6 noinitrd ro (/dev/hdaX X - must be yours root, not users )
login as root
later in CL write liloconfig
(you can use automatic configuration, after it write lilo if you dont get any errors reboot )

hope this heleps i am a newbie
sory for english
 
Old 04-20-2003, 11:44 AM   #11
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Rep: Reputation: 15
As soon as you get to the first prompt, when booting your Slack 9 install CD, type this: "bare.i root=/dev/hdaX noinitrd ro". This should boot your slack distro thats on your drive, once it does run the "lilo" command to restore lilo in MBR. I hope this works for you ... but you might get a "no init found" error. I'm posting this using lynx in console, so forgve me for the format of this reply (after "fixing" my fonts I see only squares for letters in my brawser and everything else KDE) Any way I might not be back for some time, but I know there is still one more way of restoring lilo in your MBR: booting with any linux kernal (CD, dickette, network) and runing lilo with a fev parameters teling it to use /etc/lilo.conf on your /dev/hdaX instead of the one on the boot medium or rather your temp ram drive. ... hope this method helps if the first one does not

Last edited by csDraco_; 04-20-2003 at 12:20 PM.
 
Old 04-20-2003, 07:13 PM   #12
SoSlack
LQ Newbie
 
Registered: Apr 2003
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks! I got LILO back now!
 
Old 04-20-2003, 07:29 PM   #13
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Good replies, X_shadow_X, and csDraco_.
Luckily Slackware still does make booting the installed system from the install CD easy.
Gave this advice to a Red Hat user recently, and found that in Red Hat you need to go to the rescue system on the CD and 'chroot' to the main system.
Seem like an unnecessary step(s) to me.
 
Old 04-20-2003, 08:22 PM   #14
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm, does slackware have the mkbootdisk command? once you get your system up and running i'd reccommend you use that and a blank floppy, that way you have a rescue disk in case of an emergency (especially the microsoft brand of emergency )
 
Old 04-21-2003, 10:30 AM   #15
csDraco_
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93

Rep: Reputation: 15
Glad to be of some help

Hope you enjoy your distro
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cleared mbr nrayever Linux - General 1 11-29-2005 11:02 PM
Lilo back into MBR theonebeyond Linux - General 2 11-10-2004 11:34 PM
Installing winXP on other partition wipes my MBR....i want my lilo back!! theMonkeY Slackware 2 09-22-2004 06:30 AM
LILO and MBR with WinXP a_priebe47 Slackware 26 08-05-2004 04:13 AM
Lilo (mbr) won't load winXP (hdb1) jonaskoelker Linux - General 6 07-04-2004 06:13 AM

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

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