opkg update
安装下列ipk包opkg install block-mount kmod-fs-ext4 kmod-usb-storage e2fsprogs kmod-usb-ohci kmod-usb-uhci fdisk
重新定义挂载TF卡export DEVICE="$(awk -e '/\s\/overlay\s/{print $1}' /etc/mtab)"uci -q delete fstab.rwmuci set fstab.rwm="mount"uci set fstab.rwm.device="${DEVICE}"uci set fstab.rwm.target="/rwm"uci commit fstab
格式化内置TF卡(我把整个TF卡格式化称ext4格式)mkfs.ext4 /dev/mmcblk0
把TF卡整个挂载于overlayexport DEVICE="/dev/mmcblk0"eval $(block info "${DEVICE}" | grep -o -e "UUID=\S")uci -q delete fstab.overlayuci set fstab.overlay="mount"uci set fstab.overlay.uuid="${UUID}"uci set fstab.overlay.target="/overlay"uci commit fstab
启动模块增加tf支撑cat << EOF > /etc/modules-boot.d/mmcmmc_coremmc_blocksdhcimtk_sdEOF
克隆系统到tf卡mount /dev/mmcblk0 /mntcp -a -f /overlay/. /mntumount /mnt
到此扩容完毕,reboot之后再进入web界面=》挂载点就可以看到软件包以扩充。#pandorabox扩容软件包容量(图片来源网络,侵删)
0 评论