I ran out of memory so couldnt install any more packages. A way around this is to copy the filesystem to a usb drive and run from there, however you will need to format theusb drive on another device as there isnt enough memory on the Tl-WR703n for the software....
format usb on another box
list drives
ls /dev/sd*
format it to ext3
mkfs.ext3 /dev/sda1
remove and plug it into router
-NOTE I had already installed motion, so i had no more space at this step, the only round this was to reset it to default in luci >system>backup/flash firmware which will reset it to a clean openwrt install freeing up some room.
list drives
ls /dev/sd*
If usb not found then install usb storage support
Update package list
opkg update
Install USB storage support
opkg install kmod-usb-storage
you may get an error, just reboot and repeat
list drives again and it should show up as sda1
ls /dev/sd*
install ext4
opkg install kmod-fs-ext4
got error but ignore
install block-mount
opkg install block-mount
Now we copy the file system to the USB drive. (One command per line.)
mkdir -p /mnt/sda1
mount /dev/sda1 /mnt/sda1
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf -
umount /tmp/cproot
umount /mnt/sda1
Step 4
Now need to make a small adjustment to the /etc/config/fstab file.
/etc/config/fstab
config mount
option target /
option device /dev/sda1
option fstype ext3
option options rw,sync
option enabled 1
option enabled_fsck 0
reboot
After rebooting the router, connect again to it (via SSH). By subsequent command you can test, if everything worked fine.
Show mounts
df
In the line rootfs you should now see that the storage capacity is the same as the one of your USB flash drive. A look into the router’s web backend (at the System->Software tab) should also disclose whether everything went fine.
Next i need to reinstall motion :(
Part of this came from....
http://en.code-bude.net/2013/02/16/how-to-increase-storage-on-tp-link-wr703n-with-extroot/
No comments:
Post a Comment