Hello,
I've been trying to copy the contents of the NAS's hard disk (1TB) ta a new larger disk (2TB).
The disk consists of a extended partition sda1 (consisting of partitions sda5 to sda10) which seems to contain the linux partitions, swap partition and other stuff, and a primary partition sda2 which contains the windows shares.
My first attempt was to use clonezilla to duplicate the disk contents onto the new drive. This worked, except that the recognized size of the new disk was the same as the old. I then tried to use gparted to extend the partition size of the user partition sda2. This failed, and I was no longer able to access the new disk.
Here's the output from fdisk for the old disk:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1ab2618c
Device Boot Start End Blocks Id System
/dev/sda1 63 4016249 2008093+ 5 Extended
/dev/sda2 4016250 1953520064 974751907+ 83 Linux
/dev/sda5 126 514079 256977 82 Linux swap / Solaris
/dev/sda6 514143 530144 8001 83 Linux
/dev/sda7 530208 546209 8001 83 Linux
/dev/sda8 546273 2249099 851413+ 83 Linux
/dev/sda9 2249163 4000184 875511 83 Linux
/dev/sda10 4000248 4016249 8001 83 Linux
When I use fdisk to create the two matching partitions of the new disk, I get the following:
The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted.
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x1ab2618c
Device Boot Start End Blocks Id System
/dev/sdb1 2048 4196351 2097152 5 Extended
/dev/sdb2 4196352 3907029167 1951416408 83 Linux
It seems that the the mismatch is because the new disk has a larger sector size.
Can someone help me to duplicate the disk?
Many thanks.