- 论坛徽章:
- 0
|
本帖最后由 dongzi2013 于 2013-10-03 16:35 编辑
请各位高手帮忙看个问题。
1、为实现两个硬盘的分区完全一样,我用dd 将sda的sector1 拷贝到了sdb的sector1 中 。
2、用df检查文件系统情况 发现 sda1 的容量和sdb1的不一样。
3、我用fdisk 检查导sda 和 sdb的 分区情况,分区是一样的。
请帮忙看下 ,为什么用fdisk会有这么奇怪的现象 分区一样 但是容量不一样。
log如下:
dd if=/dev/sda of=/dev/sdb bs=512 count=1
.........
superman@superman-K53SV:/$ df -h | grep "^/dev/sd"
/dev/sda1 101G 66G 30G 69% /
/dev/sdb1 40G 48M 38G 1% /media/superman/c1937d07-ff3a-4639-b3da-d0828f847d59
superman@superman-K53SV:/$
superman@superman-K53SV:/$ sudo fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x00084812
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 214843391 107420672 83 Linux
/dev/sda2 214843392 222656511 3906560 82 Linux swap / Solaris
Command (m for help): q
superman@superman-K53SV:/$ sudo fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x00084812
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 214843391 107420672 83 Linux
/dev/sdb2 214843392 222656511 3906560 82 Linux swap / Solaris
Command (m for help): q
|
|