LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   lilo problem after installing new kernel (https://www.linuxquestions.org/questions/slackware-14/lilo-problem-after-installing-new-kernel-457874/)

b3rx 06-24-2006 11:30 AM

lilo problem after installing new kernel
 
i have just installed a new kernel (2.6.16.20) from the slackware ftp site. at first i was able to edit the lilo.conf.. so now there are 3 items in my lilo.conf

1. windows
2. LINUX
3. LNX261620

saved the changes and run lilo.. [no problems here yet]

i tried rebooting my system and tried booting using the new kernel... no problems or whatsoever. so i decided to delete the lilo entry of my old kernel. and this is where the problem begins. after editing lilo.conf and save the changes, i tried running lilo again and this is the error i received.

Code:

Warning: '/proc/partitions' does not match '/dev' directory structure.
    Name change: '/dev/hdd2' -> '/dev/hdd2'
part_nowrite check:: No such file or directory

i thought it was just a warning message and thought that the changes were made. i tried rebooting my system and sad to say that the there are still 3 items in my lilo.

anyone knows why this happend? any solutions?

cheers!

b3rx

shadowz 06-24-2006 11:40 AM

lilo wont change until the config file has no errors. look like u need to change something in there before u can get rid of the third entry

jimX86 06-24-2006 12:01 PM

Maybe you should post /etc/lilo.conf to see if anyone notices anything. Also, are all the partitions on the same drive?

It looks to me like there might be two separate problems. I think the first one is non-fatal, but you might try adding "append=devfs=mount" to lilo.conf to see if that fixes error #1.

evilDagmar 06-24-2006 06:29 PM

AFAIK that message means that lilo is getting miffed about /dev/hdd2 being referenced when it doesn't actually exist. Post your lilo.conf.

b3rx 06-24-2006 11:30 PM

hi guys thanks for the replies.. here is my lilo.conf and yes all the partition are in the same drive.

Code:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hdc
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/hdc1
  label = Windows
  table = /dev/hdc
# Windows bootable partition config ends

# Linux bootable partition config begins
#image = /boot/vmlinuz
#  root = /dev/hdc3
#  label = Linux
#  read-only
# Linux bootable partition config ends

# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.16.20
  initrd = /boot/initrd.gz
  root = /dev/hdc3
  label = Linux
  read-only
# Linux bootable partition config ends


cereal83 06-25-2006 12:35 AM

Thats what your lilo looks like for slackware? Looks weird mine is just

Code:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sdb
#compact        # faster, but won't work on all systems.
#prompt
#timeout = 50
# 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
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sdb2
  label = Linux
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends


cwwilson721 06-25-2006 12:40 AM

You were saying '/dev/hdd2' in your original post, and lilo.conf is showing '/dev/hdc3'

Which is it?

How about posting the output of 'fdisk -l'

b3rx 06-25-2006 05:48 AM

yeah i know.. thats why im confused.. my boot partition is /dev/hdc for windows and /dev/hdc3 for linux.. i dont know here does lilo get that hdd error thing..

here is my fdisk -l result

Code:

root@zu:/home/b3rx# fdisk -l

Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdc1  *          1        2550    20482843+  7  HPFS/NTFS
/dev/hdc2            2551        2613      506047+  82  Linux swap
/dev/hdc3            2614        4865    18089190  83  Linux

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdd1              1        3825    30724281    c  W95 FAT32 (LBA)
/dev/hdd2            3826        9729    47423880    f  W95 Ext'd (LBA)
/dev/hdd5            3826        7650    30724281    b  W95 FAT32
/dev/hdd6            7651        9729    16699536    b  W95 FAT32


egag 06-25-2006 09:59 AM

did you already retry to run lilo ?

"'/proc/partitions' does not match '/dev' directory structure."
....might be gone after a reboot.

egag

jimX86 06-25-2006 01:55 PM

The only thing I can think of is that lilo was written to the MBR on /dev/hdd and that /dev/hdd is controlling the boot. That would explain both the error message and the unchanged lilo menu.

I'm at a loss to explain how that would have happened though. Were there any other changes to the system before rerunning lilo last?

cwwilson721 06-25-2006 02:19 PM

Quote:

Originally Posted by jimX86
The only thing I can think of is that lilo was written to the MBR on /dev/hdd and that /dev/hdd is controlling the boot. That would explain both the error message and the unchanged lilo menu.

Bingo. Glad you saw that...My brain is getting old....

You should have lilo install to the MBR of /dev/hdc (first hdd boot device)

jimX86 06-25-2006 02:51 PM

Quote:

Originally Posted by cwwilson721
You should have lilo install to the MBR of /dev/hdc

Yes, but shouldn't his current lilo.conf already be writing it to /dev/hdc? I'm not sure I understand why that isn't working.

Maybe the BIOS is set to boot from /dev/hdd? Or would pointing the current lilo.conf to boot from /dev/hdd solve this? Why did it work before? I'm afraid I still have more questions than answers...

cwwilson721 06-25-2006 02:54 PM

it might, it might not.

May want to run liloconfig again, use expert mode, follow the prompts, and install to mbr of hdc. Then, after a succesfull boot, add in the other partitions.

b3rx 06-25-2006 03:52 PM

Quote:

Originally Posted by cwwilson721
it might, it might not.

May want to run liloconfig again, use expert mode, follow the prompts, and install to mbr of hdc. Then, after a succesfull boot, add in the other partitions.

i have tried what you have suggested but i when i started intalling lilo again. it has error.. and when i tried to manually edit lilo and not using the liloconfig and tried to run lilo again. same error regarding the hdd2 partition.

yes, i have lilo installed at the MBR of hdc dont know whats causing me the problem. should i switch to GRUB?

egag 06-25-2006 04:02 PM

do you still get the same error as in post#1 ?
if so, what's the output of "cat /proc/partitions " ?

egag


All times are GMT -5. The time now is 03:54 AM.