'mmm'
This commit is contained in:
25
微信AI/dd-img.md
Normal file
25
微信AI/dd-img.md
Normal file
@@ -0,0 +1,25 @@
|
||||
```
|
||||
sudo fdisk -u -l
|
||||
```
|
||||
|
||||
Disk /dev/mmcblk0: 232.96 GiB
|
||||
|
||||
需要使用ubuntu 图形系统,用gparted对硬盘进行挂载,分区
|
||||
|
||||
```
|
||||
sudo fdisk -u -l /dev/mmcblk0
|
||||
```
|
||||
|
||||
Device Start End Sectors Size Type
|
||||
/dev/mmcblk0p1 61440 2158591 2097152 1G Linux extended boot
|
||||
/dev/mmcblk0p2 2158592 483655679 481497088 229.6G Linux filesystem
|
||||
|
||||
最大的 end数量+1
|
||||
|
||||
483655679+1=483655680
|
||||
|
||||
bs一定要=512
|
||||
|
||||
```
|
||||
dd bs=512 count=2158592 if=/dev/mmcblk0 of=/ghost.img status=progress
|
||||
```
|
||||
Reference in New Issue
Block a user