Search notes:

Mounting an NTFS Partition (-t ntfs-3g)

$ sudo mkdir /mnt/c
$ sudo mount -t ntfs-3g  /dev/nvme0n1p3 /mnt/c
$ cd /mnt/c
$ ls -1d \$*
'$Recycle.Bin'
'$Windows.~WS'

Interesting -o options

Some interesting ntfs-3g specific mount options (-o) are listed below.

show_sys_files

In order to see the NTFS metafiles also, the -o option must contain the show_sys_files flag:
$ cd ..
$ sudo umount /mnt/c
$ sudo mount -t ntfs-3g -o show_sys_files /dev/nvme0n1p3 /mnt/c
$ ls /mnt/c/\$*
'$AttrDef'
'$BadClus'
'$Bitmap'
'$Boot'
'$Extend'
'$LogFile'
'$MFTMirr'
'$Recycle.Bin'
'$Secure'
'$UpCase'
'$Volume'
'$Windows.~WS'

streams_interface

streams_interface controls if and how alternate data streams (ADS) can be accessed.
The value can be set to none (which is the default and does not allow accessing data streams), windows or xattr
With windows, a stream is accessed like in Windows, i. e. with a colon (filename:streamname)
With xattr, the named streams are mapped to xattrs and the streams can be accessed with getfattr and setfattr.
$ cd ..
$ sudo umount /mnt/c
$ sudo mount -t ntfs-3g -o show_sys_files,streams_interface=windows /dev/nvme0n1p3 /mnt/c
$ attr -g ntfs.streams.list /mnt/c/\$LogFile
attr_get: Operation not supported
Could not get "ntfs.streams.list" for /mnt/c/$LogFile
… hmm, maybe trying streams_interface=xattrs:
$ sudo umount /mnt/c
$ sudo mount -t ntfs-3g -o show_sys_files,streams_interface=xattr /dev/nvme0n1p3 /mnt/c
$ getfattr  /mnt/c/\$Extend/\$UsnJrnl
getfattr: Removing leading '/' from absolute path names
# file: mnt/c/$Extend/$UsnJrnl
user.$J
user.$J
user.$Max

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/Windows/...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758201371, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/file-system/NTFS/mount(94): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51