树莓派镜像包制作命令

树莓派镜像包制作命令:
以下做个解释说明:
Disk /dev/sdb: 7948 MB, 7948206080 bytes, 15523840 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 label type: dos
Disk identifier: 0xa0584b06

Device Boot Start End Blocks Id System
/dev/sdb1 8192 532480 262144+ c W95 FAT32 (LBA)
/dev/sdb2 540672 15523839 7491584 83 Linux
[root@localhost shumeipai]# dd bs=512 count=15523840 if=/dev/sdb | gzip -9 > shu_meipai.img.gz

以上标记的位置:在end后面数后面加1:
dd bs=512 count=15523840 if=/dev/sdb | gzip -9 > shu_meipai.img.gz

猜你喜欢

转载自blog.csdn.net/weixin_44881103/article/details/109379789