LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-22-2006, 09:40 AM   #1
plinko
Member
 
Registered: Dec 2005
Posts: 31

Rep: Reputation: 15
Strange LiLo Issue--Slack 10.2 + WinXP


I've been using a dual boot configuration successfully for about a year now, with the exact same distro that I'm trying to work with now.
After getting an error about my NVIDIA card that I couldn't seem to fix, I decided to reinstall Linux (specifically Slackware 10.2) from my install CDs.

Eveything went well during the install, or so I thought. Now when I boot, I get:
"Boot From CD"
I wait, don't do anything, and then...
"DISK BOOT FAILURE."
I've tried fixing the MBR with the XP Bootdisk and reinstalling lilo, making sure to /sbin/lilo afterwards.

Here's the strange part (at least it seems strange to me):
After trying numerous things, I discovered that LILO will work, but only if the XP CD is inserted!

From that screen, I am able to boot normally into Windows or Linux.
I've dual-booted my system before, and never had this issue.

Before I disabled "Boot Other Device" from the BIOS, some sort of NVIDIA Boot Loader was coming up, but it never took me to a Boot Selection screen or anything.

One error message I noticed, unsure of its importance,
"Warning: Boot sector and map file are on different disks"

I've "fixmbr"-ed from the XP Rescue CD and reinstalled lilo with liloconfig several times, but always the same "DISK BOOT FAILURE" result.

My lilo.conf has boot set to /dev/hda (the boot sector of my first drive/MBR)
I even ran the lilo GUI from within KDE and it found no errors in the lilo.conf file

My boot order is
CD-ROM
HDD-0 (Windows Drive)
HDD-1 (Linux Drive)

I've also tried this with the Linux Drive in first position, then CD-ROM, then Windows, still the same dead end.

If I can be of further assistance, please let me know. I'm pulling my hair out!

Thanks guys, for all your help,
Eric
 
Old 08-22-2006, 10:03 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Could you post the output of:
Code:
fdisk -l
Regards
 
Old 08-22-2006, 11:19 AM   #3
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Most certainly. And thanks for your quick reply.

I think you're on to something here.

Code:
Disk /dev/hdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1       30515   245111706    7  HPFS/NTFS

Disk /dev/hda: 10.2 GB, 10204766208 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1240     9960268+   7  HPFS/NTFS

Disk /dev/hdb: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1         125     1004031   83  Linux
/dev/hdb2             126        7299    57625155    5  Extended
/dev/hdb5             126         250     1004031   82  Linux swap
/dev/hdb6             251        1247     8008371   83  Linux
/dev/hdb7            1248        1497     2008093+  83  Linux
/dev/hdb8            1498        7299    46604533+  83  Linux
As I was saying, I think you're on to something here. "hda1" is my Windows drive containing Windows XP. "hdb1" is where / mounts and where Slackware sits. "hdc1" is flagged as a boot partition, if i'm reading this correctly. All hdc1 is is my 250GB NTFS (WinXP) storage drive for videos, mp3s, etc. There's no OS on there, so of course it can't boot from there. Is that the issue?

Also, why on Earth is hdc1 listed first? it's on the Secondary Slave drive! And why isn't b1 flagged, since that's my Linux OS partition??

Note: I'm not trying to be a presumptuous know-it-all, just trying to figure things out as I go along and learn from my mistakes
 
Old 08-22-2006, 11:29 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
Quote:
Note: I'm not trying to be a presumptuous know-it-all, just trying to figure things out as I go along and learn from my mistakes
I don't think anyone would think that about you. You are not only asking for help but working on the problem at the same time. I do believe you are on to something. can you post what your
/etc/fstab looks like. We my need to comment out the line that has hdc in it. Also can you post what your /etc/lilo.conf file says. These two files should give us a better insight into your configuration.
 
Old 08-22-2006, 11:51 AM   #5
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
/etc/fstab:

Code:
/dev/hdb1        /                ext2        defaults         1   1
/dev/hdb5        swap             swap        defaults         0   0
/dev/hdb6        /usr             ext2        defaults         1   2
/dev/hdb7        /opt             ext2        defaults         1   2
/dev/hdb8        /home            ext2        defaults         1   2
/dev/hda1        /win-c           ntfs        ro               1   0
/dev/hdc1        /win-e           ntfs        ro               1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/etc/lilo.conf:
Code:
 LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot="/dev/hda"
message = /boot/boot_message.txt
prompt
timeout="1200"
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga="773"
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Windows bootable partition config begins

other = /dev/hda1
        label="Windows"
# table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image="/dev/hda1"
        label="Windows"

image="/boot/vmlinuz"
        root="/dev/hdb1"
        label="Linux"
  read-only
# Linux bootable partition config ends
There you have it. Hopefully something sticks out at ya
 
Old 08-22-2006, 11:56 AM   #6
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
in the /etc/fstab place a # - pound sign in front of /dev/hdc1. Before doing this I recommend having some kind of boot disk or even better I use knoppix to boot from when doing things of this nature. Find this out when I rendered my system useless.
 
