0

I have Windows 10 and Ubuntu Budgie on my laptop (dual boot). Windows is on a 1TB HDD drive and Linux (which I mostly use) is on a separate SSD. Previously, I could access my HDD from Windows with all permissions but recently I used the free version of IM-Magic Partition Resizer Free in Windows to change and merge some partitions. Now, the problem is that I lost my write-execute permission on Linux!

cp: cannot create regular file './nima2.ovpn': Read-only file system

I tried some commands I found on the web and his site but none worked. I also tried How do I use 'chmod' on an NTFS (or FAT32) partition? but couldn't make it work.

Here is the data of one of my partitions:

Partition Information Screen Capture


Here is the content of /etc/fstab:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb during installation
UUID=f3194103-518f-4b51-b3ee-0df649359852 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
UUID=B084-4E87  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda7 during installation
UUID=b337eac3-ac75-44cb-9175-cd9c3dd2b6a9 none            swap    sw              0       0

1 Answers1

1

I have a NTFS volume that is automounted when the computer starts. In /etc/fstab there is the following entry:

UUID=BC2E8B1A2E8ACD38 /mnt/win ntfs-3g   defaults,nls=utf8,umask=000,dmask=027,fmask=137,uid=1000,gid=1000,windows_names 0 0

where BC2E8B1A2E8ACD38 is the NTFS Volume Serial Number which can be found (in my case) with blkid /dev/sdc1 which gives the output:

/dev/sdc1: UUID="BC2E8B1A2E8ACD38" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6dbd7f38-fe9e-4eb5-9769-2803188075b8"

I haven't tried to mount it by the PARTUUID. Also, the umask=000 is not recommended as it gives full read/write permissions to anyone but I'm the only one that can log in to the computer. uid and gid are my user and group ID. (I will sharpen umask to 002)

Serafim
  • 515