A disk is readable, yet block detect prints enabled 0. The command produces an editable fstab template with mount entries disabled by default. It does not fill this line from the active setting.
Compare three outputs from the same boot
From a wired SSH session inspect the generated template, saved settings and kernel mount table. Record the device, UUID and target path and match the same volume across all three. The target in a template is a suggestion. Read the corresponding mount-table entry for the active filesystem and its read or write flags.
block detect | grep -E 'target|enabled'
uci show fstab | grep -E 'target|enabled'
awk '$2=="/" || $2=="/boot" {print $1,$2,$3,$4}' /proc/mounts

This recording uses an isolated 25.12.6 x86/64 guest. For a separate data disk, also run block info and look for its mount point in /proc/mounts. A kernel entry marked rw permits writes on this mount. If it shows ro, changing enabled in a template will not make it writable. Check boot options and filesystem or device I/O errors first.
When should you edit fstab?
A working root filesystem does not need a new mount entry just to change a zero in the template. For a data disk that should mount automatically, first back up /etc/config/fstab to the management computer. Confirm that the UUID is unique and the mount point is free, then edit only its entry. Avoid redirecting the complete block detect output over the existing configuration.
Retest during a maintenance window with wired recovery available. After boot check the mount table and open a known file on the data disk. If the target differs, stop writing there and restore the saved configuration. Do not run a repair tool on the active root volume.
How to identify SquashFS, the writable layer and /rom on OpenWrt
Comments