LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-04-2004, 11:54 AM   #1
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Rep: Reputation: 17
Kernel Panic root cannot be mounted


Hi everybody

Pls. help me get back my dead linux or at least to get back my /home directory.
Yesterday my slk 9.1 had died suddenly without any other apparent reason.
Now when I start up after a while when it tries to load my root fs it can not.

error message is the following

ide0: reset success
hda: read_intrd: status=0x51 [DriveReady SeekComplete Error] "<-on the screen there is an other than this [] or () but I just cannot find the third type in Win"
hda: read_intrd: eror=0x10 [SectorIdNotFound] LBAsect=238979904, sector=16

this comes repeted many times than

end_request: I/O error, dev 03:05 (hda), sector 128 "in the beginning comes with sector 64 than 128"
sh-2006: reiserfs read_super_block: bread failed (dev 03:05, block 64, size 1024)
sh-2021: reiserfs_read_super: can not find reiserfs in ide0(3,5)
Kernel panic: VFS: Unable to mount root fs on 03:05


cfdisk gives the following result:

FATAL ERROR: Bed logical partition 4: Partition ends before sector 0
press any key to exit cfdisk


fdisk /dev/hda gives the following result:

Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5

"than I put p"

Disk /dev/hda: 240 heads, 63 sectors, 839 cylinders
Units=cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 129 975208+ b Win95FAT32
/dev/hda2 130 839 5367600 5 Extended
/dev/hda5 ? 228850 166438 1675650409 df BootIt


"putting x than p gives this"

Disk /dev/hda: 240 heads, 63 sectors, 839 cylinders

Nr AF HD Sec Cyl HD Sec Cyl Start Size Id
1 80 1 1 0 239 63 128 63 1950417 0b
2 00 0 1 129 239 63 838 1950480 10735200 05
3 00 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 00
5 cd 206 17 978 204 8 812-836712416-943666478 df

My questions follow

1., How can I get back my data that was strored on /dev/hda6 mounted as /home
2., What could be the reason for this to happen
3., Would it be a good idea to put / o /boot in other than reiser fs

Please Please help me with the first question as I have my data on the hard drive

Please
 
Old 05-04-2004, 05:13 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 187Reputation: 187
"1., How can I get back my data that was strored on /dev/hda6 mounted as /home
2., What could be the reason for this to happen
3., Would it be a good idea to put / o /boot in other than reiser fs"

This problem could have one of several causes. Here are the possibilities and the fixes:

A. You could have filesystem errors, perhaps caused by improper shutdown. So the first thing to try is to boot a rescue CD and run fsck against every Linux partition except swap. It is important to give fsck the correct filesystem type. Assuming that you are using reiserfs then the commands would look like:
fsck -t reiserfs /dev/hda1
fsck -t reiserfs /dev/hda2
and so on. Answer y to every question that fsck asks.

B. If A. doesn't work then you may have hardware problems with your IDE controller chipset. Swap your hard drive to another computer (Let's assume that your drive is now /dev/hdd on the second computer). Boot your rescue CD and try mounting /dev/hdd6 to retrieve /home.
mkdir /prayer
mount -t reiserfs /dev/hdd6 /prayer
ls -l /prayer
If you can access /home this way then copy /home to someplace safe on the second computer.

C. If you still get hardware errors after running fsck and swapping to a different computer then you probably have a broken hard drive and you are probably screwed.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

Last edited by jailbait; 05-04-2004 at 07:13 PM.
 
Old 05-04-2004, 06:14 PM   #3
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
Thanks for yor reply Jailbait

As a newbee i still have two questions: the first refers to the A possibility. What is a rescue cd, is slackware livecd is one or damnsmall linux would be one or where can i get one?
The second refers to the B option where can i get more info about how to swapp my hd to an other computer. I have my problem on a presario laptop and i have an other comp notebook 100. How can than I swapp the first to the second? The only way of connecting i see is via paralell port cable.

Thankx again for your reply
as soon as i get home will try out A
 
Old 05-04-2004, 07:12 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 187Reputation: 187
" What is a rescue cd, is slackware livecd is one or damnsmall linux would be one or where can i get one?"

A rescue CD is a bootable Linux CD. You can probably use Slackware livecd as a rescue CD. When you run fsck you have to run it against an umounted partition. Some live CDs automatically mount your disk partitions when you boot the live CD. To make sure that the partition is umounted you should issue a umount command before running fsck. Something like:
umount /dev/hda1
fsck -t reiserfs /dev/hda1
umount /dev/hda2
fsck -t reiserfs /dev/hda2

"The second refers to the B option where can i get more info about how to swapp my hd to an other computer. I have my problem on a presario laptop and i have an other comp notebook 100. How can than I swapp the first to the second? The only way of connecting i see is via paralell port cable."

You swap hard drives by taking both computers apart and physically moving the hard drive to the second computer. I didn't realize that you were talking about laptop computers. Taking a laptop computer apart is a lot more work than taking a desktop computer apart. Also a laptop only has room for one hard drive so you cannot add the bad hard drive as a second hard drive in the second laptop. You will have to replace the hard drive in the second computer with the bad hard drive and see if it will boot in the second laptop.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites

Last edited by jailbait; 05-04-2004 at 07:15 PM.
 
Old 05-04-2004, 07:23 PM   #5
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
Thank you than I will try the A possibility i do hope that is nothing more than a shudown that did not go well.
 
Old 05-05-2004, 05:23 PM   #6
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
So I have tried out possibility A sadly it did not work out. After issuing fsck -t reiserfs /dev/hda5 something starts. That thing takes up to 25 min. Suppose that is the checking and recovering prosess. When i tried with my slack live cd it did not gave me any messages after that 25 min. but i was still unable to mount. When i tried fsck with damn small linux it gave me the folowing error message:
fsck: fsck.reiserfs: not found
fsck: Error 2 while executing fsck.reiserfs for /dev/hda5

And of course it cannot mount /dev/hda5
the same applies for my other reiser partition /dev/hda6 which used to be /home

On the other hand I was thinking that it may be my foult as while I was waiting for the first reply I was of course trying to do something so i ran fdisk. When i ran it the first time it was talking about an error that can be corrected with "w" which i did try. But now I am thinking that with this act I screwed up really bacause i suppose it wrote the new partition table on disk (which actually was not my original file table)

So I have now the question, Is there any possibility to recover my data?

I discard possibility B (the chipset incompatibility as I have been using Linux for two years without any problem (And I am still a newbie )
I may also discard the last possibility of fisical error as i can still use the In-doze os that came with the laptop

So please if there was any possibility of data recovery in this situation pls.pls let me know
Of course if there was not any let me know as well

thanks in advance
 
Old 05-05-2004, 09:44 PM   #7
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 187Reputation: 187
"When i tried fsck with damn small linux it gave me the folowing error message:
fsck: fsck.reiserfs: not found
fsck: Error 2 while executing fsck.reiserfs for /dev/hda5"

This is not a problem with your hard drive. This simply means that damn small linux does not have the program called fsck.reiserfs.

"On the other hand I was thinking that it may be my foult as while I was waiting for the first reply I was of course trying to do something so i ran fdisk. When i ran it the first time it was talking about an error that can be corrected with "w" which i did try. But now I am thinking that with this act I screwed up really bacause i suppose it wrote the new partition table on disk (which actually was not my original file table)"

If you wrote a new partition table that is exactly the same as the old partition table then you are OK. If you wrote a new partition table which is different than the old partition table you have probably lost everything on the hard drive.

"After issuing fsck -t reiserfs /dev/hda5 something starts. That thing takes up to 25 min. Suppose that is the checking and recovering prosess. When i tried with my slack live cd it did not gave me any messages after that 25 min. "

That sounds like a hardware error. fsck gives you progress messages as it works its way through a partition. You should get a few messages immediately when you start fsck. After that the time between messages should be no more than 5 minutes at the most. So it sounds like fsck was never able to get started which probably means that the hard drive is unreadable.

As a simple test of whether the hard drive is even readable try this command from the rescue CD:
fdisk -l /dev/hda
and fdisk should list all of the partitions on /dev/hda. Since fdisk wrote a partition table when you issued fdisk -w then fdisk should at least be able to read back the partition table that it wrote.

Another thing that you can do from the rescueCD is to try the badblocks command against each partition:
badblocks /dev/hda1
badblocks /dev/hda2
and badblocks will tell you if there are any bad spots on the hard drive.
-------------------------------------------------
Steve Stites

Last edited by jailbait; 05-05-2004 at 09:47 PM.
 
Old 05-06-2004, 01:16 PM   #8
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
First of all thanks for the answer

Sadly I do think that i have lost the original partition table as the new
has only three lines while i used to have a swap partition and a /home
partition. However fdisk -l /dev/hda reads back a partition table, the
one included in the first post, that is not what i used to have i suppose.
however I thought that it may not be a bad idea to start this bad block
checking so i issued
badblocks /dev/hda5
however i now have a problem
i ussued the badblock check at 10 pm now is 11.30 am the other day and
checking still goes on. There is a counter that started from 0 and now
it is at 1900. I have no idea till how much it shall cerry n counting
but if blocks are the utints and hda5 has 1675650409 blocks as fdisk
shows this drive, i may not wish to wait for some weeks.

So my question is whether this velocity is normal, and what is the unit
of the counting (will i have to wait much more for a 6.4 GB hard drive),
and if i can shutdown this program (with ctrl-c or with explicit shutdown
-h now from a other screen)
I would add just one more question would it be safer create a
/dev/hda3 partition and mount /home there?
I used to have /dev/hda1 primary and /dev/hda2 extended partitions and
linux (/dev/hda5;/dev/hda6;/dev/hda7-swap) used to be located on the
extended partition, as far as i understand.
Thus the question is if it makes sense to have only / y swap on /dev/hda2
and /home on /dev/hda3?
 
Old 05-06-2004, 04:14 PM   #9
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,578

Rep: Reputation: 187Reputation: 187
"i ussued the badblock check at 10 pm now is 11.30 am the other day and
checking still goes on. There is a counter that started from 0 and now
it is at 1900. I have no idea till how much it shall cerry n counting
but if blocks are the utints and hda5 has 1675650409 blocks as fdisk
shows this drive, i may not wish to wait for some weeks."

You can speed up badblocks with the -c parameter. -c tells badblocks how many blocks to check at one time. If you set it too high then badblocks will run out of memory and crash. The other parameter that you can give badblocks is a block number to start at so that you do not have to repeat what you have already tested. Here is the badblocks man page:
http://reviewed.homelinux.org/man/badblocks/

"Thus the question is if it makes sense to have only / y swap on /dev/hda2
and /home on /dev/hda3?"

That is a sensible way to do your partitions.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites
 
Old 05-06-2004, 05:58 PM   #10
edemark
Member
 
Registered: Jan 2004
Location: Ecuador
Distribution: slackware 9.1
Posts: 41

Original Poster
Rep: Reputation: 17
So I guess that I will give up waiting, predominantly because i suppose that even if i wait till the badblocks prog finishes i will not be able to recover my data. So i will do a fresh install (with badblock check at formatting, in the partition setup).
I will make three primary hda-s /dev/hda1 -for the infamous In doze os that i allready have; /dev/hda2 for / and Swap; and finally /dev/hda3 for /home I hope it will save me from data loss next time

Thanks again Jailbait for all the help and i have learned a lot of how to try to recover from data loss even if it did not work out this time.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Boot - VFS Kernel Panic root/sda not mounted PolyPerception Linux - Hardware 4 09-08-2005 04:25 PM
Kernel Panic when logging as root JabberWalkie Linux - General 6 04-17-2005 03:39 AM
Kernel Panic: can't mount root fs gtanghookup Linux - Software 10 12-03-2003 06:14 PM
Root login / Kernel panic minnyb Linux - Software 5 11-21-2003 12:39 AM
Kernel Panic when mounting root fs Neorio Linux - General 1 10-21-2003 10:26 PM


All times are GMT -5. The time now is 12:49 PM.

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