It's called fdisk because
dadhacker.com
dadhacker.com
1) Plug both disks into a host machine (or boot up off of a WinPE or WinRE disk).
2) Mount the source them as D:\ in this example
3) Format the destination disk in diskpart and mount as E:\ (be sure to mark active and format as a primary partition)
4) Run robocopy D:\ E:\ /x /e /COPYALL /zb /r:1 /w:0 (or something similar
5) wait...
6) verify that the copy didn't miss anything
7) Run bootsect e:\ /nt60
8) Try to boot from the new drive, if it doesn't work then try 'bootmgr /rebuildbcd' and fixboot
it's not sector level, but i don't think it really needs to be, just mirror at the file level and fix up the boot sector. I'm not sure if it is dangerous but it works for me and it doesn't need 3rd party tools.
The last time I was able to make head or tail of the Windows bootloader was in XP, before they decided that plain text configuration files were too easy for users and they needed to obfuscate the interface by using binary blobs that you could only work with using a rather confusing, poorly documented tool.
For Vista, imagex (part of the Windows Automated Installation Kit, what you use to make official WinPE images), is really what you want. It'll be loads faster too: https://technet.microsoft.com/en-us/library/cc749447(v=ws.10...
Not sure what tools were tried in the article, but using the official one from the OS vendor seems like it should have been the first choice.
Coincidentally, I did it this weekend to upgrade my SSD, the exact situation described in the article. Worked fine with no issues.
All of these tools have been around in some form (not necessarily fully baked) since Windows Vista and part of the TechNet deployment documentation.
1) Hook SSD up to an external adapter.
2) Plug it in.
3) Format it.
4) Use CarbonCopyCloner to clone it.
5) Shut down, swap drives, restart.
At this point I had spent a couple of hours and everything worked except for TimeMachine backups. There was some commandline thing I found to fix that, but that wasn't a big deal.
On a Windows machine I would have cloned the disk with dd (from a LiveCD of some Linux), then used the Disk Management thing to expand the partition once I had booted from the new drive.
I do all of my Windows stuff in VMs these days, so I don't really know what tools there are anymore. It doesn't surprise me that there's an easy-to-use answer to this problem, especially since the problem isn't all that exotic.
1) Boot into Parted Magic
2) Copy disk using Clonezilla
3) Expand NTFS partition with gparted
4) There was no step 4.
The whole process was about as painless as possible. I kept waiting for something to blow up on me, but nope!
1) Backup current drive to Time Machine
2) Swap drives
3) Boot with new drive
4) Restore Time Machine backup
It is simple when it works. However, it is not very good at communicating its status and since I've had it fail in the past, I'm never quite sure its working when it takes long pauses in updating its status.
It has a really nice gui.
if that fails(NTFS can be an arse), dd of=/dev/source of=/dev/destination bs=8M(or m) (use the device not the partition, that way pain lies) which will bit copy all the things.
then use windows to resize the partition. (but only if gparted fails.)
From either Windows or Linux there are trivial tools for setting the 'check this filesystem on next boot' (if it doesn't do it then and there for you) flag. Let windows do it's check, then actually shut it down (don't suspend it). That should have been the end of that. If /that/ never works then something else is seriously messed up (at best some deeply integrated 'anti virus' software) and a re-install is warranted anyway.
My typical procedure after that is to dd copy the start of the disk (up to a few 10s of MB in to the largest partition) and also the end (if GPT), re-read the partition table of the new disk, then use ntfsclone (linux command) on the big partition. If I'm feeling fancy I'll also pre-copy the end of the old NTFS partition to the same offset in the new one. AFTER booting Windows once you can grow the partition to take on the new space.
Here's some info on Hybrid Boot, which is on by default in Windows 8 or later: http://www.eightforums.com/tutorials/6320-fast-startup-turn-...
I have used "shutdown /s /t 0" typed into an elevated Command Prompt, but there are other methods given in the article I linked.
I'm guessing the one thing he didn't try was using dd on the raw devices themselves, rather than the paritions. This would throw away the additional space of the larger drive, but should serve well as a last-ditch "there's no way this can fail" measure.
Most of the tools I tried are mentioned on this HN thread.
My dismay was driven by the question: "This is a simple problem, how can so many tools fail so miserably?" I still do not have an answer.
I used to be able to copy a hard disk in an hour, these days it can take a full day. A floppy disk takes a few minutes.
This was done using robocopy on a running Windows 10 machine although not of the system drive, just a second SSD that was used for log files that was full.
https://www.mail-archive.com/gnhlug-discuss@mail.gnhlug.org/...
> SpinRite may have had some relevance back in the days of MFM
...which is pretty much what I meant. I should have said 1987.
Why would you copy over all the operating system files and partition scheme when you can instead do a clean install and clone over your home directory? It in nearly all cases takes much less time and is much cleaner.
If I had to, though, the first tool I would reach for would be `dd`...which the author never does, because it's too archaic, unlike those fancy GUI programs that don't work?
"If I had to, though, the first tool I would reach for would be `dd`...which the author never does, because it's too archaic, unlike those fancy GUI programs that don't work?"
dd, Gparted... not sure what old stuff like Acronis or Ghost do on modern hardware. I use non-SSD disks on older laptops and servers so I'm not sure. On Linux past few years, I just backup key files and clean-slate install when I have problems because a reinstall/re-config is quicker than a differential backup on a Windows box. :)
Yes, hopefully you put all the Really Important Stuff in your home or somewhere else where it can be trivially copied (and backed up...) - including your favorite editor, all your configuration files, and any other tools you can't live without.
But then you remember that you recently added a new tool to your workflow, a really shiny package, but one which also required installing approximately 1300 dependencies and for some reason a kernel driver. It took you a solid week to get running properly, and you've long forgotten all the hoops you had to jump through to do it.
I pretty much want a full disk backup all the time:
- when I buy a new laptop that comes with a non-SSD hard disk that I immediately upgrade to an SSD, saving hundred of $$ compared to buying a laptop with an SSD
- when I upgrade / change the drive of my home PC
- when I backup the boot drives of said laptops and home PC in order to have an instant swap-in clone in case of hard disk failure.
What's really sad, he never does backups, so there will be a sequel.
A windows partition that is non-bootable but properly copied can be fixed by booting to Windows install media (USB or CD), entering the recovery console and running FIXBOOT and FIXMBR in sequence.
If you're moving to a larger drive, just do the above process and then use Gparted to resize the partition. As many warnings as it throws about trashing copies of data, I've never actually seen it happen.