Solved

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

Posted on 2006-10-23
3
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Samba using Kerberos to Auth from Active Directory 9 121
How to change the nameserver on Ubuntu Server 6 99
CLI command keep running after close 7 73
NFS v4 7 76
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

739 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