I added a disk but disk happen to be damaged. I uninstall disk and try to mount another
I formatted new disk as ext4 and try to add to automount following this manual [OpenWrt Wiki] Using storage devices but get an I/O Error and “readonly filesystem”
You could try block umount and then e2fsck -p /dev/sda1. Or change fstab.@global[0].auto_mount to 0 and reboot, then the e2fsck.
However, are you sure the filesystem is the issue and not the disk hardware?
Finallly, I note you have fstab.@mount[2].enabled=’1’ for /. If your root filesystem has issues you should either check the root disk on a another system, or boot into failsafe mode and check the root disk there.
One final note: more complete output of logread and dmesg are likely needed to further troubleshoot.
Thank you. Could you please clarify should I leave my /etc/config/fstab as is with /dev/sdb1 and /dev/sdb2 or as it is shown in manual I only need /dev/sda1?
I mean system partitions are not needed to be mounted via fstab, aren’t they? So I can only keep info only on /dev/sda1 I believe?
I guess I could create fstab manually, then use commands
/etc/init.d/fstab enable
/etc/init.d/fstab start
to enable automounting deamon?
UPD: No one answer me in prevouus topic on this matter so I would be very grateful if you clarify this: Can I use such flags as:
option options 'rw,noatime,nosuid,noexec,nodev'
for more secure mounting? I believe this flags restrict execution of command files for device and since I have only data files, may be it is my option for better security?
I just do not want any process to be able to execute files from this device for the sake of secturity reasons. Because, well, if evil people will hack this device they will not be able to execute their evil files from this device and fail in achieving beautiful pictures of my gorgeous cat for free.