{"id":1513,"date":"2009-06-14T12:15:55","date_gmt":"2009-06-14T11:15:55","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/1513-moving-vista-to-a-larger-hard-drive-using-built-in-backup-and-restore.html"},"modified":"2009-06-14T12:15:55","modified_gmt":"2009-06-14T11:15:55","slug":"moving-vista-to-a-larger-hard-drive-using-built-in-backup-and-restore","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/1513-moving-vista-to-a-larger-hard-drive-using-built-in-backup-and-restore.html","title":{"rendered":"Moving Vista to a larger hard drive using built-in backup and restore"},"content":{"rendered":"<p>I was running out of space on drive C, on my Vista 64-bit PC. Luckily hard drives are cheap, so I purchased a 1TB drive and then contemplated how to transfer the system. I have a slightly complex setup, with 3 physical drives installed and four versions of Windows (XP, XP64, Vista 32 and Vista 64) \u2013 Vista 64 is the one I use most of the time, but I find the others useful for testing or running otherwise incompatible software. Virtual machines are good for this too, but there is still a place for real installs<\/p>\n<p>Last time I did this, on a laptop, I used an excellent tool called <a href=\"http:\/\/www.drivesnapshot.de\/\" target=\"_blank\">Drive Snapshot<\/a>. It worked well; but I figured this was a good opportunity to test the backup and restore built into Windows. In effect, I would do a backup, then pretend my drive had failed and restore to a new one. I attached an external USB drive, opened Windows Backup and selected <strong>Create a Windows Complete PC Backup and Restore image of your entire computer, which can be used to recover from a hardware failure<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-1.gif\" \/> <\/p>\n<p>It started badly. As I mentioned, I was running out of space:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-2.gif\" \/> <\/p>\n<p>The backup failed: <strong>not enough disk space to create the volume shadow copy on the storage location<\/strong>. <\/p>\n<p>I had a plan. Windows automatically creates a file called hiberfil.sys, which is roughly the same size as the amount of RAM in the system. Removing hiberfil.sys is easy, and frees up plenty of space. Just open a command prompt with administrator permissions and type:<\/p>\n<p>powercfg.exe \u2013h off<\/p>\n<p>You can guess how to re-enable it later. I retried the backup and it worked. Next, I removed the old hard drive \u2013 my insurance policy \u2013 and attached the new one.<\/p>\n<p>A little-known fact, which many people discover in bad circumstances: restore is harder than backup. This was no exception. I was expecting to boot from the Vista setup DVD, choose a restore option, and have my system back as it was. I was also hoping that I\u2019d be able to resize the partitions, otherwise I\u2019d be no better off than before, but if necessary that could be tackled later.<\/p>\n<p>It didn\u2019t go well. I booted from the Vista setup DVD, and clicked through several repair options selecting to use <strong>Windows Complete PC Restore<\/strong>. I arrived at this dialog (with apologies for the quality; it\u2019s a photo of the screen):<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-3.gif\" \/> <\/p>\n<p>The dialog says: <strong>This will delete any existing partitions and reformat all disks to match the layout of the backup<\/strong>. Yes, I had four partitions to restore. Still, this dialog caused me some anxiety. There were other physical disks in the machine, which I had not backed up recently; would Vista also format and re-partition these? I thought probably not; but to be on the safe side I powered down, disconnected the other drives, and started again. I then confidently clicked <strong>Finish<\/strong>.<\/p>\n<p>Unfortunately I got this notorious dialog:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-4.gif\" \/> <\/p>\n<p><strong>There are too few disks on this computer or one or more of the disks is too small. Add or change disks so they match the disks in the backup, and try the restore again<\/strong>.<\/p>\n<p>Do you ever want to argue with your computer? I\u2019d removed a 180GB drive, and replaced it with a 1TB drive, but Vista was insisting that it was too small. <\/p>\n<p>Time to Bing, or should that be Google? I found <a href=\"http:\/\/social.technet.microsoft.com\/forums\/en-US\/itprovistasetup\/thread\/18c33a73-5719-499a-866c-af124c05e671\/\" target=\"_blank\">this discussion<\/a>, headed discouragingly <strong>A Windows Complete PC Restore always fails<\/strong>.<\/p>\n<p>Luckily there were some tips in the thread, though not from Microsoft (a fact that has not gone unnoticed) even though this is an official forum. I rebooted and selected <strong>Command Prompt<\/strong> from the <strong>System Recovery Options<\/strong>. Then I ran <strong>diskpart<\/strong>, a command line tool which makes no pretence to user friendliness. I created four partitions, each bigger than the ones I was restoring. I tried to assign the correct drive letters, but the tool would not let me, advising me to check the system event log for more information. In the recovery environment? Thanks.<\/p>\n<p>I tried again, but it still failed. Then I rebooted, just in case. This time it worked. Why? I\u2019m not sure what was the key. It appears that the restore does not like to see a raw drive; yet as I discovered, it re-partitions it anyway. So I can\u2019t give any definitive solution here, except to say, try fiddling with diskpart. <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-5.gif\" \/><\/p>\n<p>I went away for a few hours, and when I returned the restore was complete, the PC had restarted, and it was waiting for me to log in.<\/p>\n<p>There was one snag. Rather than using the partitions I had created, the restore made its own, of the same size as on the old drive. Fortunately \u2013 and I\u2019m not sure if this was accident or design \u2013 the partition I cared about was at the end of the drive, followed by free space. Unfortunately, the Extend Volume option in Disk Management was disabled and greyed out. Unfortunately again, the equivalent option in diskpart also failed. Whatever size I selected, I got <strong>The volume size you have selected is too large for the disk. Either select a disk with more free space, or specify a smaller volume. <\/strong>More lies. My drives are set to Basic; I guess that changing them to Dynamic might fix this. <\/p>\n<p>I\u2019m slightly distrustful of Dynamic drives, so I booted into a different version of Windows located on a different drive (I said this could be useful). This time, diskpart was happy to extend the volume. I then also typed <strong>extend filesystem<\/strong>. It worked:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.itwriting.com\/images\/backup-done.gif\" \/> <\/p>\n<p>Overall, I\u2019m glad that the process worked, but not impressed with the fragility of the restore process and the lack of help with these puzzling error messages. I suppose Microsoft considers this an advanced task undertaken by professionals, who know how to Bing. I don\u2019t see why the emergency restore should not be able to prepare a new hard drive, restore to it, and even offer to resize the partitions in a sensible manner.<\/p>\n<p>I\u2019d be interested to know whether Windows 7 handles this better, but not interested enough to try it.<\/p>\n<p>Fortunately, I\u2019ll never again need to do this. I mean, 750GB free is enough for anyone, right?<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4391bee4-1e95-4e80-a046-91b200c07680\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/vista\" rel=\"tag\">vista<\/a>,<a href=\"http:\/\/technorati.com\/tags\/backup\" rel=\"tag\">backup<\/a>,<a href=\"http:\/\/technorati.com\/tags\/restore\" rel=\"tag\">restore<\/a>,<a href=\"http:\/\/technorati.com\/tags\/storage\" rel=\"tag\">storage<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I was running out of space on drive C, on my Vista 64-bit PC. Luckily hard drives are cheap, so I purchased a 1TB drive and then contemplated how to transfer the system. I have a slightly complex setup, with 3 physical drives installed and four versions of Windows (XP, XP64, Vista 32 and Vista &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/1513-moving-vista-to-a-larger-hard-drive-using-built-in-backup-and-restore.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Moving Vista to a larger hard drive using built-in backup and restore<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,93,97],"tags":[],"class_list":["post-1513","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-vista","category-windows"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=1513"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/1513\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=1513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=1513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=1513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}