Deleting /dev/sdd1, and copying the image onto /dev/sdd
[root@centos astlinux-trunk]# fdisk /dev/sdd
The number of cylinders for this disk is set to 1986.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdd: 1024 MB, 1024966656 bytes
16 heads, 63 sectors/track, 1986 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 130 65488+ 83 Linux
Command (m for help): d
Selected partition 1
Command (m for help): p
Disk /dev/sdd: 1024 MB, 1024966656 bytes
16 heads, 63 sectors/track, 1986 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@centos astlinux-trunk]# fdisk -l
Disk /dev/sda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4844 38909398+ 83 Linux
/dev/sda2 5100 20023 119877030 f W95 Ext'd (LBA)
/dev/sda3 4845 5099 2048287+ 82 Linux swap / Solaris
/dev/sda5 5100 20023 119876998+ 7 HPFS/NTFS
Partition table entries are not in disk order
Disk /dev/sdd: 1024 MB, 1024966656 bytes
32 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 1984 * 512 = 1015808 bytes
Device Boot Start End Blocks Id System
[root@centos astlinux-trunk]# dd if=disk.img of=/dev/sdd
131040+0 records in
131040+0 records out
67092480 bytes (67 MB) copied, 45.853 seconds, 1.5 MB/s
[root@centos astlinux-trunk]# sync
[root@centos astlinux-trunk]# sync