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.
|
 |
10-19-2004, 11:51 PM
|
#1
|
Member
Registered: Apr 2004
Posts: 682
Rep: 
|
lilo dual boot
I have Slack 9.1 (2.6.7 kernel) with XP dual boot. I had to re-install XP and Lilo has been overwritten. So it just boots XP and does not give me LILO.
XP is in /dev/hda1 and Slack is in /dev/hda2. How can I get my LILO prompt back without re-installing Slack?
|
|
|
10-20-2004, 12:04 AM
|
#2
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
Boot with your Slack boot floppy, or if you didn't make one, boot with
the Slack CD1. At the boot prompt type:
bare.i root=/dev/hda? noinitrd ro (where ? is the / partition)
and when your system is back up, su to root and run lilo - don't even
worry about running X, just do it at the text login, then reboot.
|
|
|
10-20-2004, 12:05 AM
|
#3
|
Member
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230
Rep:
|
Just use one of the Slackware install cd's and boot from that. I don't remember the command off the top of my head, but when you get the prompt when it boots from the cd, the command is right above there. Just replace the /dev/hda1 or whatever that have in there with /dev/hda2. Once you get booted up just run the /sbin/lilo command and you should be good to go.
|
|
|
10-20-2004, 12:59 AM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
It's also good practice to create a boot floppy or install a copy of your bootloader to a floppy, just in case the mbr gets messed up.
|
|
|
10-20-2004, 01:32 AM
|
#5
|
Member
Registered: Apr 2004
Posts: 682
Original Poster
Rep: 
|
I did that and /sbin/lilo gives
"Partition 2 on /dev/hda is not marked active"
"Added DOS*"
"Added Linux"
|
|
|
10-20-2004, 01:34 AM
|
#6
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
Well, does it boot properly?
Edit: MS-DOS and Windows use a special flag to indicate whether a primary partition is "active" or not. Active partitions can be booted from. Only primary partitions can be marked as active, and there can be only one active partition per hard disk. The "active" flag has no meaning for other operating systems.
Last edited by Bruce Hill; 10-20-2004 at 01:38 AM.
|
|
|
10-20-2004, 01:40 AM
|
#7
|
Member
Registered: Apr 2004
Posts: 682
Original Poster
Rep: 
|
Quote:
Originally posted by Chinaman
Well, does it boot properly?
Edit: MS-DOS and Windows use a special flag to indicate whether a primary partition is "active" or not. Active partitions can be booted from. Only primary partitions can be marked as active, and there can be only one active partition per hard disk. The "active" flag has no meaning for other operating systems.
|
Yes, it does boot properly. I guess I need to use fdisk to make the partition active. But I guess they don't have the 'a' switch. Out of luck?
|
|
|
10-20-2004, 01:46 AM
|
#8
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941
Rep: 
|
Quote:
Originally posted by noir911
Yes, it does boot properly. I guess I need to use fdisk to make the partition active. But I guess they don't have the 'a' switch. Out of luck?
|
Really, it's no need with Linux to mark a partition active.
That's just an infomational message.
|
|
|
All times are GMT -5. The time now is 02:50 PM.
|
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
|
|