LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-06-2022, 03:16 PM   #1
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Rep: Reputation: Disabled
Data Recovery from bad SSD


Hello, I've built (with a lot of help) a couple of data acquisition units built around a PC-104 stack. The CPU board (real-time-devices) is an old 650 MHz Celeron, the "hard-drive" is a parallel ATA 64 GByte SSD.

It seems that on my "base" station receiver, the SSD has become corrupted, or is failing/failed, possibly due to heat stress?, with the high temperatures recently.

I've attached two files here which contain the output of "fdisk -l", one for the "rover" receiver (which works fine and all is in a normal state) and one for the base station receiver (on which the SSD seems to be damaged).

The receivers are supposed to boot Slackware linux with real time patch off the 64 GByte SSD, the base station won't boot up however, I just get a bunch of "9A" characters echoed to screen.

There is also a 4096 MByte flash drive on the motherboards which is not being used but does contain an old Fedora distn, which I can boot up on the base station, but can't mount the 64 GByte SSD.

On the base station receiver I also booted up TinyCore Linux kernel 2.6.33 and got the fdisk -l output for the base station that way.

I can "see" the 64 Gbyte drive with "fdisk -l" but it shows up now as a 32 GByte drive on the base station ??

There's some data on the base station receiver that I would like to recover if possible, does anyone have any ideas for how to do this without being able to mount the SSD ?

Thanks in advance for the help.base.txt

rover.txt
 
Old 09-06-2022, 04:59 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956Reputation: 5956
9A is the lilo code for no second stage loader signature.
Code:
Disk /dev/hda: 32.2 GB, 32211599360 bytes
16 heads, 63 sectors/track, 62413 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hda1   *           3         523      262144  83 Linux
/dev/hda2             523       17167     8388608  83 Linux
/dev/hda3           17167      124831    54262784  83 Linux
With fdisk only reporting 62413 cylinders that would make sense it is only being "seen" as 32 GB. You can try using dd to make an image of the drive and a recovery tool to find data.
 
Old 09-06-2022, 07:27 PM   #3
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks a lot for the help, I'll try using dd to make an image of the drive, I only have USB 1.0 ports so I suppose it will take many hours to put a 32 GByte image onto a pen drive, but worth a try, thanks for the LILO error message explanation, I wasn't aware of that.
 
Old 09-06-2022, 07:34 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Might be able to do other copies. dd may fail on errors so there are other programs that continue.

Might be possible to run testdisk on it.
 
Old 09-07-2022, 03:37 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,528

Rep: Reputation: Disabled
A possible better software would be ddrescue.
 
1 members found this post helpful.
Old 09-17-2022, 01:30 PM   #6
MTCAT
Member
 
Registered: Jan 2021
Posts: 32

Original Poster
Rep: Reputation: Disabled
Hi, I made an image of hda3 (the user partition), I called it base.img, came out to 21.7 GBytes, I copied base.img off the pen drive and into the home directory on my Slackware box, made a directory called "recovery", and tried to mount the image using /home/dave/recovery as the mount point.

But, it didn't work, looking at dmesg, I saw

[1810.399627] EXT4-fs [loop 0]: failed to parse options in superblock: y?
[1810.399652] EXT4-fs [loop0]: bad geometry: block count 13565696 exceeds size of device (5701216 blocks)

Any ideas what I can do to try to mount this 21.7 GByte image file ?

I tried running resize2fs but it protested requesting that I run efsck first, and I'm not really sure what is the correct size to re-size too, I guess something less than 5701216 blocks ? I did try running e2fsck but that generated a whole slew of errors as well, so I didn't go too far into that.

Thanks,

David
 
Old 09-18-2022, 10:50 AM   #8
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by jefro View Post
Might be able to do other copies. dd may fail on errors so there are other programs that continue.

Might be possible to run testdisk on it.
Try using ddrescue, it tries to continue to copy in case of errors. Plus a bunch of other stuff to get as much data off the drive as possible. Have used or a few times to recover data from a failing disk.
 
Old 09-18-2022, 12:59 PM   #9
SW64
Member
 
Registered: May 2014
Distribution: Slackware
Posts: 262

Rep: Reputation: 123Reputation: 123
Be sure to read it in its entirety before proceeding on your drive and use the mapfile as suggested in it.

https://www.gnu.org/software/ddrescu...ue_manual.html
 
  


Reply



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
[SOLVED] Combining anti-virus + data recovery + image recovery? littlebigman Linux - Software 8 08-12-2010 02:39 AM
Bad disk, bad disk controller, or bad memory? NULL Pointer Linux - General 2 03-01-2009 05:21 PM
Bad mount of .mdf - "wrong fs type, bad option, bad superblock, on /dev/loop0" Maybe-not Linux - General 2 02-29-2008 01:30 PM
Bad SCSI drive data recovery baabakb Linux - General 3 12-28-2006 08:08 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:59 PM.

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
Open Source Consulting | Domain Registration