11-10-2021, 04:09 PM
Folks:
With all the advancements made in Linux it's perfectly possible to mount NTFS filesystems. For many purposes they'll appear indistinguishable from FAT32 and EXT4 filesystems. The NTFS filesystem will be mounted using the Linux fuseblk mechanism and the FAT32 filesystem using the vfat mechanism but that's just a detail.
Here's an example of two thumbdrives I just plugged into a moOde 7.4.1 player
(where mmcblk0 is the uSD card containing moOde/RaspiOS)
I can change into directories in either the NTFS filesystem or the VFAT system and *as root* create or delete files/directories in them. User pi has permission only to read them.
Example for the NTFS filesystem
Having said this, I still don't understand the need to be doing this work from the command line locally when it can all be done remotely from the Windows desktop using the Windows file manager.
Regards,
Kent
With all the advancements made in Linux it's perfectly possible to mount NTFS filesystems. For many purposes they'll appear indistinguishable from FAT32 and EXT4 filesystems. The NTFS filesystem will be mounted using the Linux fuseblk mechanism and the FAT32 filesystem using the vfat mechanism but that's just a detail.
Here's an example of two thumbdrives I just plugged into a moOde 7.4.1 player
Code:
pi@rpi3bp:~ $ lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
└─sda1 ntfs MyNTFS 64B7E8CB6A07F4D0 801.5M 18% /media/MyNTFS
sdb
└─sdb1 vfat USB DISK D3B6-C697 19.4G 33% /media/USB DISK
mmcblk0
├─mmcblk0p1 vfat boot EBBA-157F 197.5M 22% /boot
└─mmcblk0p2 ext4 rootfs b3ce35cd-ade9-4755-a4bb-1571e37fc1b9 11G 19% /
(where mmcblk0 is the uSD card containing moOde/RaspiOS)
I can change into directories in either the NTFS filesystem or the VFAT system and *as root* create or delete files/directories in them. User pi has permission only to read them.
Example for the NTFS filesystem
Code:
pi@rpi3bp:~ $ cd /media/MyNTFS
pi@rpi3bp:/media/MyNTFS $ ls -l
total 4
drwxr-xr-x 1 root root 4096 Nov 7 07:31 'Green Day-Warning'
drwxr-xr-x 1 root root 0 Nov 7 07:35 'System Volume Information'
pi@rpi3bp:/media/MyNTFS $ sudo mkdir testdir
pi@rpi3bp:/media/MyNTFS $ ls -l
total 4
drwxr-xr-x 1 root root 4096 Nov 7 07:31 'Green Day-Warning'
drwxr-xr-x 1 root root 0 Nov 7 07:35 'System Volume Information'
drwxr-xr-x 1 root root 0 Nov 10 11:00 testdir
pi@rpi3bp:/media/MyNTFS $ cd testdir
pi@rpi3bp:/media/MyNTFS/testdir $ sudo touch emptyfile
pi@rpi3bp:/media/MyNTFS/testdir $ ls -l
total 0
-rwxr-xr-x 1 root root 0 Nov 10 11:00 emptyfile
Having said this, I still don't understand the need to be doing this work from the command line locally when it can all be done remotely from the Windows desktop using the Windows file manager.
Regards,
Kent