It's my first time installing Ubuntu. I deleted Windows and installed Ubuntu 17.04 but there is a problem NTFS Partitions are mounted as read only. What do I need to do?
6 Answers
Step #1:
First, you should also check your /etc/fstab to assure that the mount for your NTFS partition does so as rw, not ro.
Step #2:
If you still had Windows installed, I'd recommend a different path to fix this problem.
And as always, I'd always recommend good backups.
However, without windows, (and although I wouldn't normally recommend this in a dual-boot environment) you might use ntfsfix.
In terminal...
For more information:
man ntfsfix
To use:
sudo ntfsfix /dev/sdaN # replacing "N" with the correct partition number
- 73,649
I fixed this using heynnema solution and adding
umask=000
in mounting options.
About umask: umask of 000 will make newly created directories readable, writable and descendible for everyone (the permissions will be 777). Such a umask is highly insecure and you should never set the umask to 000... You can see more about it here
As WinEunuuchs2Unix said, typically umask it's set to 022 for 755 access. Also there is fmask and dmask for setting files and directories separately.
- 123
- 1
- 8
This will solve your problem
sudo apt-get install ntfs-3g
You should unmount your drive, and mount again after that you have installed the ntsf-3g. Ti will solve this lack.
- 11
I don't know whether you've got the solution. But, here is what I do when i got same problem on my dual boot PC.
If you are using dual boot with Windows and Linux it is better to boot into Windows and do the disk check using Windows' disk check utility. That will do the trick of resolving the Read only file system error in Linux.
Actually thanks to @spinne, because sudo apt-get install ntfs-3g when I try to resolve with ntfs-3g it shows the cause of the problem. Then I reboot to Windows and did disk check for problem drive and fixed the file system error.
- 72,312
A check with the Windows disk utility (chkdsk <drive_letter>: /r from an elevated cmd; taken from https://neosmart.net/wiki/chkdsk/) worked in my case, even though no errors were found. Adding the rw mount option with 'disks' from ubuntu didn't work.
This might be the preferred solution when acting on a partition that is shared in a dual boot. In my case, this is a dual boot with ubuntu 20 LTS and a roll-out version from windows 10.
If you're dual-booting with Win10, remember that, if you just Shut Down Win10, it is actually doing something akin to hibernating, which leaves its NTFS partitions read-only for your Ubuntu (etc.) installation.
You can solve this by always Restarting whenever you quit Win10, even if it's just back to your Linux login screen and then you shut down from there. When you next log in to Linux, your Win10 partitions with be Read-Write.