FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The filesystem on that drive has been mounted read-only. What filesystem is it? If it's NTFS, you need to install the ntfs-3g package and use that to mount the filesystem. The kernel's built-in NTFS driver has only very limited write support and defaults to a read-only mount.
Other reasons for a filesystem to be read-only include detected errors, filesystems that are inherently read-only (e.g., ISO9660), or physical write protection of the drive or media.
Thanks for the reply.
After I boot up I click on Nautilus(Files) and it lists Seagate_2TB-1 as one of my drives. When I click on Seagate_2TB-1 it asks me to enter the root password before mounting it, which I do. Apparently it must be mounting it as read-only. It is an NTFS file that was created in Windows 10. I have a dual boot system (Windows 10/Fedora 25). I have ntfs-3g installed. How can I make nautilus mount the Seagate_2TB-1 drive as read-write? What I also don't understand is that I have Linux programs that read/write files from/to Seagate_2TB-1 and they work fine. How can that be if Seagate_2TB-1 is mounted read-only?
Quote:
Originally Posted by rknichols
The filesystem on that drive has been mounted read-only. What filesystem is it? If it's NTFS, you need to install the ntfs-3g package and use that to mount the filesystem. The kernel's built-in NTFS driver has only very limited write support and defaults to a read-only mount.
Other reasons for a filesystem to be read-only include detected errors, filesystems that are inherently read-only (e.g., ISO9660), or physical write protection of the drive or media.
How can I make nautilus mount the Seagate_2TB-1 drive as read-write? What I also don't understand is that I have Linux programs that read/write files from/to Seagate_2TB-1 and they work fine. How can that be if Seagate_2TB-1 is mounted read-only?
The error you reported from mkdir was quite clear, "Read-only filesystem". What does the mount command (with no arguments) report for that partition? If it's using ntfs-3g, it should say, "type fuseblk" and "rw". Perhaps the system log has some information on why the filesystem became read-only.
BTW, if that filesystem was previously mounted by Windows, then it might not have been completely unmounted. NTFS filesystems in that state will be mounted read-only by Linux. You need to disable the "fast boot" option in Windows. That of course would not explain why other Linux programs have read/write access.
Last edited by rknichols; 06-29-2017 at 05:26 PM.
Reason: Add "BTW ..."
Thanks for your help. You're right. When I issue the mount command one of the lines displayed is:
/dev/sda3 on /run/media/enowak/Seagate_2TB-1 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)
I also found out that actually any programs that I run in Linux can only read existing files. I can't create new ones. Which is what you would expect if the filesystem Seagate_2TB-1 is mounted ro.
As I explained before this filesystem is mounted by Nautilus.If I unmount it using Nautilus(or do a umount /dev/sda3 at the command line) could I then mount it at the command line using the mount command? If so, I'm not sure what options I would use there are so many. For example, would the following command be sufficient?
# mount -rw /dev/sda3 /run/media/enowak/Seagate_2TB-1
Is there some way I could make Nautilus mount it with rw instead of ro?
I'm not an experienced Linux user so I hope the above makes at least some sense.
Again, thank you for your assistance.
Quote:
Originally Posted by rknichols
The error you reported from mkdir was quite clear, "Read-only filesystem". What does the mount command (with no arguments) report for that partition? If it's using ntfs-3g, it should say, "type fuseblk" and "rw". Perhaps the system log has some information on why the filesystem became read-only.
BTW, if that filesystem was previously mounted by Windows, then it might not have been completely unmounted. NTFS filesystems in that state will be mounted read-only by Linux. You need to disable the "fast boot" option in Windows. That of course would not explain why other Linux programs have read/write access.
pan64:
Currently my filesystem is mounted as indicated in the following output from the mount command:
/dev/sda3 on /run/media/enowak/Seagate_2TB-1 type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)
I did as was suggested in your reference by issuing the following command:
sudo mount -o remount,rw /dev/sda3
I then issued the mount command and got:
/dev/sda3 on /run/media/enowak/Seagate_2TB-1 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)
ro got changed to rw. I thought this would do the trick.
Unfortunately I still can't create a new file in the filesystem Seagate_2TB-1.
For example I created a file with LibreOffice Writer and tried to save it in Seagate_2TB-1.
I got the following error message:
Error saving the document Untitled 1:
/run/media/enowak/Seagate_2TB-1/Miscellaneous/Untitled 1.odt does not exist.
There must be some other options besides ro that have to be changed.
would be nice to show the command you tried to execute.
Does the directory /run/media/enowak/Seagate_2TB-1/Miscellaneous exist? How are the permissions set?
permissions should be ok if auto mounted because it is showing /run/media and not something else. Unless you're using that systems path to manually mount it.
if it is automounting ro - click that arrow in your file-manager to unmount it before using command line.
does it have any information/data on it? can you just open gParted and format it ext4 then change owner:group to see if that will get you something, or does it need to be windows formatted?
I did the following:
(Miscellaneous is a directory under the directory Seagate_2TB-1 and Seagate_2TB-1 is rw)
[enowak@localhost Seagate_2TB-1]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 40960 Jun 27 23:29 .
[enowak@localhost Seagate_2TB-1]$ cd Miscellaneous
[enowak@localhost Miscellaneous]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 16384 Mar 1 2016 .
[enowak@localhost Miscellaneous]$ echo This is a test >dummyfile
bash: dummyfile: Read-only file system
[enowak@localhost Miscellaneous]$
If I try the same thing in, say, my HOME directory I get a file named dummyfile that contains the line "This is a test"
Quote:
Originally Posted by pan64
would be nice to show the command you tried to execute.
Does the directory /run/media/enowak/Seagate_2TB-1/Miscellaneous exist? How are the permissions set?
I did the following:
(Miscellaneous is a directory under the directory Seagate_2TB-1 and Seagate_2TB-1 is rw)
[enowak@localhost Seagate_2TB-1]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 40960 Jun 27 23:29 .
[enowak@localhost Seagate_2TB-1]$ cd Miscellaneous
[enowak@localhost Miscellaneous]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 16384 Mar 1 2016 .
[enowak@localhost Miscellaneous]$ echo This is a test >dummyfile
bash: dummyfile: Read-only file system
[enowak@localhost Miscellaneous]$
You have not (a) shown that the filesystem is still mounted read/write after the error occurs, or (b) shown that the directory you are in is actually part of that filesystem (Running "df ." while in that directory would do that.).
I did the following (revised):
(Miscellaneous is a directory under the directory Seagate_2TB-1 and Seagate_2TB-1 is rw)
[enowak@localhost Seagate_2TB-1]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 40960 Jun 27 23:29 .
[enowak@localhost Seagate_2TB-1]$ cd Miscellaneous
[enowak@localhost Miscellaneous]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 16384 Mar 1 2016 .
[enowak@localhost Miscellaneous]$ echo This is a test >dummyfile
bash: dummyfile: No such file or directory
[enowak@localhost Miscellaneous]$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=16300912k,nr_inodes=4075228,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
...
...
...
/dev/sda3 on /run/media/enowak/Seagate_2TB-1 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)
[enowak@localhost Miscellaneous]$ df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1953279996 1756982632 196297364 90% /run/media/enowak/Seagate_2TB-1
[enowak@localhost Miscellaneous]$
Quote:
Originally Posted by rknichols
You have not (a) shown that the filesystem is still mounted read/write after the error occurs, or (b) shown that the directory you are in is actually part of that filesystem (Running "df ." while in that directory would do that.).
I did the following (revised):
(Miscellaneous is a directory under the directory Seagate_2TB-1 and Seagate_2TB-1 is rw)
[enowak@localhost Seagate_2TB-1]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 40960 Jun 27 23:29 .
[enowak@localhost Seagate_2TB-1]$ cd Miscellaneous
[enowak@localhost Miscellaneous]$ ls -ld .
drwxrwxrwx. 1 enowak enowak 16384 Mar 1 2016 .
[enowak@localhost Miscellaneous]$ echo This is a test >dummyfile
bash: dummyfile: No such file or directory
[enowak@localhost Miscellaneous]$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=16300912k,nr_inodes=4075228,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
...
...
...
/dev/sda3 on /run/media/enowak/Seagate_2TB-1 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)
Well, this time you did not get the "Read-only filesystem" message, but something else seems to have prevented creating the file. This smells like a damaged NTFS filesystem. Have you connected it to a Windows system and run chkdsk on it? You could try the Linux ntfsfix utility (part of the ntfsprogs package), but it has only very limited repair capability.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.