ebiggers / ntfs-3g-system-compression

NTFS-3G plugin for reading "system compressed" files
GNU General Public License v2.0
117 stars 5 forks source link

Compressed files still shown as "unsupported reparse point" #6

Closed passwordleak closed 5 years ago

passwordleak commented 5 years ago

Ubuntu 16.04 Windows volume: Windows 10 Enterprise 1703 ntfs-3g version:

ntfs-3g 2017.3.23 integrated FUSE 28 - Third Generation NTFS Driver
        Configuration type 7, XATTRS are on, POSIX ACLS are on

I downloaded from releases and then did a ./configure and make && make install. This seemed to work fine:

libtool: install: /usr/bin/install -c .libs/ntfs-plugin-80000017.so /usr/local/lib/ntfs-3g/ntfs-plugin-80000017.so
libtool: install: /usr/bin/install -c .libs/ntfs-plugin-80000017.lai /usr/local/lib/ntfs-3g/ntfs-plugin-80000017.la
libtool: finish: PATH="[redacted]" ldconfig -n /usr/local/lib/ntfs-3g
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/ntfs-3g

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Leaving directory '/opt/ntfs-3g-system-compression-1.0'

Then to mount the volume:

mount -t ntfs-3g /mnt/volume1 /mnt/test -o loop,ro,show_sys_files,streams_interface=windows,offset=[redacted] 

Yet, I still get "unsupported reparse point" for compressed system files.

ls /mnt/test/Windows/System32/notepad.exe -l
lrwxrwxrwx 2 root root [redacted] /mnt/test/Windows/System32/notepad.exe -> 'unsupported reparse point'
ebiggers commented 5 years ago

Try installing in /usr/lib instead of /usr/local/lib?

./configure --prefix=/usr
make
sudo make install
passwordleak commented 5 years ago

Still the same issue unfortunately. I tried rebooting too. Is there an easy way to tell if the plugin is actually being used?

# ls /usr/lib/ntfs-3g/
ntfs-plugin-80000017.la  ntfs-plugin-80000017.so

# ls /mnt/test/Windows/System32/notepad.exe -l
lrwxrwxrwx 2 root root [redacted] /mnt/test/Windows/System32/notepad.exe -> 'unsupported reparse point'
jpandre commented 5 years ago

A safe way of determining the plugin directory is to run :

ls -ld $(strings $(which ntfs-3g) | grep ntfs-plugin | sed -e 's/ntfs-plugin.*//')

You may have to create the directory.

passwordleak commented 5 years ago

Ah, that did it! Thank you! For whatever reason, the correct plugin folder is /usr/lib/x86_64-linux-gnu/ntfs-3g/ Once I put the plugin files there, it worked! If only that logic could be integrated into the installer or part of the readme?

DDvO commented 2 years ago

Glad that I found this hint - but only in a closed issue :-(

sudo cp -a /usr/{local/lib,lib/x86_64-linux-gnu}/ntfs-3g

did the trick on my Ubuntu system.

@ebiggers, please add the use of

ls -ld $(strings $(which ntfs-3g) | grep ntfs-plugin | sed -e 's/ntfs-plugin.*//')

as a hint in Installation section of README.md file.