At some point, the filesystem on my digital audio player has become read-only. I cannot copy files into it or remove files on it.
Are there some possible reasons for the player's file system to change permissions in this way?
I tried using chmod
:
$ sudo chmod a+rw SGTL\ MSCN/
chmod: changing permissions of `SGTL MSCN/': Read-only file system
SGTL MSCN
is the mount point of the digital audio player.
What else can I try to make it writeable?
If a filesystem has been mounted read-only,
chmod
will not work since it's a write operation too.Try remounting it read-write:
If the device has a write lock on it (like SD memory cards), you need to turn it off. Hardware locks cannot be disabled by software. Note that the write lock on SD memory cards is located from the sight you see the letters near the up left corner and it looks like a very small switch.
Some filesystem drivers may also not support write operations, this is the case with the older NTFS module supported by Linux. For NTFS filesystems, be sure to use the
ntfs-3g
driver which should be picked automatically nowadays. If not, you can force the driver with something like:(where
/dev/sdb1
has to be substituted for your block device and/mnt/
for your destination)For NTFS file systems this problem may occur when it is not properly unmounted (probably by unexpected shutdown of windows). In such cases the file systems are marked as locked.
You can mount them properly using the following
ntfsfix
command, for example:Please replace
/dev/sda3
with your own device name.I had this problem occur on several USB sticks. Each time I searched for an answer and tried various suggestions, including using Terminal to run commands, reformatting on both Linux and Windows machines, etc. All to no avail.
It happened to me again today so again I went looking to see if I could find a solution. I tried the things here, but they didn't work.
Out of desperation I again went to Disk Utility. I unmounted the drive and then hit "Format" on the partition portion, not the drive portion - USB only had the single partition. This time it WORKED!!!!. Then I went to the drive portion and again reformatted the single partition as a master boot drive and monkeyed a bit more with it.
The upshot is, I'm now able to read and write to the drive again.
I don't know if I just got lucky this time or not. But it is working again.
If the USB stick is mounted as read-only. Go to Disk Utility and unmount the disk. Then click on Check Filesystem if there are no problems remount the disk. After mounting the disk it should work correctly, at least that is how I solved this problem.
In case it is a fixed drive and not a removable drive, you can add the entry permanently.
Add an entry in the following format:
And then do:
In Case of Dual Booting Operating System (for me Windows 10 and Linux Mint 19.1), when windows10 was not properly shutdown, this problem will occur to my disk partition on the Linux,
The Solution is to start up the Windows 10 then shut it down properly.
Now you can write file to the partition on Linux again.
Hope this will help
I couldn't easily take my problematic NTFS-formatted external drive back to the Windows system that had apparently failed to dismount it safely (causing Mint to insist on mounting it "read-only").
But the easy answer for me was to run the Mint "Disks" utility and select "Repair filesystem"...