Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
this morning my server (Centos 6) was spewing out messages about a disk problem. Mistake #1 - I thought a reboot would fix it so I did not write down the error. In fact I could not boot the system as the boot loader is on this disk. So I fell back to a linux mint rescue CD I use. This revealed that the "other" disk - the backup disk - is intact, while the disk with the operating system is not. I swapped over cables to see whether this was the problem but no joy. Similarly, I tried different ports on the motherboard to no avail.
The problem is that while the "important" stuff is backed up...There are a lot of "doodles" on the dead disk which have mounted up over the years and I would really like to recover these. A simple command from the rescue CD
Quote:
sudo mount /dev/sdb1 /mnt/aaa/ -t ext4
mount: special device /dev/sdb1 does not exist
[32]mint@mint ~ $ sudo mount /dev/sda1 /mnt/aaa/ -t ext4
mint@mint ~ $ ls /mnt/aaa/
backup lost+found tim
I also ran gparted and this reported an error reading this disk and it's display just shows the content of the disk as "unallocated".
So I can simply stick in a new disk and recover all my backups but I would like to look at the contents of the dead disk. Any suggestions or troubleshooting hints?
Doesn't sound promising.
dmesg should tell you the extent of the errors and whether a device node was created for it at boot (Mint liveCD). What does "lsblk -f" return ?.
this morning my server (Centos 6) was spewing out messages about a disk problem. Mistake #1 - I thought a reboot would fix it so I did not write down the error. In fact I could not boot the system as the boot loader is on this disk. So I fell back to a linux mint rescue CD I use. This revealed that the "other" disk - the backup disk - is intact, while the disk with the operating system is not. I swapped over cables to see whether this was the problem but no joy. Similarly, I tried different ports on the motherboard to no avail.
The problem is that while the "important" stuff is backed up...There are a lot of "doodles" on the dead disk which have mounted up over the years and I would really like to recover these. A simple command from the rescue CD
and a suggestion I picked up from the net
I also ran gparted and this reported an error reading this disk and it's display just shows the content of the disk as "unallocated".
So I can simply stick in a new disk and recover all my backups but I would like to look at the contents of the dead disk. Any suggestions or troubleshooting hints?
Cheers
If sections of that disk are truly dead, there is a good reason. Depending upon the reason, you might be able to get access to some files, or you may get nothing at all.
Going forward, you need to back up EVERYTHING (but only about as often as it changes), and get that backup OFF SITE. Another disk on the same server, or in the next room, is not really good enough if your data matters.
Now to the present: I would load up a live-cd image with photorec and give it a couple of days (more or less) to work on that disk. If you can get anything at all, it will tell you.
If you have the option, I would try to image the disk first as a special backup. As it works, the problem may get much worse and prevent access to the things that are currently working, so preserve what you can.
It's bad that the report is "device error" and not "medium error". That suggests that the problem is in the drive's controller, not the disk surface, and that you won't be able to read anything at all from that disk. Professional data recovery would stand a good chance of recovering everything from that disk, but that's going to be expensive. How much are your "doodles" worth to you?
I used ddrescue a long while back to recover data from a dead USB stick. So long ago, in fact, that I can't offer any better advice than just the name of this tool. Sorry. But wishing you luck to recover your data.
thanks for all the feedback. I was really testing the water to see whether the disk was recoverable and it sounds like it isn't easily so I'll ponder my next move. I have a spare drive available so I might set the system back up again and plug in that disk later.
The content is mostly home directories from other computers I used to back up to that server. Also fstab and smb.conf would have been good as reference points but it is not the end of the world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.