The TP-Link has OpenWRT installed using either tftp or via the serial port using Kermit. Install the packages for using USB as storage on OpenWRT.
opkg updateopkg install kmod-usb-core kmod-usb-uhci kmod-usb-storage kmod-usb2 kmod-fs-ext4
reboot -f
mkdir /usb
mount /dev/sda1 /usb
mkdir /tmp/root
mount -o bind / /tmp/root
cp /tmp/root/* /usb -a
umount /tmp/root
umount /usb
Now edit the /etc/config/fstab file and add the following.
config mount
option target /usb
option device /dev/sda1
option fstype ext2
option options rw,sync
option enabled 1
option enabled_fsck 1
option is_rootfs 1
ext4
ReplyDelete