I have a 14TB Seagate Exos hard drive that out of nowhere began exhibiting read-only errors. I use it as a NFS share and Plex media storage. I have tried unmounting and mounting it using dietpi-drive_manager. Initially it shows as rw but quickly reverts to read-only. I have tried moving the dietpi_userdata location to and from the hard drive.
Here are the errors
dietpi-drive_manager error when trying to mount rw
[FAILED] Could not apply
Error log:
- mount: /mnt/Seagate-14TB: mount point not mounted or bad option.
dmesg(1) may have more information after failed mount system
cp: preserving times for '/mnt/Seagate-14TB/dietpi_userdata/.': Read-only file system
[FAILED] DietPi-Set_userdata | Failed to copy /mnt/dietpi_userdata/ to /mnt/Seagate-14TB/dietpi_userdata.
[FAILED] DietPi-Set_userdata | Exited with error
dietpi@DietPi:~$ sudo dmesg
[ 345.948972] sd 1:0:0:0: [sdb] tag#12 CDB: Read(16) 88 00 00 00 00 00 0c 81 2f c8 00 00 00 08 00 00
[ 345.948980] critical target error, dev sdb, sector 209792968 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[ 345.949020] BTRFS error (device sdb1: state EA): bdev /dev/sdb1 errs: wr 9, rd 2242, flush 0, corrupt 11831, gen 0
[ 358.203709] sd 1:0:0:0: [sdb] tag#13 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=2s
[ 358.203767] sd 1:0:0:0: [sdb] tag#13 Sense Key : Medium Error [current]
[ 358.203779] sd 1:0:0:0: [sdb] tag#13 Add. Sense: Unrecovered read error
[ 358.203790] sd 1:0:0:0: [sdb] tag#13 CDB: Read(16) 88 00 00 00 00 00 0c 81 2f c8 00 00 00 08 00 00
dietpi@DietPi:~$ sudo btrfs check /dev/sdb1
Opening filesystem to check...
Checking filesystem on /dev/sdb1
UUID: 61245d2d-8a69-44df-b612-6f28d9d35d98
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 7842252328960 bytes used, no error found
total csum bytes: 7648136500
total tree bytes: 8567734272
total fs tree bytes: 271532032
total extent tree bytes: 179159040
btree space waste bytes: 436071653
file data blocks allocated: 7833684594688
referenced 7833675567104
dietpi@DietPi:~$ sudo dietpi-software reinstall 114
│ - Command: chown dietpi:dietpi /mnt/dietpi_userdata/Music │
│ /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video │
│ /mnt/dietpi_userdata/downloads │
│ - Exit code: 1 │
│ - DietPi version: v9.2.1 (MichaIng/master) | HW_MODEL: 21 | │
│ HW_ARCH: 10 | DISTRO: 7 │
│ - Image creator: DietPi Core Team │
│ - Pre-image: Debian Buster │
│ - Error log: │
│ chown: changing ownership of '/mnt/dietpi_userdata/Music': │
│ Read-only file system │
│ chown: changing ownership of '/mnt/dietpi_userdata/Pictures': │
│ Read-only file system │
│ chown: changing ownership of '/mnt/dietpi_userdata/Video': │
│ Read-only file system │
│ chown: changing ownership of '/mnt/dietpi_userdata/downloads': │
│ Read-only file system ```