[SOLVED] Need to recover /home after hard drive failure

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Need to recover /home after hard drive failure

Postby mark9117 » Jan 3rd, '18, 20:01

Last night I lost the data drive on my desktop. I was unable to access a directory on it and the machine locked up. I rebooted and when it came back on it booted to rescue mode (or whatever the condition is called). I could login as root and check logs, but nothing on that drive could mount. Including /home.

I figured out which of the 3 drives in the box was at fault and dragged out a spare 3 TB replacement. It was bedtime and I packed it in for the night. I'll be trying to put this back together tonight, but as I think through the process, I'm unsure as to how I can get the disc partitioned and get enough /home restored from backups via BackupPC to get everything back in action.

I know I can access man files on fdisk (or whatever tool it will take) but I may be able to run drakdisk over ssh from my file server or a laptop. Trouble wit that is my user ssh credentials are in my /home directory and that's gone. I could be overthinking the whole thing.

Does anybody have any experience or tips on how to minimize the time and heartache involved in all this?

I do appreciate it.
Last edited by doktor5000 on Jan 4th, '18, 14:18, edited 1 time in total.
Reason: marked [SOLVED]
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: Need to recover /home after hard drive failure

Postby jiml8 » Jan 3rd, '18, 21:09

Did you try fsck on the drive that has the problem? What you describe sounds to me like file system corruption, not a bad drive. Fsck will recover it if that is the case.
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: Need to recover /home after hard drive failure

Postby mark9117 » Jan 3rd, '18, 23:13

I did not think of that. Gracias for bringing it to my attention. I will whip fsck on it tonight.

I'll let you know.
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: Need to recover /home after hard drive failure

Postby jiml8 » Jan 4th, '18, 04:54

I keep multiple backups of everything...and you should too, if you value your data.

I also keep backups of the master boot records on all my hard drives. I do this differently for MBR and UEFI drives but I do it for both.

On encrypted partitions (which is every partition in my system except / ) I backup the encryption key section of the partition.

I have copies of these boot records and encryption records scattered...well...everyplace. There is an up to date copy of this info on my android phone. I am making sure that under any circumstances that information will be available to me so I don't lose data.

So, when I find myself with a bad drive, or a corrupted MBR, or a corrupted encryption table, I can recover without any particular trouble.

Just a comment...
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

Re: Need to recover /home after hard drive failure

Postby mark9117 » Jan 4th, '18, 08:52

Spent about 45 minutes running fsck on /dev/sdb1 and it did the trick. My desktop is back! Again, I appreciate the assist.
Let's just reboot everything all the time.
User avatar
mark9117
 
Posts: 395
Joined: Sep 12th, '11, 20:32
Location: Eastern New Mexico -- Not Hell, but you can see it from here.

Re: Need to recover /home after hard drive failure

Postby isadora » Jan 4th, '18, 12:43

Marking [SOLVED] Mark? :)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron