Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
|
04-20-2003, 05:05 AM
|
#1
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Rep:
|
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.
|
|
|
04-20-2003, 06:55 AM
|
#2
|
Member
Registered: Jul 2002
Posts: 141
Rep:
|
boot your linux system , trough a floppy or the install CD.
|
|
|
04-20-2003, 07:42 AM
|
#3
|
Member
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93
Rep:
|
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
|
|
|
04-20-2003, 09:59 AM
|
#4
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Original Poster
Rep:
|
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?
|
|
|
04-20-2003, 10:14 AM
|
#5
|
Member
Registered: Apr 2003
Distribution: slackware 9.0
Posts: 44
Rep:
|
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
|
|
|
04-20-2003, 10:23 AM
|
#6
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Original Poster
Rep:
|
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?
|
|
|
04-20-2003, 10:30 AM
|
#7
|
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794
Rep:
|
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.
|
|
|
04-20-2003, 10:34 AM
|
#8
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Original Poster
Rep:
|
There has to be another way with Slackware 9.0
|
|
|
04-20-2003, 10:58 AM
|
#9
|
Member
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93
Rep:
|
And there is ... I'll boot from the Slack 9 CD and give you more precise directions
I'll be back.
|
|
|
04-20-2003, 11:43 AM
|
#10
|
LQ Newbie
Registered: Apr 2003
Posts: 27
Rep:
|
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
|
|
|
04-20-2003, 11:44 AM
|
#11
|
Member
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93
Rep:
|
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.
|
|
|
04-20-2003, 07:13 PM
|
#12
|
LQ Newbie
Registered: Apr 2003
Posts: 12
Original Poster
Rep:
|
Thanks! I got LILO back now!
|
|
|
04-20-2003, 07:29 PM
|
#13
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
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.
|
|
|
04-20-2003, 08:22 PM
|
#14
|
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
|
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 )
|
|
|
04-21-2003, 10:30 AM
|
#15
|
Member
Registered: Feb 2002
Location: Canada
Distribution: Fedora / CentOS
Posts: 93
Rep:
|
Glad to be of some help
Hope you enjoy your distro
|
|
|
All times are GMT -5. The time now is 03:47 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
|
|