View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Recovery from ashes
PostPosted: Sun Apr 08, 2012 8:17 pm 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
I am currently running 7.02 and my current system consists of 2 drives, root is mounted to one drive and /myth to a second. Sadly the root hard drive failed today. I attempted to retrieve the data off the drive before it became completely unreadable, but was only partially successful. I did managed to get everything but the /usr directory. I will be performing a fresh install of 7.02 when my new drive shows up later this week. Is there any way I can import the database from this backup into a fresh install so I don't lose all my recordings?

Thanks

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 2:22 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Since /myth is itself own drive you should have no problems. Just restore your system, update fstab and restore your db. I assume LH 7 uses the same mythrestore and mythbackup scripts as v6 did?

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 4:49 am 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
Will that work even though I didn't run the backup script before the system went down?

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 2:07 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Joker wrote:
Will that work even though I didn't run the backup script before the system went down?


...what do you think? :twisted:

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 4:19 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Do you have a recent backup? That's at least a starting point.

There is also a utility to recreate DB entries for your recordings... and I'm going completely blank on the name... :-/


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 7:26 pm 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
Of course I don't have a recent backup, that would be far too easy :roll: . I think I will just start over, I didn't loose too much, just thought I would see if there was a magic bullet I didn't know of. Thanks guys.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Mon Apr 09, 2012 9:09 pm 
Offline
Joined: Sat Feb 03, 2007 12:52 am
Posts: 187
Location: Manitoba, Canada
There used to be a program called myth.rebuilddatabase.pl but I can't find it on my machine and by the looks of it it doesn't work anymore.http://www.mythtv.org/wiki/Myth.rebuilddatabase.pl Bummer. They recommend putting the files in mythvideo for playback. You should be able to find the recording with human readable filenames under /myth/pretty. They are just links and will be overwritten hourly with a running setup so copy/document them before you setup your new system. Good luck.


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Tue Apr 10, 2012 6:17 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
Joker wrote:
I did managed to get everything but the /usr directory. I will be performing a fresh install of 7.02 when my new drive shows up later this week. Is there any way I can import the database from this backup into a fresh install so I don't lose all my recordings?

Thanks


Here's a thought:

1. Do a fresh install of 7.2 on a scratch disk.

2. Copy all of "/usr" over to your recovered drive where you have everything but "/usr" and use that as your boot drive.

_________________
Marc

The views expressed are my own and do not necessarily reflect the views of my employer.


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Tue Apr 10, 2012 8:27 am 
Offline
Joined: Mon Dec 24, 2007 9:47 am
Posts: 535
Location: Ottawa, Canada
You may also be able to grab the mysql database itself (it is just a bunch of files) and copy it over to the new install. The run optimizemythdb to make sure it is clean. I'm not home at the moment but I think it is under /var

-C


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Tue Apr 10, 2012 10:22 pm 
Offline
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location: Orlando FL
run SpinRite on the drive. You can find it all over the web and it if it works Pay Steve for it $80 www.grc.com/spinrite it is the best hard drive recovery money can buy. Just shy of some guys in bunny suits in a clean lab dissecting the drive!

_________________
My System


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Wed Apr 11, 2012 11:46 am 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
I mistyped earlier, I am missing /usr and /var. I may give spinrite a shot, but I don't expect it to do much. The drive just clicks at me now.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Wed Apr 11, 2012 5:30 pm 
Offline
Joined: Tue Mar 27, 2012 1:23 am
Posts: 26
Location: South Dakota, USA
If it is just clicking, then it usually means that the heads cannot detect the servo track information. In other words, the drive is a brick now. The only hope would be a clean room and re-formatting the servo tracks without touching the data blocks. With the old drives (MFM, RLL, ESDI), there are utilities that could re-align the heads with the tracks on the disk, but with modern drives, most software is isolated from those features of the controller, since it is now integrated on the drive.


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Thu Apr 12, 2012 8:05 am 
Offline
Joined: Sun Mar 06, 2005 12:46 pm
Posts: 64
Well, I just got lucky. I had the new drive set up and ready to reformat everything and I decided to give the old drive one last try... and it worked :D . I recovered the rest of the disk. I booted the image from a USB stick and was able to perform a full backup. I think I need a proper backup regimen. Lesson learned.

_________________
AMD BE-2400
ASUS M2N-E Motherboard
4GB Ram
Nvidia 9400 Fanless
2 HDHomerun (dual tuner)


Top
 Profile  
 
 Post subject: Re: Recovery from ashes
PostPosted: Sat Jan 21, 2017 1:00 am 
Offline
Joined: Wed Mar 03, 2004 7:43 pm
Posts: 748
Location: Sydney, Australia
A bit late (to help Joker), but the script myth.rebuilddatabase.pl lives on in this WiKi page:

https://www.mythtv.org/wiki/Myth.rebuilddatabase.pl

and for MythTV older than 0.25:

https://www.mythtv.org/wiki/Myth.rebuilddb.pl

_________________
| Nigel Pearson, nigel.pearson.au@gmail.com
| "Things you own end up owning you" - Tyler, Fight Club


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu