On my mi mini wifi router, I've passed from PandoraBox (which is an abandoned project with obsolete packages) to Lede (which allows torrents transmission).
Fortunately, contrary to what did happen with Pandorabox, the router led works properly.
But most unfortunately, since there is no out-of-the-box support for usb disks, I've followed the procedure described at https://openwrt.org/docs/guide-user/storage/usb-drives without success.
The block info command only gives the following output:
The curious thing is that If I mount manually my disk data partition with the command mount /dev/sda5 /mnt/sda5, I am able to browse my disk content. But I'm unable to mount it automatically at the next boot and to share it via samba.
Can you help me to make Lede recognizing my usb disk?
Run block detect > /etc/config/fstab to generate a config with the uuid's of your disks. Edit this file and set up the mount points and enable flag for the ones that you want to mount. /etc/init.d/fstab restart can be used to mount without rebooting.
It's s system partition, I do not know exactly. I added it to fstab because you told me to add the output of block detect to /etc/config/fstab. Anyway, nothing changes even if I delete such a section and leave sda5 section as it is.
Unless you specifically need exFAT, it's recommended to change to another filesystem type as exFAT has always had issues in Linux to due to, if I remember right, it being a closed source, licensed file system by Microsoft.
I personally would recommend ext3, or ext4 if you want journaling (it does come with a downside for flash drives), and then use Paragon's Linux FS on Windows
It's worth the $20 and comes in extremely handy, especially if you utilize Linux in VMs
I believe the free version allows reading from ext2/3/4, however for the ability to write, it must be purchased.
The main benefit of exFAT is it removes the 4GB file size limit of FAT32, however NTFS would be preferred over exFAT, as it [NTFS] has solid support on Linux.
I did encounter similar issues. I formatted my USB into NTFS file system. I chose a msdos partition table.
Then using luci, I installed fdisk
if you have only one drive on USB and the df -h does not show the drive either then try
it will have one partition (usually) 1.
make a note
then on LUCI, go to System >> Block Mount and manually enter the /dev/sda1 to /mnt/sda1
go the services and network and configure /mnt/sda1 as say...... "myflash"
for testing purpose give user as nobody, code of file and directory as 777 in both.
ssh into the router and chmod 777 -R /mnt/sda1
and restart the router
In my case thsi automagically got the UUID in place and I then went back to the Services >> Share and added users that I needed to control.
I am a NooB and this my be round about and clumsy but it worked for me...
The Guru on this forum and easily refine and shorten my approach..