[root@file01 ~]# sfdisk -d /dev/sda|sfdisk /dev/sdb
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 2610 cylinders, 255 heads, 63 sectors/track
Old situation:
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 * 0+ 130- 131- 1048576 83 Linux
/dev/sdb2 130+ 2610- 2481- 19921920 8e Linux LVM
/dev/sdb3 0 - 0 0 0 空
/dev/sdb4 0 - 0 0 0 空
New situation:
Units: sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 * 2048 2099199 2097152 83 Linux
/dev/sdb2 2099200 41943039 39843840 8e Linux LVM
/dev/sdb3 0 - 0 0 空
/dev/sdb4 0 - 0 0 空
Warning: partition 1 does not end at a cylinder boundary
Warning: partition 2 does not start at a cylinder boundary
Warning: partition 2 does not end at a cylinder boundary
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).)
[root@file01 ~]# dd if=/dev/sda1 of=/dev/sdb1
記錄了2097152+0 的讀入
記錄了2097152+0 的寫出
1073741824字節(1.1 GB)已復制,19.7337 秒,54.4 MB/秒