Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-10-23
3
Medium Priority
?
247 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

885 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