LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Strange LiLo Issue--Slack 10.2 + WinXP (https://www.linuxquestions.org/questions/linux-newbie-8/strange-lilo-issue-slack-10-2-winxp-476215/)

plinko 08-22-2006 09:40 AM

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

bathory 08-22-2006 10:03 AM

Could you post the output of:
Code:

fdisk -l
Regards

plinko 08-22-2006 11:19 AM

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 :)

jstephens84 08-22-2006 11:29 AM

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.

plinko 08-22-2006 11:51 AM

/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 :)

jstephens84 08-22-2006 11:56 AM

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.

plinko 08-22-2006 12:05 PM

Commented out hdc1 line. No dice :\

jstephens84 08-22-2006 12:34 PM

not sure but I think it should also say something like table=/dev/hda1 in your /etc/lilo.conf Will check on that.

Randux 08-22-2006 12:44 PM

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.

plinko 08-22-2006 01:13 PM

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!

plinko 08-22-2006 06:39 PM

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.

jstephens84 08-22-2006 06:44 PM

when you made a change to your lilo.conf file did you run /sbin/lilo as root so lilo will accept the changes?

plinko 08-22-2006 06:58 PM

Yes, and even re-checked lilo.conf afterward.

jstephens84 08-22-2006 07:05 PM

can you post your /etc/lilo.conf and /etc/fstab again since the changes.

plinko 08-22-2006 07:15 PM

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 :)


All times are GMT -5. The time now is 01:17 PM.