树莓派扩展分区失败 There was an error running option A1 Expand Filesystem

参考原文地址:Expand Filesystem Issues – Raspberry Pi Projects (raspberry-projects.com)

树莓派扩展分区失败 There was an error running option A1 Expand Filesystem_第1张图片

1.输入并回车

sudo fdisk /dev/mmcblk0

 树莓派扩展分区失败 There was an error running option A1 Expand Filesystem_第2张图片

2.输入p并回车查看磁盘

3.输入d并回车,并依次键入>2>n>p>2,如图所示。

树莓派扩展分区失败 There was an error running option A1 Expand Filesystem_第3张图片

 4.输入分区2的起始地址,如图所示我的是532480

5.输入分区2结束地址,此处直接回车默认是最大值

6.紧接着依次输入p>w并回车,如下图所示

树莓派扩展分区失败 There was an error running option A1 Expand Filesystem_第4张图片

7.重启系统

sudo reboot

 8.键入

sudo resize2fs /dev/mmcblk0p2

9.查看磁盘信息

df -h

树莓派扩展分区失败 There was an error running option A1 Expand Filesystem_第5张图片

 成功扩展分区

你可能感兴趣的:(linux,运维,ubuntu)