Momentary power outtage causes error message in file /scsi/sg.o
Posted on 2006-10-23
I'm supporting a Debian box running 2.4.27-2-386
A momentary power outtage caused the file to get corrupted or become unreadable somehow and now the machine won't boot. The error is below.
insmod: /lib/modules/2.4.27-2-386/kernel/drivers/scsi/sg.o: No such file or directory
insmod: insmod sg failed
SCSI subsystem driver Revision: 1.00
Journalled Block Device Driver loaded
pivot_root: No such file or directory
/sbin/init: 432: cannot open dev/console: No such file
Kernel panic: Attempted to kill init!
I've booted with a knoppix bootable CD, but can't see many of the files on the ext2 and jfs file systems due to permissions problems. I have the root password for debian, but cannot seem to use it to modify the files.
I have a few questions, sorry if these are basic
1) How can I force the file system to allow me to access the files? I can probably do a side-install of another linux OS and use chmod/chown but I'm not sure that's the easiest and most effective way to do it.
2) Can I just recompile the kernel or use another method to recreate the damaged file? It seems like a simple SCSI device driver.
Thanks for your time.