1. Find the plugged in USB device
lsusb |
to see plugged in devices.
2 Partitions
install and use cfdisk to partion the USB.
3. GPT
gdisk not implemented on OpenWRT, so if the disk is GPT, then create an empty partition and it can be formatted with mkfs.ext4.
Then to recognize which partition is which (recognize them by size), use
cat /proc/partitions |
4. ext4
Install e2fsprogs, so that you can use mkfs.ext4.
mkfs.ext4 /dev/sdb5 |
5. fstab
Edit /etc/config/fstab
Add:
config 'mount' option target '/mnt/sda1' option device '/home/ftp_user/8GB' option enabled '0' config 'mount' option target '/home/ftp_user/storage' option device '/dev/sdb5' option enable '0' |