LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Lilo strangeness with -current (https://www.linuxquestions.org/questions/slackware-14/lilo-strangeness-with-current-4175425098/)

commandlinegamer 09-01-2012 03:57 AM

Lilo strangeness with -current
 
Am using a Toshiba Satellite L500 laptop with a 120 GB sata hard disk as a replacement after the original failed. Memtest has found no issues, and there are no bad blocks on the hard disk. It had Windows 7 installed previously, and reinstalling this proved to be no problem.

So I tried installing both Slackware 14.0 RC3, and -current from mid-June. It proceeds normally, during fdisk, setup, configuration etc. Restart after installation and the system fails to boot.

I've varied the partition setup. Currently, I have sda1 as swap and sda2 as /, so lilo.conf has

boot = /dev/sda
...
root = /dev/sda2

I can get it to boot by making the second partition active and changing lilo.conf to

boot = /dev/sda2
...
root = /dev/sda2

So, it's not a big deal, but I don't recall having done anything differently from previous installs of 13.1, 13.37, etc. At this stage I haven't got as far as setting up an initrd, so am just using the huge.smp kernel.

Just wondered if there were anything obvious I'd missed.

Martinus2u 09-01-2012 04:06 AM

"fails to boot": where exactly does it get stuck?

There must be some boot code in the MBR, otherwise the "root=/dev/sda2" scenario wouldn't work. Maybe from prior experiments? Care to show the whole lilo.conf?

commandlinegamer 09-01-2012 05:09 AM

I'm at work so I'll post the complete lilo.conf later.

If I don't have the active partition set, then I get a split-second message (IIRC) saying "[hard drive identifier] boot failure" then it jumps to the BIOS boot selection menu: DVD drive, hard drive, network, floppy. If I do have the active partition set with "boot = /dev/sda2" then the error msg still appears but it manages to then jump to the lilo menu, and boot normally.

wildwizard 09-01-2012 05:14 AM

This laptop doesn't have the annoying virus protection thing in it's BIOS settings does it?

aaazen 09-01-2012 10:33 AM

Quote:

Originally Posted by commandlinegamer (Post 4769807)
...
Just wondered if there were anything obvious I'd missed.

Make sure that you have the "current" version of LILO, 23.2.

The old Slackware 13.37 version of LILO, 22.8, does not work with the newer kernels:

http://www.linuxquestions.org/questi...el-4175423582/

ReaperX7 09-01-2012 05:20 PM

You may have to rerun liloconfig to regenerate the script from scratch and reinstall LILO to wherever you normally install LILO like the master boot record. Normally this works best anyway.

commandlinegamer 09-01-2012 06:30 PM

No virus protection in the BIOS.

Took some more time doing a reinstall, and the "boot = sda2" line isn't the critical option, it definitely seems to be the active flag that makes the difference.

lilo.conf:

boot = /dev/sda
bitmap = /boot/slack.bmp
bmp-colors = 255,0,255,0,255,0
bmp-table = 60,6,1,16
bmp-timer = 65,27,0,255
append=" vt.default_utf8=0"
prompt
timeout = 50
vga = normal
image = /boot/vmlinuz
root = /dev/sda2
label = linux
read-only

Above works as long as partition 2 is set active. Turn the flag off, no boot.

My PC (Asus A8N5X motherboard) running Slack 13.37 also had the second partition set active (the first partition contained an XP install). Turning that flag off, made no difference: both Slack and Windows continue to start up normally on that machine.

So I think now it must be some BIOS peculiarity on the laptop.

And of course, I've now found someone who had a similar problem:

http://www.linuxquestions.org/questi...tition-805403/

Thanks for the help, guys.

storkus 09-01-2012 07:00 PM

Yes, laptop BIOS problems are a royal headache: I can't boot up *ANY* of the BSD's without a kernel panic during early boot, and the only reason I can think of is the stupid Acer BIOS with all the "MSFT"isms all over the place inside the tables. :( Further, I think (but my memory is fuzzy) that I had trouble with Grub and Ubuntu a several years ago, but I don't remember well enough anymore.

Off-topic, you may want to add "resume=/dev/<swap_partition>" to your append line above so you can use hibernation. This discussion still applies even though we're at 14 now:

http://people.ucalgary.ca/~cdkyle/sl...d_to_disk.html


All times are GMT -5. The time now is 09:03 PM.