LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-03-2006, 02:55 AM   #1
telakenesys
Member
 
Registered: May 2006
Location: Newcastle, Australia
Distribution: Ubuntu, Raspbian, RaspBMC
Posts: 33

Rep: Reputation: 15
Problems with SMART drive


I am having all sorts of trouble with one of my drives. The other night I ran some SMART diagnostic test on my drive, and since then I can't mount it. I have tried everything. It has bad sectors on it.

I have tried to Ghost it, and gave up after about two hours when it had copied 190MB and had about 200 hours to go.

I thought that I might be able to mount it in another machine a try to copy the data that I need that way. /dev/hdc1 & /dev/hdc2 did exist, but now they dont and all I have is /dev/hdc but when I got to try to mount it is says that id doesn't exist.

What can I do? The data is important.
 
Old 12-03-2006, 08:09 AM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi telakenesys,

I'm afraid you have little chance with your disk. I guess the fact that there is no partition devices means your partition table is lost. Do you know where your partitions start and end? What kind of partitions were they? If they were ext2/ext3, you could use e2tools to read the disk without mount it.

May be the kernel does not access the disk because the bios did report the disk as bad; try to disable the smart option of the bios to see if the partitions reappear.

I would suggest you comment your hdc mount entries on the /etc/fstab before turn on the disk to reduce the disk access to the minimum because the next access can be the last.

The e2tools has the common commands cp, ls prefixed by "e2", e2cp, e2ls, etc. You will use the device to reference the file system, for example:
Code:
e2ls /dev/hdc1:/
for the root of the file system.

But all I am talking depends on have the partitions and they are ext2/ext3.
 
Old 12-03-2006, 08:55 AM   #3
telakenesys
Member
 
Registered: May 2006
Location: Newcastle, Australia
Distribution: Ubuntu, Raspbian, RaspBMC
Posts: 33

Original Poster
Rep: Reputation: 15
The partitions are ext2, I'm sure. I had a look in the BIOS, but there is no place to turn off SMART.
I dont have anything in my fstab. I am using FC5 if that helps.

I will give e2tools a go.

The strange thing is that the partitions were in /dev/ and then when I went to mount, they were gone.
 
Old 12-03-2006, 09:26 AM   #4
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Look at the /var/log/messages, search for "hdc" and see what kernel is reporting about it. On the other hand, take a look on the cables, try to identify if the disk is turning on when you power the system. When you have a cable problem it's possible the kernel couldn't access it.

It's normal you see the device and can't mount it if there any problems with the drive. Also the modern systems use udev, which create the devices on demand. If the kernel can't access a device it does not create it.
 
Old 12-04-2006, 02:49 AM   #5
telakenesys
Member
 
Registered: May 2006
Location: Newcastle, Australia
Distribution: Ubuntu, Raspbian, RaspBMC
Posts: 33

Original Poster
Rep: Reputation: 15
I had a look in /var/log/messages and there is no mention of hdc anything. So I ran fsck /dev/hdc with the following output:

Code:
Couldn't find ext2 superblock, trying backup blocks...

fsck.ext2: Bad magic number in super-block while trying to open /dev/hdc
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
I also tried this with e2fsck with the same result. When I try:
Code:
e2ls /dev/hdc1:/
No such file or directory
I was talking to someone today, and they said trying e2fsck with an alternate superblock. How??
 
Old 12-04-2006, 07:27 AM   #6
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
I'm sorry to say that without the partition table you can't find /dev/hdc1 neither /dev/hdc2.
 
Old 12-04-2006, 07:43 AM   #7
linuxonbute
Member
 
Registered: May 2005
Location: Ardbeg on Bute
Distribution: Ubuntu 12.04 on Laptop and Desktop PC
Posts: 39

Rep: Reputation: 15
Quote:
Code:
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
Quoting from your last post
The answer was in it:
e2fsck -b 8193 <device>
best wishes
 
  


Reply

Tags
drive, mount, smart


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
2nd Hard drive whose SMART status has changed from good to bad pwc101 Linux - Hardware 3 08-28-2006 12:33 AM
Help needed with Smart and Friendly CD-RW drive tomdkat Linux - Hardware 0 08-17-2003 01:31 PM
TREK (smart) USB flash drive pkdk657 Slackware 2 03-06-2003 10:16 AM
USB Smart Drive compatible with lin? wldkos Linux - General 10 01-23-2003 04:35 PM
LS-120 Smart Drive 3.5" dohicks@cyberpo Linux - Software 8 10-08-2001 09:21 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
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