openwrt X86 扩容更目录空间
1、安装cfdisk
opkg install cfdisk
分区完 增加一个sda3 然后
uci add fstab mount
uci set [email protected][-1].uuid= \\填UUID
uci set [email protected][-1].options=rw,sync,noatime
uci set [email protected][-1].fstype=ext4
uci set [email protected][-1].enabled_fsck=1
uci set [email protected][-1].enabled=1
uci set [email protected][-1].target=/
uci set [email protected][-1].device=/dev/sda3
uci commit fstab
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda3 -xf -
umount /tmp/cproot
umount /mnt/sda3
/etc/init.d/fstab enable
/etc/init.d/fstab start