Old 08-22-2006, 12:05 PM   #7
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Commented out hdc1 line. No dice :\
 
Old 08-22-2006, 12:34 PM   #8
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
not sure but I think it should also say something like table=/dev/hda1 in your /etc/lilo.conf Will check on that.
 
Old 08-22-2006, 12:44 PM   #9
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Quote:
Originally Posted by plinko
Code:
# Windows bootable partition config begins

other = /dev/hda1
        label="Windows"
# table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image="/dev/hda1"
        label="Windows"

image="/boot/vmlinuz"
        root="/dev/hdb1"
        label="Linux"
  read-only
# Linux bootable partition config ends
should be

Code:
# Windows bootable partition config begins
other = /dev/hda1
 label=Windows
 table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image=/boot/vmlinuz
 root=/dev/hdb1
 label=Linux
 read-only
# Linux bootable partition config ends
Then (as root) do:

Code:
lilo -v -t -b /dev/hda     # test mode, updates nothing

check the ouput, and correct errors as necessary

lilo -v -b /dev/hda        # when you want to update lilo in the MBR of hda
Lilo does react wierdly when other drives are detected. If you recently added a drive or mounted a USB stick this could be confusing lilo. Unmount all extraneous drives and try the above commands.

Last edited by Randux; 08-22-2006 at 01:17 PM.
 
Old 08-22-2006, 01:13 PM   #10
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
I'm about to do some work from home, but i'll try it in a bit, and let you guys know the results. Thanks!
 
Old 08-22-2006, 06:39 PM   #11
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Unfortunately your suggestion didn't work. I even removed the Boot flag from hdc (in fdisk, option "a") which I thought might've been the cause. Still no dice. Keep firing away, guys. Let's get this fixed!

Thanks again for all your help! If only PC Techs were this laid back. But that's okay, i'm pretty advanced PC-wise. I'm definitely a newbie when it comes to Linux though.
 
Old 08-22-2006, 06:44 PM   #12
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
when you made a change to your lilo.conf file did you run /sbin/lilo as root so lilo will accept the changes?
 
Old 08-22-2006, 06:58 PM   #13
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Yes, and even re-checked lilo.conf afterward.
 
Old 08-22-2006, 07:05 PM   #14
jstephens84
Senior Member
 
Registered: Sep 2004
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,056

Rep: Reputation: 94
can you post your /etc/lilo.conf and /etc/fstab again since the changes.
 
Old 08-22-2006, 07:15 PM   #15
plinko
Member
 
Registered: Dec 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Sure lilo.conf:
Code:
 # LILO configuration file 
# generated by 'liloconfig' 
# # Start LILO global section 
boot = /dev/hda 
prompt 
timeout = 300 change-rules reset 
# VESA framebuffer console @ 1024x768x64k 
vga = 791 
# Normal VGA console 
# vga = normal 
# VESA framebuffer console @ 1024x768x64k 
# vga=791 # VESA framebuffer console @ 1024x768x32k 
# vga=790 # VESA framebuffer console @ 1024x768x256 
# vga=773 # VESA framebuffer console @ 800x600x64k 
# vga=788 # VESA framebuffer console @ 800x600x32k 
# vga=787 # VESA framebuffer console @ 800x600x256 
# vga=771 # VESA framebuffer console @ 640x480x64k 
# vga=785 # VESA framebuffer console @ 640x480x32k 
# vga=784 # VESA framebuffer console @ 640x480x256 
# vga=769 
# ramdisk = 0 
# paranoia setting 
# End LILO global section 
# Windows bootable partition config begins 
other = /dev/hda1 
label = Windows 
table = /dev/hda 
# Windows bootable partition config ends 
# Linux bootable partition config begins 
image = /boot/vmlinuz 
root = /dev/hdb1 
label = Linux 
read-only 
# Linux bootable partition config ends
/etc/fstab:
Code:
 
/dev/hdb1        /                ext2        defaults         1   1
/dev/hdb5        swap             swap        defaults         0   0
/dev/hdb6        /usr             ext2        defaults         1   2
/dev/hdb7        /opt             ext2        defaults         1   2
/dev/hdb8        /home            ext2        defaults         1   2
/dev/hda1        /win-c           ntfs        ro               1   0
/dev/hdc1        /win-e           ntfs        ro               1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
Thanks

Last edited by plinko; 08-22-2006 at 07:22 PM.
 
  


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
WinXP/Slack (LILO) Casket Linux - Newbie 7 10-16-2005 08:42 AM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 04:44 AM
installed GRUB over winxp slack and mandrake and LILO insyte LinuxQuestions.org Member Success Stories 0 08-12-2004 02:04 PM
LILO and MBR with WinXP a_priebe47 Slackware 26 08-05-2004 05:13 AM
LILO, WinXP and Slack 9.0 - need help flame Slackware - Installation 4 02-08-2004 04:33 PM


All times are GMT -5. The time now is 02:37 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration