We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Dual boot Windows/Linux: updating lilo when linux won't boot

esuhl
esuhl Posts: 9,409
Part of the Furniture 1,000 Posts Name Dropper
Forumite
I'm almost a complete noob when it comes to Linux, but I've just installed Windows 2000 and Zenwalk Linux on a PC and everything was working fine(ish) until I set the value timeout=0 in lilo.conf.

I had (stupidly) assumed that this would disable the timer on the boot screen. What it actually did was boot the default OS (Windows 2000) immediately.

I have run a Linux boot CD and have been able to remove the timeout=0 line from lilo.conf, but whenever I try to run /sbin/lilo to apply the changes, I get this error message:

"Fatal: open /dev/sda: No such device or address"

I presume that this is because the boot CD (Damn Small Linux) refers to the hard drive as /dev/hda, and Zenwalk refers to the drive as /dev/sda, but I haven't been able to work out how to "rebuild" lilo (if that's the right terminology).

Can anyone offer any suggestions?

Comments

  • GoofyGAT
    GoofyGAT Posts: 1,835
    Part of the Furniture 1,000 Posts Combo Breaker
    Forumite
    Try reinstalling LILO & see if that helps. If no joy, remove LILO & reinstall it (if you have a SATA drive use sda). G

    P.S I've got a dual-booting system too (XP & PCLinuxOS), but not much knowledge of Linux
  • irnbru_2
    irnbru_2 Posts: 1,603 Forumite
    esuhl wrote: »
    Can anyone offer any suggestions?

    My SATA/Linux knowledge is 0.

    What does 'fdisk -l' show?

    Is the boot (live?) cd recent? It needs a kernel with libata to see the SATA drive.
  • zz9pa
    zz9pa Posts: 68
    Part of the Furniture 10 Posts Combo Breaker
    Forumite
    You might want to look at "chroot" too..
    When you boot from you're rescue disk - you should be able to mount your original hard drive somewhere.

    When you've got that mounted, use 'chroot' to change to use your original disk as if you'd booted from it.. (ie it will become the '/' directory)

    You might need to then mount /dev (using mount -a ? )
    And then - you should hopefully be able to rerun lilo...
  • esuhl
    esuhl Posts: 9,409
    Part of the Furniture 1,000 Posts Name Dropper
    Forumite
    Thanks everyone - when I get a moment I'll see what I can do with chroot, and reinstall lilo if that doesn't work.

    Irnbru, the hard drive is just an olde IDE/PATA one. For some reason Zenwalk treats SATA and IDE drives as the same and refers to both as sda, sdb, etc.
  • irnbru_2
    irnbru_2 Posts: 1,603 Forumite
    esuhl wrote: »
    Irnbru, the hard drive is just an olde IDE/PATA one. For some reason Zenwalk treats SATA and IDE drives as the same and refers to both as sda, sdb, etc.

    It's running libata then.
  • esuhl
    esuhl Posts: 9,409
    Part of the Furniture 1,000 Posts Name Dropper
    Forumite
    Thanks again everyone - I managed to fix lilo by using the Zenwalk installation CD, aborting the installation (to get to a shell prompt), then using chroot.

    :T
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.3K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.