In my computer I have many drives I installed Windows 10 and Ubuntu 18.04 dual boot. The problem is I am not able to modify (write) Windows drive files.
: mkdir: cannot create directory ‘foldername’: Read-only file system
In my computer I have many drives I installed Windows 10 and Ubuntu 18.04 dual boot. The problem is I am not able to modify (write) Windows drive files.
: mkdir: cannot create directory ‘foldername’: Read-only file system
The most common problem is the sudo
in the mounting for the share, which is required for the mounting command. After the mounting, the share belongs to root
and you can't write to it. You can remedy this by providing with uid=[your Ubuntu uid]
. This is proving write access to you.
You also have to make sure that the user under username= and password=
have write permission provided by the Windows server.
Make sure you include these parameters in your mounting options:
Example:
$ sudo mount -t cifs -o username="ljames",uid=1001 //192.168.15.84/c /mnt
Windows 10 have an option to login with your email address that is registered with Microsoft. In this case (which you may already know since you're able to mount the share), but for general knowledge, this will be done by:
$ sudo mount -t cifs -o username="ljames@outlook.com",uid=1001 //192.168.15.84/c /mnt
There are many options that can be specified in the command line (or in the /etc/fstab
file) such as:
Those options goes after the -o
options argument, separated by the comma.
sudo apt-get install ntfs-3g
– itssme May 05 '18 at 20:27ntfs-3g
is installed by default in Ubuntu these days, so that won't solve this problem – Zanna May 05 '18 at 20:52