{"id":224,"date":"2008-05-10T19:36:36","date_gmt":"2008-05-11T01:36:36","guid":{"rendered":"http:\/\/www.ourada.org\/blog\/?p=224"},"modified":"2008-05-10T19:36:36","modified_gmt":"2008-05-11T01:36:36","slug":"a-use-for-network-boot","status":"publish","type":"post","link":"https:\/\/www.ourada.org\/blog\/archives\/224","title":{"rendered":"A use for network boot"},"content":{"rendered":"<p>Have you ever had to try to replace a hard drive in a machine with a dead built-in DVD drive and an old BIOS (i.e. one that doesn&#8217;t really boot off USB devices)? It can be a frustrating endeavor.<\/p>\n<p>My favored way to replace a hard drive (and yeah, I know there are other ways, but this is really the best one) is to boot the machine off a Linux LiveCD and use some sort of cloning program to clone the drive to the new one in a USB enclosure, then swap &#8217;em. <a href=\"http:\/\/www.clonezilla.org\/\">Clonezilla<\/a> served me well when I replaced the hard drive in my laptop recently, so I wanted to do that with my girlfriend&#8217;s, too. But the internal DVD drive is dead, it wouldn&#8217;t boot off the external one, it wouldn&#8217;t boot off a USB Flash drive with the Clonezilla USB option, and any hope that a BIOS upgrade would fix the problem was dashed by the fact that the BIOS update program had to be run off a floppy (which the machine never had) or a CD, which clearly leaves me with the same problem again.<\/p>\n<p>But, the BIOS does have a network boot option, which only became relevant to me when I felt I was running out of options. Setting up a server for network boot from scratch sounded kinda painful, but I remembered that <a href=\"http:\/\/www.knopper.net\/knoppix\/index-en.html\">Knoppix<\/a> has this fairly cool feature they call &#8216;terminal server&#8217; that might do the trick. Sure enough, I booted Knoppix on my laptop, ran their terminal server, connected it to this laptop with an Ethernet cable (luckily, though the Ethernet port is a little out of wack on this laptop, it&#8217;s still functional), selected network boot, and rather quickly, I was in a full-featured Linux environment without touching the to-be-cloned hard drive.<\/p>\n<p>I used <a href=\"http:\/\/www.linux-ntfs.org\/doku.php?id=ntfsclone\">ntfsclone<\/a>, which I knew to be the core of what Clonezilla uses when moving an NTFS partition, to move the single XP partition to the new drive, then <a href=\"http:\/\/www.linux-ntfs.org\/doku.php?id=ntfsresize\">ntfsresize<\/a> to fill the drive (the new drive is twice the size of the old). The only snag I ran into with that was that Windows had previously diagnosed the drive to have bad sectors (the primary reason for replacing the drive in the first place), and ntfsclone doesn&#8217;t want to proceed with more than 5 bad sectors. But luckily that&#8217;s just a matter of adding a &#8216;&#8211;rescue&#8217; commandline option. &#8216;course, it clones the bad sector map, which then causes ntfsresize to barf, but it has a &#8216;-b&#8217; option. I see now that there&#8217;s some verbiage on the ntfsclone page that talks about bad sectors&#8230; whatever, it&#8217;s fine now, so I don&#8217;t feel the need to understand now NTFS deals with BS.<\/p>\n<p>It&#8217;s cool that the Linux-NTFS tools have gotten to maturity these days; a few years ago when I was replacing drives, I had to do much more annoying things to clone NTFS. (I&#8217;m not sure if the software I mentioned in a <a href=\"http:\/\/www.ourada.org\/blog\/archives\/118\">previous post<\/a> was based on Linux-NTFS or if they had some proprietary system (Apricorn&#8217;s software _was_ Linux-based, though.)).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever had to try to replace a hard drive in a machine with a dead built-in DVD drive and an old BIOS (i.e. one that doesn&#8217;t really boot off USB devices)? It can be a frustrating endeavor. My favored way to replace a hard drive (and yeah, I know there are other ways, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-general","author-admin"],"_links":{"self":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":0,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ourada.org\/blog\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}