Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.