I have a secondary storage drive on my computer mounted at /media/user_name/Data
.
I get this error when trying to create a new directory:
user_name@cpu:/media/user_name/Data mkdir test
mkdir: cannot create directory ‘test’: Read-only file system
df -h
shows it mount at:
...
/dev/sdc2 466G 77G 390G 17% /media/user_name/Data
I follow instructions from here to remount it as read/write
sudo mount -o remount,uid=1000,gid=1000,rw /dev/sdc2
I try to make a directory again:
cd /media/user_name/Data/
mkdir test
mkdir: cannot create directory ‘test’: No such file or directory
I tried solving it with this solution but the same error exists.
The weird thing is I was able to write to this drive last week. I haven't done anything except boot into windows (on a third drive) and access and write data to the Data drive. I primarily use this drive for storage and to pass files between Windows and Ubuntu.
Checking disks, this is the info for it
Size 500 GB — 418 GB free (16.3% full)
Device /dev/sdc2
UUID 20B666B0B66685DE
Partition Type
Contents NTFS — Mounted at /media/user_name/Data