If you do a straight copy of the entire partition (not just copy/pasting the files), you still need 2 things afterwards to get a bootable system:
- the MBR bootloader
- mark the copied partition as "active"
There are commands to install a new MBR from a Windows disk (see Chris's answer), but my favorite is to simply copy the first 440 bytes from sector 0 to the new drive via a hex editor. Download HxD, make sure you run it as Administrator, then manually copy/paste the fisrt 440 bytes of sector 0 on your existing hard drive to the new hard drive (in HxD, each row is 16 bytes long, and each sector is 512 bytes). Don't forget to hit save to commit the changes. Be very careful with this, as you can seriously mess things up if you don't know what you're doing.
For point 2, you can accomplish that using the diskpart utility, or again, using your hex editor to mofidy the correct byte. For the diskpart method, open a command prompt (as administrator), then type the following commands:
diskpart
list disk
select disk # //pick the new disk from the list above
list partition
select partition # //pick the C drive
active
Then, go ahead and stick the new drive in and boot it up!
3Depends on how - copy/paste, definitely no. Bit for Bit Copy, yes - it should. Since you mention
gparted
, sounds like you are somewhat open to Linux tools - so you could use dd. Example:dd if=/dev/sdA of=/dev/sdB
, of course, be sure you do the correct discs. If is INFILE of is OUTFILE! – nerdwaller – 2013-01-09T17:57:24.2731
See Bit-for-bit copy of hard drive in Windows?, Clone a Hard Disk Content to Another Hard Disk and many other similar questions about drive cloning.
– Karan – 2013-01-09T18:08:09.997Thank to very much, on a side note, would it be possible to do the same with this, except with a external drive, of course I could just plug it into the internal components but if I could use one of the USB connectors to connect the drive via USB would it be possible to boot up just the same. – user88311 – 2013-01-09T18:11:39.030
See here. In general before Win8 Enterprise with its Windows To Go feature, no version of Windows AFAIK officially supported running from a USB drive. (Certain hacks/workarounds exist, but I wouldn't recommend them for long-term use as your primary OS.)
– Karan – 2013-01-10T15:04:08.170