树莓派、香蕉派tf卡扩容。

突然发现内存不是很够,于是对tf卡重新进行了一番分区。

1.在终端运行 cat /sys/block/mmcblk0/mmcblk0p2/start

2.记下返回的数字

3.sudo fdisk /dev/mmcblk0

d  回车

2  回车

n  回车

p  回车

2  回车

将刚才数字打上  回车

再按一次回车

w 回车

此时应该显示

The partition table has been altered.

      Calling ioctl() to re-read partition table.
      Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

4.sudo reboot 重新启动


5.重启之后运行  sudo resize2fs /dev/mmcblk0p2

至此扩容完毕  可以运行df -h 查看一下。


这是扩容后的,扩容之前是7g。  本身是16g内存卡

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值