I have all the kmod-usb packages installed, and started this guide can't mention because it's a link.. So I guess I'll try and explain without and info to provide. I'm wanting to expand the storage as I only have 16mb when I plug in the USB it doesn't show with df, however fdisk -l command shows it
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 12544 2528 10016 20% /
/dev/root 2560 2560 0 100% /rom
tmpfs 63020 668 62352 1% /tmp
/dev/mtdblock3 12544 2528 10016 20% /overlay
overlayfs:/overlay 12544 2528 10016 20% /
tmpfs 512 0 512 0% /dev
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 15919103 15917056 7.6G 83 Linux
I then followed this:
mkdir /mnt/sda1
Mount the drive on the mount point you just created (replace /dev/sda2 with whatever you got from the fdisk command, and /mnt/sda1 with whatever you chose as your mount point):
mount /dev/sda1 /mnt/sda1
Now copy the root filesystem from the router’s inbuilt flash to the USB drive with these commands (if you chose a name other than /mnt/sda1 in the previous step, then replace /mnt/sda1 in line 3):
mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda1 -xf -
umount /tmp/cproot
It copied all over and I rebooted
I then did
Configure /etc/config/fstab
Open /etc/config/fstab with your favourite text editor:
nano /etc/config/fstab
If nano is not installed, you can use vi (which is installed by default, but is horrible!) or you can just install nano with:
opkg update
opkg install nano
Add the following to the file:
config mount
option target /
option device /dev/sda1
option fstype ext4
option options rw,sync
option enabled 1
option enabled_fsck 0
These settings stuck after another reboot
Then I'm supposed to double check with mount and df -h which both do not show dev/sda1
root@OpenWrt:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 12.3M 2.5M 9.8M 20% /
/dev/root 2.5M 2.5M 0 100% /rom
tmpfs 61.5M 744.0K 60.8M 1% /tmp
/dev/mtdblock3 12.3M 2.5M 9.8M 20% /overlay
overlayfs:/overlay 12.3M 2.5M 9.8M 20% /
tmpfs 512.0K 0 512.0K 0% /dev
if I got to in WebGUI System -> Software I still see only 9.8mb 80% free
Then System -> Mount Points shows
Mounted file systems
Filesystem Mount Point Available Used
rootfs
/
9.78 MB / 12.25 MB
20% (2.47 MB)
/dev/root
/rom
0.00 B / 2.50 MB
100% (2.50 MB)
tmpfs
/tmp
60.82 MB / 61.54 MB
1% (744.00 KB)
/dev/mtdblock3
/overlay
9.78 MB / 12.25 MB
20% (2.47 MB)
overlayfs:/overlay
/
9.78 MB / 12.25 MB
20% (2.47 MB)
tmpfs
/dev
512.00 KB / 512.00 KB
0% (0.00 B)
Mount Points
Mount Points define at which point a memory device will be attached to the filesystem
Enabled Device Mount Point Filesystem Options Root Check
/dev/sda1 (7772 MB)
/
ext4
rw,sync
yes
no
No SWAP
So what can I do or is it working and I'm wrong? The guide said after all I did the filesystem should be running form the USB not internal mem
Packages Installed:
Can't list because it says I'm adding links....
(Last edited by cyris69 on 28 Nov 2016, 06:37)

