Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-20-2014, 09:14 PM   #16
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 585

Original Poster
Rep: Reputation: 38

Originally Posted by jailbait View Post
Probably. You need to make an initrd against the Crunchbang kernel not the rescue CD kernel. From the error messages I think that it may have been looking for 3.2.0-4-amd64 3.2.0-4-rt-amd64 kernel modules on the rescue CD which is using a 3.4.62-std380-amd64 kernel.

Steve Stites
How would I do that? I can't boot with the kernel in Cruchbang

I have some additional info. I wasn't sure how much was needed
in smartctl.
root@crunchbang:~# dd if=/boot/initrd.img-3.2.0-4-amd64 of=/dev/null
dd: reading `/boot/initrd.img-3.2.0-4-amd64': Input/output error
19256+0 records in
19256+0 records out
9859072 bytes (9.9 MB) copied, 48.5806 s, 203 kB/s
root@crunchbang:~# dmesg | tail
[ 881.982948] sd 0:0:0:0: [sda] Unhandled sense code
[ 881.982953] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 881.982961] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
[ 881.982973] Descriptor sense data with sense descriptors (in hex):
[ 881.982977] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ 881.982991] 05 23 2e 6e
[ 881.982998] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
[ 881.983007] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 05 23 2e 68 00 00 08 00
[ 881.983021] end_request: I/O error, dev sda, sector 86191726
[ 881.983051] ata1: EH complete
root@crunchbang:~# smartctl -a /dev/sda | grep _Sector
5 Reallocated_Sector_Ct 0x0033 063 063 050 Pre-fail Always - 1921
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 126
Old 01-20-2014, 10:20 PM   #17
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
section 6.3 of this web page:

explains how to generate a new initrd for an existing kernel in Debian. Crunchbang is based on Debian so it may work the same way (maybe) in Crunchbang. Notice that you tell dpkg which kernel you want to make an initrd for so that dpkg is not necessarily making a new initrd for the kernel you are running on. I suggest that you boot into Crunchbang using the rescue CD and then try to recreate the Crunchbang initrd using dpkg.

Another way to do this is to use the rescue CD to boot into Crunchbang and reinstall your kernel. I am pretty sure that reinstalling a kernel also includes making a new initrd. I use the Synaptic GUI for apt-get so I would use Synaptic to find the kernel (probably) named linux-image-3.2.0-4-rt-amd64, mark it for reinstallation, and click on APPLY. After the reinstalling the kernel you have to reboot. If you don't use Synaptic then I think that the apt-get command is:

apt-get install --reinstall linux-image-3.2.0-4-rt-amd64

but whichever command you try you better check to make sure that linux-image-3.2.0-4-rt-amd64 is actually what Crunchbang calls the kernel package that you are using. I am more sure that what I told you about Synaptic is correct than I am about what I told you about apt-get.

Steve Stites
Old 01-20-2014, 10:48 PM   #18
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 2,508

Rep: Reputation: Disabled
Originally Posted by JosephS View Post
I have some additional info. I wasn't sure how much was needed
in smartctl.
Your drive has bad sectors, which means it is probably failing and needs to be replaced.
Old 01-21-2014, 03:55 PM   #19
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 585

Original Poster
Rep: Reputation: 38
thanks for the help

I followed jailbait's advice today and reinstalled the kernel. The computer is booting up again with the flash drive. The sound also is working again.

I might still have to look into getting another hard drive or computer. Yesterday the computer froze on me and I lost the mouse and screen; had to reboot and got it working again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic on EVERY Bootup tubatodd Ubuntu 9 04-29-2007 10:08 PM
kernel panic on bootup Tortanick Linux - General 3 01-23-2007 05:56 PM
kernel panic on bootup MattJohnson Fedora 3 11-24-2004 12:18 PM
slack 9.1 - kernel panic on bootup? rogue_jedi Slackware 3 11-21-2003 07:13 PM
Kernel Panic right at bootup. huh?! bkeating Linux - General 15 08-22-2002 05:15 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration