PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 02:39:37 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Harddisk failure..? [SOLVED]  (Read 1285 times)
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« on: October 21, 2010, 01:24:30 PM »

Hi

I heard some strange sounds from my box which have worked fine now for several months. - And the screen went black and I could not do anything but pull the plug. Then I tried to make a safe boot. I did not succeed. Then I started a live cd. I tried to make a new install but I could not. Then I tried to go into my /home to see if I could save some of my work there but there came an error message. If I in a console do this:

[guest@localhost guest]$ dmesg | tail
sd 0:0:1:0: [sda] Unhandled error code
sd 0:0:1:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:1:0: [sda] CDB: Read(10): 28 00 00 00 00 41 00 00 02 00
end_request: I/O error, dev sda, sector 65
EXT4-fs (sda1): unable to read superblock
sd 0:0:1:0: [sda] Unhandled error code
sd 0:0:1:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
sd 0:0:1:0: [sda] CDB: Read(10): 28 00 01 fd 24 1e 00 00 02 00
end_request: I/O error, dev sda, sector 33367070
EXT4-fs (sda6): unable to read superblock
[guest@localhost guest]$

Has my hd died ?

OW
Logged

Nobody knows everything, but everybody knows something...
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11986

┌∩┐(◕_◕)┌∩┐


« Reply #1 on: October 21, 2010, 01:46:04 PM »

Hi OleWilly - until someone with more expertise than myself comes along can I just suggest you don't try to install anything just yet otherwise it may overwrite some of your important data.
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
Ramchu
Hero Member
*****
Offline Offline

Posts: 1429



« Reply #2 on: October 21, 2010, 06:47:32 PM »

Use the live CD and download system rescue CD and burn it to CD

Main page :  http://www.sysresccd.org/Main_Page

Download page : http://www.sysresccd.org/Download

it is a live CD and you can possibly recover your files
Logged

Xenaflux
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 3539


« Reply #3 on: October 21, 2010, 08:25:39 PM »

don't you have an old HD lying around.
If yes, put that in your box and install any linux os on it ( 10 minutes work ).
Then mount your faulty HD
You can now save your data....I hope

Good luck

This is what I did a few months ago.
Using the LiveCD was unsuccessful in my case.
( No clue as why )
Logged

The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #4 on: October 22, 2010, 03:40:27 AM »

Hi

Thanks a lot!

I get this if I try to install:

An error while accessing '98.6 GiB Hard Drive', the system responded:
org.freedesktop.Hal.Device volume.UnknownFailure: mount: wrong fs type,
bad option, bad superblock on /dev/sda6, missing codepage or helper
program, or other error    In some cases useful info is found in syslog -
try    dmesg | tail or so

OW  Huh
Logged

Nobody knows everything, but everybody knows something...
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #5 on: October 22, 2010, 05:31:51 AM »

Hi

Thanks a lot!

I get this if I try to install:

An error while accessing '98.6 GiB Hard Drive', the system responded:
org.freedesktop.Hal.Device volume.UnknownFailure: mount: wrong fs type,
bad option, bad superblock on /dev/sda6, missing codepage or helper
program, or other error    In some cases useful info is found in syslog -
try    dmesg | tail or so

OW  Huh

Running from the LiveCD do a file system check on the partitions.
Do NOT try installing anything.

In a terminal

fsck --help

to see what is to be done.

The partition must be UNmounted to do this safely.

Hopefully running the fsck will sort out the problems.
Be aware it may need to be run on more than one partition.

regards.
Logged
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #6 on: October 22, 2010, 08:53:11 AM »

Hi

This is what I get:

[root@localhost guest]# fsck --help
fsck from util-linux-ng 2.16.2
[root@localhost guest]#

OW  Huh
Logged

Nobody knows everything, but everybody knows something...
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #7 on: October 22, 2010, 08:54:46 AM »

Hi

This is what I get:

[root@localhost guest]# fsck --help
fsck from util-linux-ng 2.16.2
[root@localhost guest]#

OW  Huh

As user here is my output .....  hope that info helps


Code:
fsck --help
fsck from util-linux-ng 2.16.2
fsck.ext4: invalid option -- 'h'
Usage: fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
                [-I inode_buffer_blocks] [-P process_inode_size]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
Logged
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #8 on: October 22, 2010, 09:10:03 AM »

Hi

Thanks. - That is not what You get when booted from a live cd. -  Wonder what the command would be to check a fs on a hd which can not be accessed in a normal way.

OW Huh
Logged

Nobody knows everything, but everybody knows something...
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #9 on: October 22, 2010, 09:15:41 AM »

Hi

Thanks. - That is not what You get when booted from a live cd. -  Wonder what the command would be to check a fs on a hd which can not be accessed in a normal way.

OW Huh

Not sure what you mean .....   Huh

You find the dev node of the partition you wish to check ........  /dev/sdxy

Then follow the information I posted above

fsck -n /dev/sdxy .......  change xy to whatever they should be for the partition you want to check.

If it appears that will correct some errors then you can run it without the -n (No changes when present)

You might also want to use the  -v  option to get the fullest info ....
Logged
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #10 on: October 22, 2010, 09:41:49 AM »

Hi

I tried this:

[root@localhost guest]# fsck -n /dev/sda5
fsck from util-linux-ng 2.16.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda5
Could this be a zero-length partition?
[root@localhost guest]# fsck -n /dev/sda6
fsck from util-linux-ng 2.16.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda6
Could this be a zero-length partition?
[root@localhost guest]# fsck -n /dev/sda1
fsck from util-linux-ng 2.16.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda1
Could this be a zero-length partition?
[root@localhost guest]#

OW  Huh
Logged

Nobody knows everything, but everybody knows something...
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #11 on: October 22, 2010, 09:43:47 AM »

Hi

If I try to erase the whole disk I get this:

[root@localhost guest]# dd if=/dev/zero of=/dev/sda
dd: writing to `/dev/sda': Input/output error
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00687116 s, 0.0 kB/s

OW  Huh
Logged

Nobody knows everything, but everybody knows something...
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #12 on: October 22, 2010, 09:51:54 AM »

Oh well .....  if you want to wipe and not recover the partition OK.

Check your data cable connected to the drive .....  it likely came a little loose and the superbolck is corrupted .......  at least that is one theory.

If that is the case then you can if you wish use one of the backup superblocks to recover the partition or you can delete the partition or the whole disk as you wish.
Logged
OleWilly
Hero Member
*****
Offline Offline

Posts: 742



« Reply #13 on: October 22, 2010, 11:46:21 AM »

Hi

I removed the live cd and looked into the box. I gave the hd cables an extra pressure and switched the power on and PCLinuxOS was flying again fully updated and with all my home stuff.  Smiley Smiley Thanks a lot for all the advices and help. I think that it was eventually the 4 line powercable that was a bit loose.

OW  Cheesy Cheesy Grin Embarrassed
Logged

Nobody knows everything, but everybody knows something...
Was_Just19
Hero Member
*****
Offline Offline

Posts: 6885


MLU


« Reply #14 on: October 22, 2010, 02:21:27 PM »

Hi

I removed the live cd and looked into the box. I gave the hd cables an extra press and switched power on and PCLinuxOS was flying again fully updated and my home stuff.  Smiley Smiley Thanks a lot for all the advices and help. I think that it was eventually the 4 line powercable that was a bit loose.

OW  Cheesy Cheesy Grin Embarrassed

Good result    Smiley

Don't forget to mark the thread as SOLVED   Wink
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM