NewsdetailsNewsdetails_EN
weiter zurück
1273448340 1273448340 Alter: 1273448340

2 Festplatten identisch partitionieren & clonen (ntfsclone)

1.) Clone Partition Table

balearen chrissie # sfdisk -d /dev/sdc

 

# partition table of /dev/sdc

unit: sectors

 

 

/dev/sdc1 : start= 63, size= 78140097, Id= 7, bootable

/dev/sdc2 : start= 78140160, size= 78156225, Id= 7

/dev/sdc3 : start= 0, size= 0, Id= 0

/dev/sdc4 : start= 0, size= 0, Id= 0

balearen chrissie # sfdisk -d /dev/sdc > table

balearen chrissie # sfdisk /dev/sdb < table

 

Checking that no-one is using this disk right now ...

OK

 

Disk /dev/sdb: 19457 cylinders, 255 heads, 63 sectors/track

 

sfdisk: ERROR: sector 0 does not have an msdos signature

/dev/sdb: unrecognized partition table type

Old situation:

No partitions found

New situation:

 

Units = sectors of 512 bytes, counting from 0

 

 

Device Boot Start End #sectors Id System

/dev/sdb1 * 63 78140159 78140097 7 HPFS/NTFS

/dev/sdb2 78140160 156296384 78156225 7 HPFS/NTFS

/dev/sdb3 0 - 0 0 Empty

/dev/sdb4 0 - 0 0 Empty

Successfully wrote the new partition table

 

Re-reading the partition table ...

 

 

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

balearen chrissie #

 

---

3.) Copy Bootloader/MBR

 

balearen chrissie # dd if=/dev/sdc of=/dev/sdb bs=512 count=63

63+0 records in

63+0 records out

 

32256 bytes (32 kB) copied, 0.00376282 s, 8.6 MB/s

 

---

2.) Clone NTFS Filesystem (faster than dd!)

balearen chrissie # ntfsclone --save-image --output - /dev/sdc1 | ntfsclone --restore-image --overwrite /dev/sdb1 -

 

ntfsclone v2.0.0 (libntfs 10:0:0)

NTFS volume version: 3.1

Cluster size : 4096 bytes

Current volume size: 39899992064 bytes (39900 MB)

Current device size: 40007729664 bytes (40008 MB)

 

Scanning volume ...

100.00 percent completed

Accounting clusters ...

Space in use : 8750 MB (21.9%)

Saving NTFS to image ...

Ntfsclone image version: 10.0

Cluster size : 4096 bytes

Image volume size : 39899992064 bytes (39900 MB)

Image device size : 40007729664 bytes

 

Space in use : 8750 MB (21.9%)

Offset to image data : 56 (0x38) bytes

Restoring NTFS from image ...

100.00 percent completed

Syncing ...

 

#