LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2012, 09:50 PM   #1
raefdhaon
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
ntfs-3g and unsupported reparse points


Hi all,

I need some help determining how to get ntfs-3g to handle (delete) a Windows (directory) junction. The junction(s) in question is created by malware. Ubuntu 10.04.1 will delete them no problem (ntfs-3g version 2010.3.6), despite recognizing them as 'unsupported reparse point'. Puppy Linux and xPUD both choke on them with a 'directory not empty' error. I compiled both the current ntfs-3g stable release (2012.1.15) and the Advanced release, then replaced the ntfs-3g binary and supporting libraries (libntfs-3g.so, so.83, so.83.0.0 and so.831, so.831.0.0) in both Puppy and xPUD, then remounted the drives, to no avail. Then added the updated ntfs-3g.probe, ntfs-3g.secaudit, ntfs-3g.usermap files to the list of replacements and still no results. I tried building with FUSE internal and external. I then used the /configure options --enable-xattr-mappings and --disable-posix-acls, because I noticed that was the configuration used in Ubuntu. I also tried the 2010.3.6 version files from the default 10.04.1 build. What am I missing? Do I need to replace the mount.ntfs-3g file from /sbin as well? One odd thing I noticed is that in Puppy and xPUD, after updating the ntfs-3g files, it was necessary to first access the target directory before the junction would appear visibly - Ubuntu showed it without the need to access the target first.

TIA
 
Old 02-09-2012, 08:12 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Have you tried to force remove it recursively?

Code:
rm -rf directory
man rm
 
Old 02-09-2012, 11:39 AM   #3
raefdhaon
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Absolutely! No luck with that either.

Should also mention that prior to updating the ntfs-3g driver in xPUD, it is recognized as a regular folder, and accessible as such. It contains 2 malware folders with files in each, and a single file. The folders can be deleted, the single file cannot ...... 'operation not supported'. I have checked permissions and have full read/write access on all items. Once the driver is updated, it appears as a symlink and ls -l reports it 'unsupported reparse point'.
 
Old 02-10-2012, 08:19 AM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Do you have a Windows machine available to boot to and attach the drive? If not I recommend creating a Windows Preinstalled Environment (WinPE) which is basically a live CD with Windows on it. I recommend using Ultimate Boot CD (UBCD). It has several useful troubleshooting tools.

Then when you have the drive hooked up to Windows run a "chkdsk /f" from the cmd. Once filesystem errors are potentially resolved then boot to Linux again and attempt to delete it.

Can you create a simple file on the volume and delete that simple file? Example
Code:
cd /media/windowsdrive
touch afile
rm afile
If not and the filesystem is mounted as readonly then you'll need to remount it read/write.
Code:
mount -o remount,rw /media/windowsdrive
 
Old 02-10-2012, 08:16 PM   #5
raefdhaon
LQ Newbie
 
Registered: Aug 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for the response. As stated in my last post, it is not a problem with read/write permissions on the volume.
Quote:
The folders can be deleted, the single file cannot ...... 'operation not supported'. I have checked permissions and have full read/write access on all items.
Nor is it filesystem corruption. It has something to do with the way ntfs-3g is handling the junction in xPUD - I can only guess a configuration difference between Ubuntu's installed ntfs-3g and the one I compiled. I did find that via commandline, I can rename the junction, or move it to anywhere on the same partition, if I mount it using the -o permissions option.

Last edited by raefdhaon; 02-10-2012 at 10:19 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsupported Hardware jorran Red Hat 4 01-18-2012 04:35 PM
"unsupported reparse point" rsync GriFF3n Linux - Newbie 2 09-29-2010 10:43 AM
Unsupported platform igsen Linux - Newbie 3 06-20-2009 06:45 AM
play free (World of WarCraft , xBox Live, Live Points, Wii Points, Free Habbo) laraaj Linux - Games 1 02-09-2007 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration