Currently I have added an HDD in ntfs format (I had it in a windows operating system) with multimedia content for plex, and in plex everything works correctly, but through a terminal or webmin with root it only allows me to view on that unit, the user, in the drive manager I see that the status is Drive is online and ready for use, the permissions it has are root:root 0775, obviously I log in with root and I still have the same problem.
Is the HDD connected via USB? If yes, is there an active USB hub in between which powers the USB disk?
Maybe the power of the PCB is not sufficient to run the disk.
It is directly on the board, and the same hardware but with Windows it works without problems.
So your hardware is a PC with a SATA HDD?
Yes, 5 satas
I guess itâs access issue due to file system permissions. You are using NTF, which is not a Linux file system. Hence no support for file system permissions. Therefore we set permission for root user only. Means, you should be able to write files as root user but not as another user.
I log in via ssh and webmin with root and Iâm still the same, it doesnât let me do anything, now Iâve connected via winscp and look at what it tells me:
The command «mkdir âtestâ»
failed, with error code 1 and the following error message.
mkdir: cannot create directory âtestâ: Read-only file system
Can you check with dietpi-drive_manager
if it is set to read only and if yes, just toggle it and try again.
The [X]
in the âRead Onlyâ line shows that it is mounted read only. Can you toggle it like Jappe mentioned?
He throws me the following message:
[FAILED] Could not apply
Error log:
Remounting is not supported at present. You have to umount volume and then mount it once again.
I have tried to disassemble the unit and reassemble it and it is still the same⊠it still gives me the same problem
If your disk is mounted, can you give the output of /etc/fstab
sorry but I havenât understood you, when you put that command it tells me permissions denied
/etc/fstab is a configuration file. You could Google about it to learn whatâs it for.
I meant cat /etc/fstab
In the section âPhysical drivesâ there is the sd-card (mounted on /
) and five other disks (mounted below /mnt/
).
All of these disks have the option ro
set. So It would be an option to set the option to rw
for your plex mounted disk. This can be done by editing the file /etc/fstab
and change the last entry (from the UUID and the dietpi-drive_manager
screenshot above I see that the last entry with UUID=01DAâŠEE60 is the disk you are struggling). Change the ro
to rw
.
Then easily reboot the system.
Then you can check with dietpi-drive_manager
whether the âread onlyâ flag is now cleared.
But 4 entries have still ro
option set.
Iâm testing only on one HDD to avoid corrupting several data HDDs, but as I told you⊠If it doesnât work on one ticket, whatâs the point of doing it on all of them? If it doesnât work on one, it shouldnât work on the others, right?
Yes you are right. I tested it now with a USB stick and it works withour problems on my system.
So the only thing I can think of now is, that there is some filesystem corruption with prevents the correct mounting on linux.
The ntfs-3g
driver comes with a tool ntfsfix
, you could run it an see if it changes anything, but ONLY if you have a backup of the files from the external drives.
https://askubuntu.com/questions/70281/why-does-my-ntfs-partition-mount-as-read-only
Or you could try to run chkdsk
on a Windows system, Iâve read that the ntfsfix
is a bit limited in comparison to ntfsfix
.