Mount Points fail 22.03.02 firmware but OK in 19.07.10

So I've used the OpenWrt online instructions to setup Mount Points File-Systems with 22.03.02 firmware. From the CLI response all appeared to OK until I "ls -l /mnt/sda1" cmd and got nothing. I wiped the firmware back to virgin copy, went to the Luci Mount Points tab, with my USB drive attached clicked "Generate Config", none (3 connected) drive do not show in the Mount File System when I selected my 3 drives.

I reverted my firmware back to 19.07.10, repeated my steps using the Luci interface then my 3 drives were "Mounted file systems" in Luci Mount Points. I'm sticking with firmware 19.07.10 until this is fixed.

Any comments? What did I do wrong if anything?

Did you install the appropriate file system kernel modules?

2 Likes

I use NTFS file system since its compatible with my other devices. I read the install instruction back and forth and followed a pretty good utube instruction

That didn't answer the question - so I setup/tested myself. NTFS USB drives work here on 22.03.2 - using the OpenWrt Wiki and the video provided.

opkg update
opkg install ntfs-3g kmod-usb-storage block-mount
reboot
  • Hit "Generate Config"

Result:

What did you expect to see?

Did you try:

ls -l /mnt

root@OpenWrt:~#  ls -l /mnt
drwxr-xr-x    2 root     root           160 Jan  4 17:17 sda1
1 Like

I see my 3 HDD but the contents of them show up as null (empty). The file system is ntfs.
Capture .

Furthermore LuCi doesn't show the 3 drives as Mount Points when I select to mount the drives.

Damn touchscreen!

You should see your MOUNT= point from this output

block info | grep sda

response is not "MOUNT=..." . Here's a sample of the response

/dev/sda2: UUID="HEXNUMBERS" LABEL= "someLabel" TYPE="NTFS"

Thus this prevents me from installing Samba4 and vsftpd.

Post block detect followed uci export fstab

root@OpenWrt:~# block detect
config 'global'
        option  anon_swap       '0'
        option  anon_mount      '0'
        option  auto_swap       '1'
        option  auto_mount      '1'
        option  delay_root      '5'
        option  check_fs        '0'

config 'mount'
        option  target  '/mnt/sda2'
        option  uuid    '3EC2AAADC2AA68BB'
        option  enabled '0'

config 'mount'
        option  target  '/mnt/sdb1'
        option  uuid    '6074BEEB74BEC2D8'
        option  enabled '0'

config 'mount'
        option  target  '/mnt/sdc1'
        option  uuid    '6AA8BD4CA8BD1791'
        option  enabled '0'

root@GroundbassX:~# uci export fstab
package fstab

config global
        option anon_swap '0'
        option anon_mount '0'
        option auto_swap '1'
        option auto_mount '1'
        option delay_root '5'
        option check_fs '0'

config mount
        option target '/mnt/sda2'
        option uuid '3EC2AAADC2AA68BB'
        option enabled '1'

config mount
        option target '/mnt/sdb1'
        option uuid '6074BEEB74BEC2D8'
        option enabled '1'

config mount
        option target '/mnt/sdc1'
        option uuid '6AA8BD4CA8BD1791'
        option enabled '1'

Nothing is being detected for sda1. block detect doesn't see it, nor does fstab show it as configured.

/mnt/sda2 , /mnt/sdb1, and /mnt/sdc1 are detected and they all should show as mounted provided they are available for mounting.

How many drives/partitions are you running?

Running 3 drives 1 partition each drive. They are detected but don't mount using LuCi.

Can't get them to mount using LuCi either.

What's your target? ubus call system board

root@OpenWrt:~# ubus call system board
{
        "kernel": "5.10.146",
        "hostname": "OpenWrt",
        "system": "ARMv7 Processor rev 1 (v7l)",
        "model": "Linksys WRT3200ACM",
        "board_name": "linksys,wrt3200acm",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "22.03.2",
                "revision": "r19803-9a599fee93",
                "target": "mvebu/cortexa9",
                "description": "OpenWrt 22.03.2 r19803-9a599fee93"
        }
}

I am running on the similar target (WRT1900ACSv2) on 21.02.5 (production) and Master Snapshot built from source, and never an issue from the first day I got here (19.07).

Somehow your sda isn’t being seen. Try cat /etc/mtab and see if it shows an entry for your sda1 drive.

Beyond that, DK.

dmesg | grep sda will indicate a detection of your sda coming up at boot:

Summary

root@RuralRoots:/proc# dmesg | grep sda
[ 3.149107] sd 2:0:0:0: [sda] 60437492 512-byte logical blocks: (30.9 GB/28.8 GiB)
[ 3.157348] sd 2:0:0:0: [sda] Write Protect is off
[ 3.162160] sd 2:0:0:0: [sda] Mode Sense: 4f 00 00 00
[ 3.162847] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 3.183971] sda: sda1 sda2 < sda5 sda6 sda7 sda8 >
[ 3.191471] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 14.751720] EXT4-fs (sda1): recovery complete
[ 14.756476] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
[ 19.006044] EXT4-fs (sda7): recovery complete
[ 19.010426] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts:
[ 20.158769] EXT4-fs (sda5): recovery complete
[ 20.163471] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts:
[ 23.373198] EXT4-fs (sda8): recovery complete
[ 23.378267] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts:
[ 27.809273] EXT4-fs (sda6): recovery complete
[ 27.819233] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts:

Another thing to try would be blowing away your /etc/config/fstab and recreate it.

rm /etc/config/fstab
reboot
block detect | uci import fstab

All my drives are single partition, 4T, 2T and 1T byte drive. The 4T always comes up as sda2 (I was expecting sda1). If I use OpenWrt 19.0 sda2 comes up and I'm able to mount no problems.

root@OpenWrt:~# cat /etc/mtab
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
/dev/ubi0_1 /overlay ubifs rw,noatime,assert=read-only,ubi=0,vol=1 0 0
overlayfs:/overlay / overlay rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work 0 0
ubi1:syscfg /tmp/syscfg ubifs rw,relatime,assert=read-only,ubi=1,vol=0 0 0
tmpfs /dev tmpfs rw,nosuid,noexec,noatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,noatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,noatime,mode=700 0 0
root@OpenWrt:~# dmesg | grep sda
[    5.467440] sd 2:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[    5.482838] sd 2:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    5.490625] sd 2:0:0:0: [sda] 4096-byte physical blocks
[    5.508962] sd 2:0:0:0: [sda] Write Protect is off
[    5.513784] sd 2:0:0:0: [sda] Mode Sense: 67 00 10 08
[    5.513922] sd 2:0:0:0: [sda] No Caching mode page found
[    5.519257] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   21.526307]  sda: sda1 sda2
[   21.529852] sd 2:0:0:0: [sda] Attached SCSI disk

Recreating the fstab and the results are the same.

Hmmm, a win screenshot. Three separate drives, and a 2.0 usb and 3.0/eSata on the router. How are these drive connected?

usb3 (5Gb) of course. Can't use sata for all 3. As I said, if I go back to openwrt version 19.0 I don't have this problem... I can auto detect and mount the all 3 drives from LuCi.

OK, so one drive, 3 partitions. I’m out of options ATM. I know native EXT4 but not the nuances of NTFS on Linux.

Either way, I am not aware of any changes between 19.07 to present to block mount. ¯\_(ツ)_/¯

Is this one physical drive with multiple partitions or multiple physical drives with one partition each? I thought the latter, but just want to confirm.

Assuming that we're talking about 3 physical drives, are they all physically independent connections (i.e. their own connection to your router, not a multi-drive enclosure)? If so, do each of the drives appear if you only connect one at a time? (they'll probably all show up as /dev/sda1 since there will only be one drive connected at any given moment). If they show up, can you mount them (use the manual mount method)?