Solved

Momentary power outtage causes error message in file /scsi/sg.o

Posted on 2006-10-23
3
239 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:EvilOtto
3 Comments
 
LVL 2

Author Comment

by:EvilOtto
ID: 17792869
I do not have a rescue CD as they recommend on the debian forums, nor do I have the OS CD, but I'm sure I can obtain the OS cd somehow.
0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 total points
ID: 17799837
Hi,

sg.o is the genereic scsi driver. This is normal for your linux not boot becaue it can no longer access your boot volume.
In this case what you will do is :

fsck -y /dev/sdaX  (X tands for your drive letter)

This may fix the problem with your File Allocation Blocks and you can boot.

You can get this verison rpm vity yast2 tool and copy the same version sg.o to /lib/modules/2.4.27-2-386/kernel/drivers/scsi.

If you can't find a similar version you may try to recompile the source obtained from http://www.kernel.org archives.

You don't need a rescue disk knoppix is OK. In fact the rescue disk you'd obtain from the debian site will most probably include a 2.6.x kernel.

I hope this helps.

Cheers,
K.




0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now