FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Wed Nov 25, 2020 09:47



Post new topic Reply to topic  [ 13 posts ] 
NTFS partition mounted but its contents are not displayed 
Author Message

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post NTFS partition mounted but its contents are not displayed
We are using Oracle Enterprise Linux (OEL 5.8). I installed the latest version of NTFS-3g-progs drivers. Everything went smoothly without any single error. Then I attached a USB drive with NTFS partition and mounted it. Mounting was also done without any error, but when I tried to query the mounted partition using 'df -h'; it returned the following:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 49G 3.9G 43G 9% /
/dev/sda5 490G 198M 465G 1% /****
/dev/sda1 190M 37M 144M 21% /****
tmpfs 7.9G 0 7.9G 0% /dev/shm
df: `/media': Resource temporarily unavailable

This is the output of MOUNT:
---------------------------------
[root@testerp ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda5 on /*** type ext3 (rw)
/dev/sda1 on /*** type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /media type fuseblk (rw,allow_other,blksize=4096)

Output of uname -a:
-----------------------
# uname -a
Linux *** Server hostname *** 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:37:40 EST 2012 x86_64 x86_64 x86_64 GNU/Linux


/etc/redhat-release:
-----------------------
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Excerpt from /var/log/messages:
-------------------------------------
Jul 28 11:54:27 testerp kernel: fuse init (API version 7.13)
Jul 28 11:54:33 testerp ntfs-3g[12945]: Version 2015.3.14 integrated FUSE 27
Jul 28 11:54:33 testerp ntfs-3g[12945]: Mounted /dev/sdb1 (Read-Write, label "My Passport", NTFS 3.1)
Jul 28 11:54:33 testerp ntfs-3g[12945]: Cmdline options:
Jul 28 11:54:33 testerp ntfs-3g[12945]: Mount options: allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Jul 28 11:54:33 testerp ntfs-3g[12945]: Ownership and permissions disabled, configuration type 1

Other than that, I 've tried other options like restarting and giving permissions but to no avail.

Any help in this regard will be highly appreciated as I am in dire need of this driver for my work.

Thanks in anticipation.
Bilal


Wed Jul 29, 2015 14:48
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

How is your drive partitioned ? Assuming MBR-type partitioning, what does "fdisk -l /dev/sdb" show ?

Regards

Jean-Pierre


Wed Jul 29, 2015 21:17
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Many thanks for the reply. Fdisk -l output is as follows:

# fdisk -l /dev/sdb

Disk /dev/sdb: 1000.1 GB, 1000170586112 bytes
255 heads, 63 sectors/track, 121597 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 121598 976728064 7 HPFS/NTFS


Kind Regards,
Bilal


Thu Jul 30, 2015 10:59
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

Can your configuration access other ntfs-formatted devices ?

If none, please try with debug enabled :
Code:
# as root, with /dev/sdb1 not mounted
ntfs-3g -o debug /dev/sdb1 some-void-directory 2> log &
umount some-void-directory
head log

Then post the output.

Regards

Jean-Pierre


Thu Jul 30, 2015 14:15
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Thanks for the update. No the server can't access any other NTFS formatted deivce. The debug output is as under:

Version 2015.3.14 integrated FUSE 27
Mounted /dev/sdb1 (Read-Write, label "My Passport", NTFS 3.1)
Cmdline options: debug
Mount options: allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Ownership and permissions disabled, configuration type 1
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.13
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000001
max_readahead=0x00020000
max_write=0x00020000
unique: 2, error: 0 (Success), outsize: 40
unique: 1, opcode: FORGET (2), nodeid: 1, insize: 48
FORGET 1/1
Unmounting /dev/sdb1 (My Passport)

Regards,
Bilal


Thu Jul 30, 2015 14:35
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

Code:
INIT: 7.13
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.12
flags=0x00000001
max_readahead=0x00020000
max_write=0x00020000
unique: 2, error: 0 (Success), outsize: 40
unique: 1, opcode: FORGET (2), nodeid: 1, insize: 48
FORGET 1/1

That means that your fuse kernel module has rejected the fallback to protocol 7.12 supported by the fuse library shipped with ntfs-3g. You must have some specific upgrade of kernel 2.6.32, as the fuse library shipped with ntfs-3g has never supported protocol 7.13 and has worked in the past with kernel 2.6.32.

I can only suggest you switch to the external fuse library, which means you have to recompile ntfs-3g with the "./configure" option --with-fuse=external

There may also be the possibility that you could use some version of ntfs-3g shipped with your kernel if it was compiled with external fuse ("ntfs-3g -help" shows which library is used).

Note : the lack of a message log in this case is known, ... but this happens outside ntfs-3g.

Regards

Jean-Pierre


Thu Jul 30, 2015 15:44
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Many thanks for your response and detailed findings. May I rquest you to kindly guide me what exactly I need to do next. Should I uninstall ntfs-3g drivers and install fuse drivers or which version of FUSE should I install. I am a bit confused. My installed fuse package is:

fuse-2.7.4-8.0.1.el5

Kind Regards,
Bilal


Sat Aug 01, 2015 10:46
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

Quote:
My installed fuse package is:
fuse-2.7.4-8.0.1.el5

This version dates back from 2008, and is probably contemporary to kernel 2.6.32, so they should agree on a common protocol, and the current ntfs-3g is supposed to be compatible with fuse library 2.7. You have to try, I do not have these versions any more.
To compile ntfs-3g (you will need to have the fuse library headers) :
Code:
# get the source of a recent version (2015.3.14 or 2015.3.14AR.1)
# as a non-root user, in some user directory :
tar -zxvf ntfs-3g_ntfsprogs-2015.3.14.tgz
./configure --with-fuse=external
make

To test without installing :
Code:
# as root, in the same directory :
src/ntfs-3g /dev/sdb1 some-void-directory
ls -l some-void directory
umount some-void directory

To install :
Code:
# as root, in the same directory :
make install

Regards

Jean-Pierre


Sat Aug 01, 2015 21:17
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Thank you for the update. I did as per instructions but to no avail. Following errors are thrown at the end of 'make'.

lowntfs_3g-lowntfs-3g.o: In function `ntfs_fuse_bmap':
/root/ntfs/ntfs-3g_ntfsprogs-2015.3.14/src/lowntfs-3g.c:2703: undefined reference to `fuse_reply_bmap'
collect2: ld returned 1 exit status
make[2]: *** [lowntfs-3g] Error 1
make[2]: Leaving directory `/root/ntfs/ntfs-3g_ntfsprogs-2015.3.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ntfs/ntfs-3g_ntfsprogs-2015.3.14'
make: *** [all] Error 2

The NTFS partition gets mounted but with same status i.e: df: `/media': Resource temporarily unavailable

Completely lost but still believe that you will be able to find out some solution.

Thanks in advance.

Regards
Bilal


Sun Aug 02, 2015 19:41
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

Code:
lowntfs_3g-lowntfs-3g.o: In function `ntfs_fuse_bmap':
/root/ntfs/ntfs-3g_ntfsprogs-2015.3.14/src/lowntfs-3g.c:2703: undefined reference to `fuse_reply_bmap'

So, the generation gap is too wide... too bad. However you probably do not need this module.
Quote:
The NTFS partition gets mounted but with same status i.e: df: `/media': Resource temporarily unavailable

How did you work around the compiling issue ? Assuming you had a good workaround, this tends to mean that the fuse kernel module and the fuse library are not compatible (the fuse kernel module is probably more recent than the one designed for kernel 2.6.32).
Quote:
Completely lost but still believe that you will be able to find out some solution.

You still have the possibility try forcing the fallback to 7.13 instead of 7.12 in the ntfs-3g internal fuse library (this has however not been tested) :
Code:
In file include/fuse-lite/fuse_kernel.h (line 64 in my version), change
#define FUSE_KERNEL_MINOR_FALLBACK 12
to
#define FUSE_KERNEL_MINOR_FALLBACK 13

and recompile, using the internal library (no argument to ./configure) :
Code:
# as a non-root user, in some user directory :
tar -zxvf ntfs-3g_ntfsprogs-2015.3.14.tgz
./configure
make

Note : if this fails, please post the beginning of the debug log, showing the version negotiation.

Regards

Jean-Pierre


Sun Aug 02, 2015 21:53
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Thank you for the reply. Unfortunately it didn't work even this time. I updated the "fuse_kernel.h" to 13 per your instructions but the result is same. The output of debug log is as under:

Version 2015.3.14 integrated FUSE 27
Mounted /dev/sdb1 (Read-Write, label "My Passport", NTFS 3.1)
Cmdline options: debug
Mount options: allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Ownership and permissions disabled, configuration type 1
unique: 2, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.13
flags=0x0000007b
max_readahead=0x00020000
INIT: 7.13
flags=0x00000001
max_readahead=0x00020000
max_write=0x00020000
unique: 2, error: 0 (Success), outsize: 40
unique: 1, opcode: FORGET (2), nodeid: 1, insize: 48
FORGET 1/1
Unmounting /dev/sdb1 (My Passport)

i really appreciate your patience and extended support in this regard.

Thanks & Regards
Bilal


Mon Aug 03, 2015 14:36
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: NTFS partition mounted but its contents are not displayed
Hi,

Quote:
Unfortunately it didn't work even this time. I updated the "fuse_kernel.h" to 13 per your instructions but the result is same.

So your fuse kernel module refuses to cooperate. Maybe some modification to the kernel was incompatible with fuse. Anyway, I am unlikely to be of any help to track down why...

Regards

Jean-Pierre


Tue Aug 04, 2015 13:46
Profile

Joined: Wed Jul 29, 2015 12:46
Posts: 7
Post Re: NTFS partition mounted but its contents are not displayed
Hi Jean,

Thanks a lot for all your support. Much Appreciated!

Kindly update the thread if you sooner or later found any solution.

Thanks once again.

Regards,
Bilal


Tue Aug 04, 2015 16:08
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.