Solved

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

Posted on 2006-10-23
3
236 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

18 Experts available now in Live!

Get 1:1 Help Now