使用raspi-config
进行Expand Filesystem
会提示:
sda2 is not an SD card. Don't know how to expand
执行
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 29G 4.2G 23G 16% /
devtmpfs 460M 0 460M 0% /dev
tmpfs 464M 0 464M 0% /dev/shm
tmpfs 464M 13M 452M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 464M 0 464M 0% /sys/fs/cgroup
/dev/sda1 42M 21M 21M 51% /boot
tmpfs 93M 0 93M 0% /run/user/1000
再执行
# fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 93814 85623 41.8M c W95 FAT32 (LBA)
/dev/sda2 94208 60063743 59969536 28.6G 83 Linux
/dev/sda2
已经是28.6G了
根本不用Expand Filesystem
我刷的是2017-09-07-raspbian-stretch
真需要手动扩展空间请参考:
到此结束
网友评论