LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   lilo dual boot (https://www.linuxquestions.org/questions/slackware-14/lilo-dual-boot-244936/)

noir911 10-19-2004 11:51 PM

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?

Bruce Hill 10-20-2004 12:04 AM

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.

blk96gt 10-20-2004 12:05 AM

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.

reddazz 10-20-2004 12:59 AM

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.

noir911 10-20-2004 01:32 AM

I did that and /sbin/lilo gives

"Partition 2 on /dev/hda is not marked active"
"Added DOS*"
"Added Linux"

Bruce Hill 10-20-2004 01:34 AM

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.

noir911 10-20-2004 01:40 AM

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?

Bruce Hill 10-20-2004 01:46 AM

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 12:03 PM.