LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-13-2008, 06:09 PM   #1
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Lilo hangs on /dev/hda in -current


After updating my Slackware-current installation yesterday I encountered a strange problem. Since the kernel was updated too, I proceeded to rerun the lilo command, but it stalled with no output to the terminal. I waited for about half an hour and tried to kill it, but it wouldn't die after a Ctrl+C, I had to close the terminal. Next time I ran strace lilo to see where it gets stuck. Turns out, it tries, for some unknown reason, to open /dev/hda, which is a CD-ROM drive in my Dell Inspiron 5100. The hard drive is /dev/hdc, and everything seems to be right in the /etc/lilo.conf file.

After trying some tricks, unsuccessfully, like manually giving different options to lilo in the command line, I finally sort of solved the issue by renaming /dev/hda into /dev/hdaOLD, running lilo (which now worked as usual) and renaming it back again.

There's no CD in the drive. lilo worked perfectly fine before, and it's the same version 22.8. I'm quite confused about what happened. Could anyone provide some ideas?
 
Old 09-13-2008, 06:52 PM   #2
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
`lilo -b /dev/hdc` should probably have done the trick, but I'm not sure. Also, the 'boot' parameter in lilo.conf should point to /dev/hdc.
 
Old 09-13-2008, 07:08 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Original Poster
Rep: Reputation: 60
Hi, thanks for answering.

Quote:
Originally Posted by T3slider View Post
`lilo -b /dev/hdc` should probably have done the trick, but I'm not sure.
That was the first thing I tried. Still, lilo hangs, although saying that it would skip the "boot" section in the config file.
Quote:
Also, the 'boot' parameter in lilo.conf should point to /dev/hdc.
It does. Actually, I haven't changed the config file for a long time, it always worked nicely.
 
Old 09-13-2008, 09:35 PM   #4
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
Strange. The only thing I could suggest is to pass the -v option (or -v 5 for complete verbosity) to lilo to see what's going on. All of my LILO installs have been successful, so I'm not the best for LILO troubleshooting (but my system is very simple with only one SATA hard drive and one IDE DVD drive, with no dual-boot setup). Some others with more experience may be able to help you further. It does seem like a strange problem.

Are you positive that your hard drive is an IDE and not SATA hard drive (hence /dev/hdc)?
 
Old 09-13-2008, 09:53 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by T3slider View Post
Strange. The only thing I could suggest is to pass the -v option (or -v 5 for complete verbosity) to lilo to see what's going on. All of my LILO installs have been successful, so I'm not the best for LILO troubleshooting (but my system is very simple with only one SATA hard drive and one IDE DVD drive, with no dual-boot setup). Some others with more experience may be able to help you further. It does seem like a strange problem.
That's what I tried to do with strace. It stalled at something like
stat64("/dev/hda",
and hanged at it forever. But it shouldn't have been trying it in the first place...
Quote:
Are you positive that your hard drive is an IDE and not SATA hard drive (hence /dev/hdc)?
Yes, it's an old laptop, circa 2003...

By the way, after an update, everything is back to normal again. So, it might have been a temporal glitch connected somehow to the very update procedure.

Thanks for your interest. It does seem like a strange problem.
 
  


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
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 06:00 PM
Reinstall lilo to hda, using hda lilo.conf tomjermy Linux - General 1 03-16-2005 05:27 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM
Lilo installation -> /dev/hda is read only ThePlague Linux - Hardware 6 06-05-2003 09:51 AM


All times are GMT -5. The time now is 08:47 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