Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| openeuler_risc-v-visionfive [2022/06/11 07:12] – created misaka00251 | openeuler_risc-v-visionfive [2022/07/21 08:17] (current) – misaka00251 | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| 默认的 img 只有 2 GB。我们要对其扩容。 | 默认的 img 只有 2 GB。我们要对其扩容。 | ||
| + | |||
| + | 默认的设备名应该为 ''/ | ||
| + | |||
| + | < | ||
| + | GPT PMBR size mismatch (4194303 != 124735487) will be corrected by write. | ||
| + | The backup GPT table is not on the end of the device. | ||
| + | Disk / | ||
| + | Units: sectors of 1 * 512 = 512 bytes | ||
| + | Sector size (logical/ | ||
| + | I/O size (minimum/ | ||
| + | Disklabel type: gpt | ||
| + | Disk identifier: 96F9C2E5-E969-4D86-941B-CEFBA947BA1E | ||
| + | |||
| + | Device | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | 可以看到,我们的起始为 256,这个值一定要记住。然后使用 '' | ||
| + | |||
| + | 思路很简单:删除分区然后再创建新分区,但 Start 相同,然后不移除 signature。 | ||
| + | |||
| + | < | ||
| + | Command (m for help): d | ||
| + | |||
| + | Selected partition 1 | ||
| + | Partition 1 has been deleted. | ||
| + | |||
| + | Command (m for help): n | ||
| + | Partition number (1-128, default 1): 1 | ||
| + | First sector (34-124735454, | ||
| + | Last sector, +/-sectors or +/ | ||
| + | |||
| + | Created a new partition 1 of type 'Linux filesystem' | ||
| + | Partition #1 contains a ext4 signature. | ||
| + | |||
| + | Do you want to remove the signature? [Y]es/[N]o: n | ||
| + | |||
| + | Command (m for help): w | ||
| + | |||
| + | The partition table has been altered. | ||
| + | Syncing disks. | ||
| + | </ | ||
| + | |||
| + | 退出之后,我们再来用 '' | ||
| + | |||
| + | < | ||
| + | Disk / | ||
| + | Units: sectors of 1 * 512 = 512 bytes | ||
| + | Sector size (logical/ | ||
| + | I/O size (minimum/ | ||
| + | Disklabel type: gpt | ||
| + | Disk identifier: 96F9C2E5-E969-4D86-941B-CEFBA947BA1E | ||
| + | |||
| + | Device | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | 看上去很棒,最后使用 '' | ||