LinHES Forums http://forum.linhes.org/ |
|
Mkcdrec (Make CD-ROM Recovery) Howto http://forum.linhes.org/viewtopic.php?f=11&t=3591 |
Page 1 of 2 |
Author: | davem [ Sat Feb 19, 2005 10:35 pm ] |
Post subject: | Mkcdrec (Make CD-ROM Recovery) Howto |
I just added mkcdrec to my knoppmyth box so I could make another backup of the system before moving forward to R5A10. I've now got a single bootable CD I can use to re-install my knoppmyth box from bare metal if necessary. It should recover to exactly as it was at the time of backup. I excluded all media directories (/myth/tv, /myth/video, etc) so that the system would fit on a single cd. Media should be backed up some other way if you feel the need. I thought others might like to do this, so I wrote a howto over at the knoppmythwiki: http://knoppmythwiki.homelinux.org/inde ... drec_Howto Hold the Phone! I just attempted a restore with the cd to a spare drive and it did not boot properly. I don't know if this is a problem with my hardware or if the backup is flawed. If you follow the wiki, please test the recovery CD before trusting it!!! Please read the rest of this thread. Andrew Lynch installed mondo/mindi after failing with mkcdrec and it appears he made a proper bootable recovery dvd. |
Author: | abast62 [ Sat Feb 19, 2005 11:31 pm ] |
Post subject: | |
davem: Thanks allot. I was asking this very question recently. |
Author: | freddyman [ Sun Feb 20, 2005 5:35 pm ] |
Post subject: | |
I can see why you had a problem with booting the CD rom. When I tried it I got the same error. Check the log file. I got this error: WARNING: kerneld was not found. Skipped. Not sure what the solution is tho. I'm doing a RTFM right now to see if I can figure it out. |
Author: | davem [ Mon Feb 21, 2005 11:40 am ] |
Post subject: | |
Hmm possible, though I was making a recovery cd of R4v3 in preparation of the R5A10 update. I want to get this working, but for now it just doesn't work for me. The cd has valid zip files of the partitions so it's not a total waste, but it doesn't do what it's supposed to do. I had a bunch of copy errors in the logs but I'm not sure why. Choosing option 1 off the first menu to just make a rescue cd is much faster than doing option 2 and it fails for me in the same way, so I'll keep trying that until I can get one that boots. I put a warning in the wiki article, but do you folks think I should delete the article until I get it working? |
Author: | abast62 [ Wed Feb 23, 2005 8:51 pm ] |
Post subject: | |
I can't seem to stop the backend and mysql. typing /etc/init.d/mythtv-backend stop does not work. Same for mysql stop. any suggestions on how to stop the backend and mysql? |
Author: | Greg Frost [ Wed Feb 23, 2005 9:12 pm ] |
Post subject: | |
perhaps run them as user root instead of user mythtv |
Author: | abast62 [ Thu Feb 24, 2005 7:14 am ] |
Post subject: | |
That's what I don't understand. I am running as root. I typed su and placed my password. Unless you mean loggin as root from the start. |
Author: | davem [ Thu Feb 24, 2005 9:42 am ] |
Post subject: | |
Curious, su should work fine. Type the following commands and copy/paste the output here. su whoami /etc/init.d/mythtv-backend stop ps -ef | grep backend | head -2 /etc/init.d/mysql stop ps -ef | grep mysql | head -2 |
Author: | abast62 [ Thu Feb 24, 2005 10:51 am ] |
Post subject: | |
Thanks i'll try the command you posted. I keep getting this command not found error. |
Author: | abast62 [ Thu Feb 24, 2005 11:16 am ] |
Post subject: | |
davem: this is a silly question but there's always a first time for everything. How do I copy and paste the output? Do I have to use the vi edicator and copy the text (how?) There are several similar log files each with a consecutive number in the end. Do you want the output of the last numbered file or the first? Thanks for your patience with me. |
Author: | davem [ Thu Feb 24, 2005 12:00 pm ] |
Post subject: | |
Well, it depends on how you access the box. If your browser and the window you're typing in are on the same machine, you highlight the text you want to copy by swiping it with the mouse and left mouse button, then go to the window where you want to paste it and hit the middle button. If there's no middle button, then click the left and right at the same time to paste. If you're typing on a different box, you'll have to get your text into a file; swipe, vi /tmp/foo, i, paste with middle button, escape, :wq! Then get the file transferred to your browser box for typing here. If you're getting "file not found" then it sounds like your'e not typing something right. Learn to use "tab complete" to avoid typo's. For example, to type the command to stop mysql, you could type: /etc [TAB] init.d [TAB] mys [TAB]. You should now see /etc/init.d/mysql on the command line and you just type stop and press enter. If you press [TAB][TAB] it will show you all the possible completions for the word you've started to type. |
Author: | abast62 [ Thu Feb 24, 2005 2:33 pm ] |
Post subject: | |
ok so I figured out what I was doing wrong. I was typing in the commands from the command prompt (black screen) by pressing control alt F1. The I tried exiting the frontend and opening up an xterm window. Typing in the commands there worked. I guess linux is wiered that way. Should I always work from xterm insteak of crtl-alt-F1? Thanks |
Author: | davem [ Thu Feb 24, 2005 2:37 pm ] |
Post subject: | |
No, xterm and console work the same. It must have been something else. |
Author: | lynchaj [ Fri Mar 04, 2005 7:35 pm ] |
Post subject: | |
Hi This certainly looks interesting and I tried your instructions at KnoppMyth wiki but I am getting some repeatable errors at the very first steps. When I #cd /tmp #wget http://mkcdrec.ota.be/project/mkCDrec_v0.8.5.tar.gz #wget http://mkcdrec.ota.be/project/mkCDrec_v ... ils.tar.gz #su #cd /myth/backup #tar xvfz /tmp/mkCDrec_v0.8.5.tar.gz | less when I pipe the output of the untar I notice there are several missing files and numerous errors reported by tar. #cd mkcdrec #tar xvfz /tmp/mkCDrec_v0.7.9_utils.tar.gz same thing here. #make test gives the following errors scripts/dispatch.sh test make: scripts/dispatch.sh: Command not found make: *** [test] Error 127 I cannot get any further with your commands. Both tar files check out on the md5sum listed on the home website. There is something seriously funky going on here. Is the upstream tarball corrupted? Are we not using the correct command for tar? I don't get it. Please help! Thanks! Andrew Lynch |
Author: | davem [ Fri Mar 04, 2005 9:15 pm ] |
Post subject: | |
Wierd. I just tried it to see if that repeats here, and I don't have that problem. Here's my output. BTW, you did see the warnings that the CD that this created wasn't bootable right? I haven't had a chance to work on it further to see what's causing that problem. Code: davem@mythtv:/tmp$ wget http://mkcdrec.ota.be/project/mkCDrec_v0.8.5.tar.gz
--22:08:53-- http://mkcdrec.ota.be/project/mkCDrec_v0.8.5.tar.gz => `mkCDrec_v0.8.5.tar.gz' Resolving mkcdrec.ota.be... 212.68.198.130 Connecting to mkcdrec.ota.be[212.68.198.130]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2,534,560 [application/x-tar] 100%[================================================================================================================>] 2,534,560 59.02K/s ETA 00:00 22:09:36 (58.07 KB/s) - `mkCDrec_v0.8.5.tar.gz' saved [2534560/2534560] davem@mythtv:/tmp$ md5sum mkCDrec_v0.8.5.tar.gz 1d58ae8aaa9302c1a104f10b5f7e6756 mkCDrec_v0.8.5.tar.gz And then running tar xvfz mkCDrec_v0.8.5.tar.gz worked without errors. |
Page 1 of 2 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |