{"id":1107,"date":"2009-11-04T03:57:52","date_gmt":"2009-11-04T08:57:52","guid":{"rendered":"http:\/\/alsplace.info\/opsys\/os-linux\/1107\/a-linux-live-cd-to-the-rescue\/"},"modified":"2009-11-04T03:57:52","modified_gmt":"2009-11-04T08:57:52","slug":"a-linux-live-cd-to-the-rescue","status":"publish","type":"post","link":"https:\/\/alsplace.info\/?p=1107","title":{"rendered":"A Linux Live CD to the Rescue!"},"content":{"rendered":"\n<!-- ALL ADSENSE ADS DISABLED -->\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"97%\" background=\"ffffff\">\n<tr>\n<td align=\"center\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.geeks.com\/techtips\/2009\/images\/TT229_BN.png\" border=\"0\" alt=\"A Linux Live CD To The Rescue!\" width=\"490\" height=\"150\" \/><\/td>\n<\/tr>\n<tr>\n<td align=\"left\" bgcolor=\"#ffffff\">\n<h1 style=\"margin: 0px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 100%\"><strong>A Linux Live CD to the Rescue!<\/strong><\/h1>\n<p style=\"font-style: italic; margin: 5px 10px 20px 15px; font-family: Verdana, Geneva, sans-serif; font-size: 80%\">By Scott Nesbitt &#8211; August 2, 2009<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.geeks.com\/techtips\/2009\/images\/tt229pullquote.png\" border=\"0\" vspace=\"3\" width=\"230\" height=\"109\" align=\"right\" \/>Computer <a href=\"http:\/\/www.geeks.com\/products.asp?cat=hdd&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=hdd&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">hard drives<\/a>. They&#39;re an essential component of your computing experience. While they&#39;re not as fragile as they were even 10 years ago, they&#39;re often one of the weak links in the chain of hardware that makes up a <a href=\"http:\/\/www.geeks.com\/products.asp?cat=sys&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=sys&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">desktop computer<\/a> or a <a href=\"http:\/\/www.geeks.com\/products.asp?cat=nbb&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=nbb&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">laptop computer<\/a>.<\/p>\n<p> When something goes wrong with a hard drive, you can be in a lot of trouble. Especially if you haven&#39;t backed up your data recently. If you need that data &ndash; whether it&#39;s office documents, photos, videos, or all of the above &ndash; right now it can cost you. Professional data recovery can cost anywhere from a few hundred to a few thousand dollars. And there&#39;s no guarantee of success.<\/p>\n<p> But before going that route, you might be able to do the job yourself if you&#39;re willing to get your hands dirty. How? All you need is a <a href=\"http:\/\/www.geeks.com\/products.asp?cat=med&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=med&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">blank CD<\/a>, a <a href=\"http:\/\/www.geeks.com\/products.asp?cat=flm&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=flm&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">USB flash drive<\/a>, and some <a href=\"http:\/\/www.geeks.com\/techtips\/2007\/techtips-25mar07.htm\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/techtips\/2007\/techtips-25mar07.htm\">Linux Live CD<\/a> software.<\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> More than just for a test drive<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.geeks.com\/techtips\/2009\/images\/CD13.png\" border=\"0\" alt=\"CDS\" width=\"290\" height=\"200\" align=\"left\" \/>As discussed in a <a href=\"http:\/\/www.geeks.com\/techtips\/2007\/techtips-25mar07.htm\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/techtips\/2007\/techtips-25mar07.htm\">previous TechTip<\/a>, Linux Live CDs are a great way to take Linux for a spin without installing it on your computer. But there are other Live CDs that perform special jobs.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">What kinds of jobs? How about trying to fix a computer that&#39;s not playing nicely. <\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> The situation<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">A few months ago, my wife&#39;s laptop (which ran Windows XP) wouldn&#39;t start properly. It would power up, then display a screen which informed her that the last shutdown wasn&#39;t completed properly. There were several boot options presented. But no matter which one my wife chose, Windows would try to start then the laptop would suddenly reboot. With the same message as before.<\/p>\n<p> Nothing my wife or I tried worked. Instead of doing something drastic, like trying to reinstall Windows or Linux, or reformatting the hard drive, I tried starting the computer in safe mode, without the option to reboot automatically on an error. When I did this, the boot up stalled when XP was trying to load a driver called mup.sys. I did some research, and learned that mup.sys can get corrupted or infected with a virus. As it turned out, there was more to the problem than that.<\/p>\n<p> I got the feeling that I might be able to salvage the hard drive. If nothing else, I figured I could get the most important files off that laptop.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><strong>To do that, I decided to turn to a Linux Live CD for help.<\/strong> <\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> Getting the Live CD<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">In this case, the Live CD was actually a rescue CD. I looked at several, and on the recommendation of a couple of techie pals, I got my hands on one called <a href=\"http:\/\/www.sysresccd.org\/Main_Page\" target=\"_blank\" title=\"http:\/\/www.sysresccd.org\/Main_Page\">SystemRescueCD.<\/a><\/p>\n<p> SystemRescueCD comes with a number of <a href=\"http:\/\/www.sysresccd.org\/System-tools\" target=\"_blank\" title=\"http:\/\/www.sysresccd.org\/System-tools\">utilities<\/a> for analyzing and diagnosing problems with a hard drive or <a href=\"http:\/\/www.geeks.com\/products.asp?cat=ram&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" target=\"_blank\" title=\"http:\/\/www.geeks.com\/products.asp?cat=ram&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">system memory<\/a>, and for recovering from failures and errors. While SystemRescueCD comes with a very lightweight graphical user interface, most of the utilities are run from the command line.<\/p>\n<p> If you need help with running the utilities, even if you are an experienced Linux user, then you should take the time to browse the <a href=\"http:\/\/www.sysresccd.org\/Online-Manual-EN\" target=\"_blank\" title=\"http:\/\/www.sysresccd.org\/Online-Manual-EN\">documentation<\/a> for SystemRescueCD.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">It helps, believe me.<\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> Burning the disk image<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">I downloaded an <a href=\"http:\/\/www.webopedia.com\/TERM\/I\/ISO_image.html\" target=\"_blank\" title=\"http:\/\/www.webopedia.com\/TERM\/I\/ISO_image.html\">ISO image<\/a>, which is literally a snapshot of the contents of a disk &ndash; in this case, a stripped-down Linux operating system and a bunch of utilities.<\/p>\n<p> When you have an ISO image, you need to burn it to a blank CD as a disk image. In Windows, you can use a nifty freeware application called <a href=\"http:\/\/isorecorder.alexfeinman.com\/isorecorder.htm\" target=\"_blank\" title=\"http:\/\/isorecorder.alexfeinman.com\/isorecorder.htm\">ISO Recorder<\/a>. Just about every CD burning application for Linux allows you to burn an ISO image.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">On Mac OS X, just select <strong>Applications &gt; Utilities &gt; Disk Utility<\/strong>, then choose <strong>Images &gt; Burn<\/strong>.<\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> Getting to work<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">Once I had the CD ready, I popped it into CD-ROM drive of my wife&#39;s laptop, and restarted it. Luckily, her laptop was set to boot from the CD-ROM drive. If this doesn&#39;t work for you, change this in your computer&#39;s <a href=\"http:\/\/en.wikipedia.org\/wiki\/BIOS\" target=\"_blank\" title=\"http:\/\/en.wikipedia.org\/wiki\/BIOS\">BIOS<\/a> settings. Depending on your computer, you do this by pressing F2 or ESC or DEL when the computer firsts starts up.<\/p>\n<p> The first thing I did once the Live CD loaded was try to <em>mount<\/em> the Windows partition on the hard drive from the command line.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">In Linux terms, mounting merely means getting access to a <a href=\"http:\/\/en.wikipedia.org\/wiki\/File_system\" target=\"_blank\" title=\"http:\/\/en.wikipedia.org\/wiki\/File_system\">file system<\/a> or drive.&nbsp;<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">The command I used was:<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><strong>mount -t ntfs \/dev\/sda2 \/mnt\/windows -o ro<\/strong><\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.geeks.com\/techtips\/2009\/images\/flashdrive.png\" border=\"0\" hspace=\"3\" width=\"290\" height=\"200\" align=\"right\" \/>This tells the command to access an NTFS file system (the default used by Windows) via the device \/dev\/sda2 (which is how the Live CD detected the hard drive), and to let me access the drive using the directory \/mnt\/windows.<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">That worked. So, I plugged in one of my <a href=\"http:\/\/www.geeks.com\/products_sc.asp?cat=1062&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\" title=\"http:\/\/www.geeks.com\/products_sc.asp?cat=1062&amp;cm_mmc=geekmail-_-techtips-_-02aug09_techtips-_-storylink\">4 GB USB flash drives<\/a> and mounted that with the following command:<\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><strong>mount \/dev\/sda1 \/mnt\/usb1<\/strong><\/p>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">This allowed me to get access to the flash drive via the directory \/mnt\/usb1.<\/p>\n<p> I ran the command <strong>cd \/mnt\/windows<\/strong> to change to the Windows drive, and then navigated my way to the folder where my wife kept her files. Using the Linux copy command (<strong>cp<\/strong>), I then transferred the files over to the flash drive. That took a while; there were about 3GB of files there.<\/p>\n<p> A pair of funny things happened when copying the files. First, some files refused copy over. Second, many of the files had long names. When they were copied over to the flash drive, the names got truncated and the a good chunk of those names were replaced with a tilde (~).<\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"> Trying to save the hard drive<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.geeks.com\/techtips\/2009\/images\/hardrive020809.png\" border=\"0\" alt=\"Hard Drive\" hspace=\"3\" width=\"290\" height=\"200\" align=\"left\" \/>While I managed to salvage most of my wife&#39;s files, I wanted to see if I could also save the hard drive. SystemRescueCD comes with a powerful utility that can help determine this called <a href=\"http:\/\/www.cgsecurity.org\/wiki\/TestDisk\" target=\"_blank\" title=\"http:\/\/www.cgsecurity.org\/wiki\/TestDisk\">testdisk<\/a>. Testdisk can do diagnostics on and recover hard disks. It has a text-based interface. You don&#39;t have to type commands, but instead selection option by tabbing, using the up and down arrow keys, and pressing Enter. It&#39;s like many DOS programs of yore.<\/p>\n<p> I ran the first check by selecting the <strong>Analyse<\/strong> option. For some reason the program stalled. After killing testdisk, I looked at the log file that it produced. In the log file was an error message stating that there was a problem with the number of <a href=\"http:\/\/en.wikipedia.org\/wiki\/Disk_sector\" target=\"_blank\" title=\"http:\/\/en.wikipedia.org\/wiki\/Disk_sector\">disk sectors<\/a>. That&#39;s not a good sign. Disk sectors store large lumps of data. If they&#39;re damaged, a hard drive is usually toast.<\/p>\n<p> Next, I ran a check on the physical <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cylinder_(disk_drive)\" target=\"_blank\" title=\"http:\/\/en.wikipedia.org\/wiki\/Cylinder_(disk_drive)\">cylinders<\/a> of the hard drive by selecting the <strong>Deeper Search<\/strong> option. Testdisk got through about 97% of the deeper search, and it stalled too. That indicated that there was a physical problem with the hard drive and that there was no way I was going to save it.<\/p>\n<h2 style=\"margin: 4px 5px 4px 10px; font-family: Verdana, Geneva, sans-serif; color: #000; font-size: 90%\"><br <a href=\"http:\/\/www.neighborhoodrealtyonline.com\/\">effects viagra<\/a>  \/> Summing up<\/h2>\n<p style=\"text-align: justify; margin: 5px 10px 10px; font-family: Verdana, Geneva, sans-serif; font-size: 80%; word-spacing: 2px\">A Linux Live CD, especially one like SystemRescueCD, can be a good way of recovering your files if your computer starts acting up. A tool like SystemRescueCD is a bit geeky, and can be a tad difficult to use if you have no experience with backup software.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<!-- Social Bookmarks BEGIN -->\n<div class=\"social_bookmark\">\n<a title=\"Click me to see the sites.\" href=\"#\" onclick=\"$$('div.d1107').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;\"><strong><em>Bookmark to:<\/em><\/strong><\/a>\n<br \/>\n<div class=\"d1107\" style=\"overflow:hidden\">\n<br \/>\n<br \/>\n<a style=\"font-size:90%;text-align: right; \" title=\"Click me to hide the sites.\" href=\"#\" onclick=\"$$('div.d1107').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;\">Hide Sites<\/a>\n<\/div>\n<\/div>\n<!-- Social Bookmarks END -->\n<script type=\"text\/javascript\">$$('div.d1107').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); <\/script>","protected":false},"excerpt":{"rendered":"<p>A Linux Live CD to the Rescue! By Scott Nesbitt &#8211; August 2, 2009 Computer hard drives. They&#39;re an essential component of your computing experience. While they&#39;re not as fragile as they were even 10 years ago, they&#39;re often one of the weak links in the chain of hardware that makes up a desktop computer [&hellip;]<\/p>\n<!-- Social Bookmarks BEGIN -->\n<div class=\"social_bookmark\">\n<a title=\"Click me to see the sites.\" href=\"#\" onclick=\"$$('div.d1107').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;\"><strong><em>Bookmark to:<\/em><\/strong><\/a>\n<br \/>\n<div class=\"d1107\" style=\"overflow:hidden\">\n<br \/>\n<br \/>\n<a style=\"font-size:90%;text-align: right; \" title=\"Click me to hide the sites.\" href=\"#\" onclick=\"$$('div.d1107').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;\">Hide Sites<\/a>\n<\/div>\n<\/div>\n<!-- Social Bookmarks END -->\n<script type=\"text\/javascript\">$$('div.d1107').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); <\/script>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[55],"tags":[],"_links":{"self":[{"href":"https:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts\/1107"}],"collection":[{"href":"https:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1107"}],"version-history":[{"count":0,"href":"https:\/\/alsplace.info\/index.php?rest_route=\/wp\/v2\/posts\/1107\/revisions"}],"wp:attachment":[{"href":"https:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alsplace.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}