LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-27-2004, 01:11 AM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Lilo error


My system:

hdg1 is /mnt/hd1
hdh is SWAP
hde1 is /boot
hde2 is /

When I boot my computer, I get a 9A lilo error. So I try to configure lilo manually, and when I run lilo (with -v for verbose output), I get:

Reading boot sector from /dev/hde
part_nowrite: read:: Input/Output error

Any ideas on how to fix this?

A reboot didnt work, neither did changing the boot= /dev/hde to /dev/hde1

Also, a few extra questions...

My lilo.conf, when I ran liloconf, it put lines like change-rules and reset in my file. Are these necessary? I have them commented out right now.

Thanks
 
Old 03-27-2004, 08:01 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
is your /dev/hde drive partitioned and set up correctly? (if there nothing important on it then i suggest reset it up (repartition and tell whatever FS you want to go into that partition.. then try to run lilo

other then that, all i can see is that /dev/hde might have a bad boot sector (something i doubt, but it could happen)
 
Old 03-27-2004, 01:05 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
It is set up fine, because if I pop in the boot floppy and do

mount root=/dev/hde2

I can run my system %100 perfectly.

Thanks for the reply
 
Old 03-27-2004, 08:10 PM   #4
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Anyone else know how could possibly be wrong?
 
Old 03-28-2004, 08:09 PM   #5
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Anyone know where else I can ask this question?
 
Old 03-29-2004, 01:58 AM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
try booting from a different drive, as it looks like you have more then 1
 
Old 03-29-2004, 04:12 AM   #7
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
Quote:
Originally posted by mattp
It is set up fine, because if I pop in the boot floppy and do

mount root=/dev/hde2

I can run my system %100 perfectly.

Thanks for the reply
That only proves that theres something wrong with the boot sector like the guy before said. If your boot sector cant be told to go to hde2 for the kernel .. then it probably IS something with your HD. Did u try googling lilo 9a error?
I did, and i found out that its either when theres a problem reading the map file, likely because lilo was not run after some system changes or when there is a geometry mismatch between what lilo is trying to use, and what the bios uses. Type "lilo -T geom" to find out what CHS(cylinder head sector) geometry the bios is reporting of your drives.
 
Old 03-29-2004, 09:51 AM   #8
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I will try running the line of code you posted and see what I can do. I ran Slack and booted fine 2 weeks ago, and ran Mandrake before that, and Win98 before that. Could it be that its a coinincidence that the drive just broke? Worst comes to worst, Ill try reinstalling. Thanks
 
Old 08-22-2004, 03:07 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by mattp
I will try running the line of code you posted and see what I can do. I ran Slack and booted fine 2 weeks ago, and ran Mandrake before that, and Win98 before that. Could it be that its a coinincidence that the drive just broke? Worst comes to worst, Ill try reinstalling. Thanks
I found your thread by searching with the same error message,
i.e. "part_nowrite: read:: Input/Output error" and while this thread
was no help to me, I did fix mine, and might could help you if you
still haven't got it fixed. Seeing as how this thread is now about
5 months old, I sure hope you've fixed it...
 
Old 08-23-2004, 09:58 PM   #10
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Ha ha, No I never did fix it. I just booted up one day with the floppy, and never shut off my machine LOL!. If you can help me fix this thing I would much appreciate it!
 
Old 08-24-2004, 03:10 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by mattp
Ha ha, No I never did fix it. I just booted up one day with the floppy, and never shut off my machine LOL!. If you can help me fix this thing I would much appreciate it!
Have you ever had a Windoze system running that long without rebooting?

The problem with my system was that I have 2 drives - one for Windoze and
the other for Linux. I decided to totally redo the Windoze system which is
/dev/hda and when I rebooted it there was no LILO. The problem was two-
fold. First, Windoze overwrote LILO in the MBR. Second, I changed the partitions.

To fix it what I did was boot Slackware with the floppy I created, which mounts
the / directory read/write. Then I changed the /etc/fstab file and then I had to
delete the old Windoze directories that were under / and write the new ones.

In the old setup I had this:
Code:
/dev/hda1   *         W2K - NTFS
/dev/hda5             WINXP - NTFS
/dev/hda6             DATA - NTFS
/dev/hda7             DATA - FAT32
/dev/hda8             TEMP - FAT32
/dev/hda9             Linux swap
/dev/hda10            PGP - FAT32
but after formatting and repartitioning the drive I have this:
Code:
/dev/hda1   *         WINXP - NTFS
/dev/hda2             PROGRAMS - NTFS
/dev/hda3             DATA - FAT32
/dev/hda5             Linux swap
After fixing all that I ran "lilo" as root and all is now well again.

If this is confusing to you, please post the output of this:
$ df -h
# /sbin/fdisk -l
$ cat /etc/lilo.conf
$ cat /etc/fstab
$ mount
and I'll write you a little tutorial with explanations for your system.
 
Old 08-24-2004, 11:14 PM   #12
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Cool. Thanks a ton. I will try to find a little time this week to get that output. Thanks again for all of your help.
 
  


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
LILO L 99 error dllmetal Linux - General 10 12-21-2014 04:29 AM
Lilo Error mattp Linux - Laptop and Netbook 1 01-09-2005 03:55 PM
LILO LinuxEBDA error to /usr/bin/gdm error true_atlantis Slackware 0 04-28-2004 02:31 PM
error loading operating system (lilo error) KoKi Slackware 1 03-03-2004 05:46 PM
Lilo error 99 Groucho Slackware 1 09-30-2003 02:58 PM


All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration