{"id":2421,"date":"2012-02-10T09:45:27","date_gmt":"2012-02-10T14:45:27","guid":{"rendered":"http:\/\/starlightcascade.ca\/blog\/?p=2421"},"modified":"2012-02-12T09:49:01","modified_gmt":"2012-02-12T14:49:01","slug":"hard-drives","status":"publish","type":"post","link":"https:\/\/starlightcascade.ca\/blog\/2012\/02\/hard-drives\/","title":{"rendered":"$@#$ hard drives!"},"content":{"rendered":"<p>So I have a new machine at work to setup.  It came with windows 7 on a 1tb drive.  We ordered another smaller drive (250gb) to have the operating system on and use the 1tb drive as a large data drive.  In the past I routinely connect both dries in the same box, boot from linux fedora live cdrom, go into a terminal and run the command<br \/>\ndd if=\/dev\/sda of=\/dev\/sdb<br \/>\nWhich routinely clones bit for bit the first drive to the second drive.<br \/>\nNow for the fun part.  In the past this has almost always been going from a smaller drive to a larger drive.  After the successful copy, I would remove the small drive, boot into <a href=\"http:\/\/gparted.sourceforge.net\/\" target=\"_blank\">Gparted cdrom<\/a> and manually resize non-destructively the partition to fill the entire drive.. or at least make larger.<br \/>\nFor the first time I am going the other way.. larger to smaller drive.<br \/>\nTrying it out of the box failed with a &#8220;not enough room&#8221; error.<br \/>\n   I noted that windows 7 can non-destructively resize itself under certain conditions so I booted into the 1tb drive windows 7, told it to shrink itself down to 200gb and it did in a minute or so.  There were two other partitions on the drive, a small 100mb boot partition? and a larger recovery partition at the other end.<br \/>\nRan the dd command thinking that it would only copy the existing partitions and no the new, large empty space created by the shinking partition in the middle. and in about 5 hours it was done without errors.<br \/>\nremoved the 1tb leaving the 250gb drive in place, boot and it does start up and windows does start to work&#8230; then fails, reboots into its repair options and we cannot get any further, as the repair options to do not work either.  I suspect they are looking to a spot farther up the old large drive in the partition table.<br \/>\noh well.. that idea did not work.  reformat from scratch and reinstall!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I have a new machine at work to setup. It came with windows 7 on a 1tb drive. We ordered another smaller drive (250gb) to have the operating system on and use the 1tb drive as a large data drive. In the past I routinely connect both dries in the same box, boot from [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-2421","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/2421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/comments?post=2421"}],"version-history":[{"count":0,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/posts\/2421\/revisions"}],"wp:attachment":[{"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/media?parent=2421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/categories?post=2421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starlightcascade.ca\/blog\/wp-json\/wp\/v2\/tags?post=2421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}