LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2004, 11:51 PM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
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?
 
Old 10-20-2004, 12:04 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
Old 10-20-2004, 12:05 AM   #3
blk96gt
Member
 
Registered: Jun 2004
Location: Nacogdoches, TX
Distribution: Ubuntu 7.04
Posts: 230

Rep: Reputation: 30
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.
 
Old 10-20-2004, 12:59 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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.
 
Old 10-20-2004, 01:32 AM   #5
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Original Poster
Rep: Reputation: Disabled
I did that and /sbin/lilo gives

"Partition 2 on /dev/hda is not marked active"
"Added DOS*"
"Added Linux"
 
Old 10-20-2004, 01:34 AM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
Old 10-20-2004, 01:40 AM   #7
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-20-2004, 01:46 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
  


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
Dual boot with Lilo Permaximus Linux - Newbie 3 04-27-2005 12:34 AM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
should i use LILO? - no dual boot Abdulla Linux - Newbie 6 07-13-2003 04:04 PM
Dual Boot, Lilo Nikta Linux - Software 1 11-28-2001 08:08 PM


All times are GMT -5. The time now is 02:30 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 Google+: linuxquestions
Open Source Consulting | Domain Registration