Attached is my trace and lilo.conf. I am trying to get kernel -12 version
loaded. I did a network "upgrade" and it downloaded the -12 kernel version. This
is the exact error message displayed:
[root@brian /tmp]# strace -o /tmp/trace lilo -v
LILO version 21.4-3, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman
Reading boot sector from /dev/hde
Merging with /boot/boot.b
Fatal: read /dev/hde: Read-only file system
[root@brian modules]# cat /proc/version
Linux version 2.2.15-9mdksmp ([EMAIL PROTECTED]) (gcc version 2.95.3
19991030 (prerelease)) #1 SMP Thu May 25 19:13:12 CEST 2000
[root@brian modules]# uname -r
2.2.15-9mdksmp
In my /boot dir:
[root@brian /boot]# ls /boot
System.map@ boot.b vmlinuz-2.2.15-11mdksmp
System.map-2.2.15-11mdk kernel.h vmlinuz-2.2.15-12mdk
System.map-2.2.15-11mdksecure lost+found/
vmlinuz-2.2.15-12mdksecure
System.map-2.2.15-11mdksmp message vmlinuz-2.2.15-12mdksmp
System.map-2.2.15-12mdk us.klt
vmlinuz-2.2.15-1mdklinus
System.map-2.2.15-12mdksecure vmlinuz@ vmlinuz-secure@
System.map-2.2.15-12mdksmp vmlinuz-2.2.15-11mdk
System.map-2.2.15-1mdklinus vmlinuz-2.2.15-11mdksecure
[root@brian /boot]# ls -ol
total 6223
lrwxrwxrwx 1 root 26 May 30 22:15 System.map ->
System.map-2.2.15-12mdksmp
-rw-r--r-- 1 root 193266 May 28 16:53 System.map-2.2.15-11mdk
-rw-r--r-- 1 root 214254 May 28 15:48 System.map-2.2.15-11mdksecure
-rw-r--r-- 1 root 213818 May 28 16:07 System.map-2.2.15-11mdksmp
-rw-r--r-- 1 root 193266 May 29 10:31 System.map-2.2.15-12mdk
-rw-r--r-- 1 root 214254 May 29 09:21 System.map-2.2.15-12mdksecure
-rw-r--r-- 1 root 213818 May 29 09:40 System.map-2.2.15-12mdksmp
-rw-r--r-- 1 root 180183 May 5 10:58 System.map-2.2.15-1mdklinus
-rw-r--r-- 1 root 0 May 30 22:32 boot.b
-rw-r--r-- 1 root 431 May 31 19:47 kernel.h
drwxr-xr-x 2 root 1024 May 31 00:09 lost+found/
-rw-r--r-- 1 root 182 May 30 17:07 message
-rw-r--r-- 1 root 256 May 29 05:54 us.klt
lrwxrwxrwx 1 root 20 May 30 17:04 vmlinuz -> vmlinuz-2.2.15-12mdk
-rw-r--r-- 1 root 677157 May 28 16:53 vmlinuz-2.2.15-11mdk
-rw-r--r-- 1 root 746687 May 28 15:48 vmlinuz-2.2.15-11mdksecure
-rw-r--r-- 1 root 745665 May 28 16:07 vmlinuz-2.2.15-11mdksmp
-rw-r--r-- 1 root 677155 May 29 10:31 vmlinuz-2.2.15-12mdk
-rw-r--r-- 1 root 746690 May 29 09:21 vmlinuz-2.2.15-12mdksecure
-rw-r--r-- 1 root 745665 May 29 09:40 vmlinuz-2.2.15-12mdksmp
-rw-r--r-- 1 root 563178 May 5 10:58 vmlinuz-2.2.15-1mdklinus
lrwxrwxrwx 1 root 26 May 30 17:04 vmlinuz-secure ->
vmlinuz-2.2.15-12mdksecure
I don't even have the -9 version in my /boot dir anymore. Thoughts?
Thanks,
Brian
PS. Somewhere I heard that there was a size limit for the /boot dir (16Mb). Is
that true? Mine is about 30Mb.
===========================================================================
Brian Fleischman wrote:
> Thanks, I will check this out as soon as I get a chance and forward on my
> lilo.conf
>
> -Brian
>
> Pixel wrote:
>
> > Brian Fleischman <[EMAIL PROTECTED]> writes:
> >
> > > I am having a problem with lilo. I get a fatal error message like the
> > > following when I try to do a lilo -v
> > >
> > > Fatal: /dev/hde filesystem is read-only
> >
> > can you give your lilo.conf and the strace (do "strace -o /tmp/trace lilo -v"
> > and take /tmp/trace)
>
> --
> Brian Fleischman Email: [EMAIL PROTECTED]
execve("/sbin/lilo", ["lilo", "-v"], [/* 37 vars */]) = 0
brk(0) = 0x805acc4
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40013000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=27244, ...}) = 0
old_mmap(NULL, 27244, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40014000
close(4) = 0
open("/lib/libc.so.6", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0755, st_size=931348, ...}) = 0
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0x\215\1"..., 4096) = 4096
old_mmap(NULL, 945852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4001b000
mprotect(0x400fa000, 32444, PROT_NONE) = 0
old_mmap(0x400fa000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0xde000) =
0x400fa000
old_mmap(0x400ff000, 11964, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS,
-1, 0) = 0x400ff000
close(4) = 0
munmap(0x40014000, 27244) = 0
getpid() = 1178
fstat64(1, 0xbfffec1c) = -1 ENOSYS (Function not implemented)
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "LILO version 21.4-3, Copyright ("..., 120) = 120
write(1, "\n", 1) = 1
brk(0) = 0x805acc4
brk(0x805ace4) = 0x805ace4
brk(0x805b000) = 0x805b000
open("/etc/lilo.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0600, st_size=646, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40015000
read(4, "boot = /dev/hde\ntimeout = 50\nlin"..., 4096) = 646
fstat(4, {st_mode=S_IFREG|0600, st_size=646, ...}) = 0
brk(0x805c000) = 0x805c000
open("/etc/disktab", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/boot/map", 0xbffff09c) = -1 ENOENT (No such file or directory)
write(1, "Reading boot sector from /dev/hd"..., 34) = 34
open("/dev/hde", O_RDWR) = 5
fstat(5, {st_mode=S_IFBLK|0660, st_rdev=makedev(33, 0), ...}) = 0
stat("/dev/hda", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 0), ...}) = 0
open("/dev/hda", O_RDWR) = -1 EROFS (Read-only file system)
read(5, "\372\353plbaLILO\1\0\25\4Z\0\0\0\0\0o\315/9\351\343\260"..., 512) = 512
write(1, "Merging with /boot/boot.b\n", 26) = 26
open("/boot/boot.b", O_RDONLY) = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat("/dev", {st_mode=S_IFDIR|0711, st_size=36864, ...}) = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
open("/dev", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 7
fstat(7, {st_mode=S_IFDIR|0711, st_size=36864, ...}) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
brk(0x805e000) = 0x805e000
getdents(7, /* 225 entries */, 3933) = 3924
lseek(7, 2928, SEEK_SET) = 2928
stat("/dev/.", {st_mode=S_IFDIR|0711, st_size=36864, ...}) = 0
stat("/dev/..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/dev/cdrom", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 0), ...}) = 0
stat("/dev/hde1", {st_mode=S_IFBLK|0660, st_rdev=makedev(33, 1), ...}) = 0
close(7) = 0
open("/dev/hde1", 0x4) = 7
stat("/dev/hda", {st_mode=S_IFBLK|0600, st_rdev=makedev(3, 0), ...}) = 0
open("/dev/hda", O_RDWR) = -1 EROFS (Read-only file system)
ioctl(7, HDIO_GETGEO, 0xbfffeeb4) = 0
close(7) = 0
ioctl(6, FIGETBSZ, 0xbffff078) = 0
read(6, "", 438) = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=2265, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40016000
read(7, "# Locale name alias data base.\n#"..., 4096) = 2265
read(7, "", 4096) = 0
close(7) = 0
munmap(0x40016000, 4096) = 0
open("/usr/share/i18n/locale.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file
or directory)
write(2, "Fatal: ", 7) = 7
write(2, "read /dev/hde: Read-only file sy"..., 36) = 36
write(2, "\n", 1) = 1
munmap(0x40014000, 4096) = 0
_exit(1) = ?
boot = /dev/hde
timeout = 50
linear
prompt
message = /boot/message
default = linux-0
vga = normal
root = /dev/hde2
read-only
map=/boot/map
install=/boot/boot.b
keytable=/boot/us.klt
lba32
image = /boot/vmlinuz-2.2.15-12mdksmp
label = linux-0
append = "mem=256M"
image = /boot/vmlinuz-2.2.15-11mdksmp
label = linux-1
append = "mem=256M"
image = /boot/vmlinuz-secure
label = linux
append = " ide2=0xd800,0xdc02 ide3=0xe400,0xe802"
image = /boot/vmlinuz
label = linux-up
append = " ide2=0xd800,0xdc02 ide3=0xe400,0xe802"
image = /boot/vmlinuz
label = failsafe
append = " ide2=0xd800,0xdc02 ide3=0xe400,0xe802 failsafe"