![Quote](images/ubuntu-VB4/misc/quote_icon.png)
Originally Posted by
rtroxel2
TheFu,
The file system for the Ubuntu 20.04 hard drive is standard ext4. The file system for the Windows data drive is something called "fuse", but I've only heard of Windows using NTFS or FAT32. It's my understanding that Ubuntu can read those two also.
I haven't used Ubuntu for a couple of years, but I remember you could add the "write" property to a disk or file using the chmod command. Has that changed?
chmod doesn't work on NTFS.
fuse almost always means a non-native file system. If you can, changing it to native would be best. You'll get better performance and control of all the normal Unix/POSIX permissions. Alas, swapping a file system means wiping the partition completely. Best to do that BEFORE you have lots of stuff on in. The downside to changing to a native Linux file system is that Windows can't read it. I see that as a positive.
I have only 1 HDD that gets used to move data physically between Windows and Linux. Of course, using the network to move things is pretty easy. I use that most of the time. That physical NTFS drive is only used because my video recording hardware will only write to NTFS file systems. It's a hardware limitation, so I'm stuck with it.
Ok, so back to the problem. NTFS permissions, owner and group settings are control at mount time and cannot be changed without remounting. This is the Linux way of tricking the file system into working as needed for Linux use. The minimum commands to mount non-native file systems:
Code:
# Non-native file systems - ntfs, exfat, fat32
sudo mkdir /media/canon
sudo mount -t auto -o uid=$USER /dev/sdb1 /media/canon
# When done
sudo umount /media/canon
But those just get the job done and aren't very efficient.
The options can be more than just the uid. Options to be swapped into the mount command:
Code:
# exfat
-o dirsync,nodev,windows_names,nosuid,noatime,async,timeout=2,uid=1000,gid=1009,fmask=0002,dmask=0002
# ntfs - big_writes helps performance upto 30%
-o nodev,permissions,windows_names,nosuid,noatime,async,big_writes,timeout=2,uid=1000,gid=1009,fmask=0002,dmask=0002
You'll need to correct the uid and gid settings for your username. Use the 'id' command to determine those. They are NOT what I've put above.
Mount options cannot have any spaces, so don't accidentally add some. That changes the entire meaning of the line.
* Use 'id' to see the uid and gid numbers for your userid.
* If multiple users need write access, choose a shared group. You might need to create this shared Unix group.
* NTFS performance - async,big_writes
* exFAT performance - dirsync in kernel-based exfat mount code.
* uid=???? where ???? can be either the number or the text.
For ext2/3/4 or any native Linux, use these options for "data" :
Code:
# ext4 - nofail for data-only mounts
-o nodev,nosuid,noatime,errors=remount-ro,nofail
Bookmarks