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?
First, you should also check your
/etc/fstab to assure that the mount for your NTFS partition does so as
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
For more information:
sudo ntfsfix /dev/sdaN # replacing "N" with the correct partition number
I fixed this using heynnema solution and adding
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.
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.
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.