FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Fri Jun 18, 2021 20:32



Post new topic Reply to topic  [ 8 posts ] 
cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps 
Author Message

Joined: Mon Dec 10, 2007 22:41
Posts: 4
Post cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps
Hello there:

we cannot get an ntfs formatted drive to mount on a FreeBSD 6.2 box using ntfs-3g:

touch /mnt/ext/test
ntfs-3g /dev/ad4s1 /mnt/ext -o debug
(the drive appears to mount -- ie there are no errors and the messages indicate the mount happened)
ls /mnt/ext
>test
(i.e., not the root of the 200GB worth of files on the disk -- which show up fine in Windows XP)
grep -i ntfs /etc/log/messages
>pid ### (ntfs-3g), uid 0: exited on signal 11 (core dumped)

so it appears the fuse.ko driver dies? anyone have ideas? is this possibly an amd64 hw issue? we have had no other issues with this machine, it has been running a few months.

hw
board: MSI MS-7125 k8n neo4f
ram: 512MB x 2 DDR
proc: amd64 Athlon 3500 single core
ad0: seagate 400GB ATA disk (os)
ad4: seagate 400GB SATA disk (ntfs with maybe 200GB of files)

sw
file system: formatted ntfs and loaded with files by a windows XP sp2 machine
os: Freebsd 6.2 (patched to sa7)
fusefs-ntfs: sysutils/fusefs-ntfs-1.1004 w/
fuse4bsd 0.3.9-pre1 and FUSE ABI 7.8
notes: /etc/rc.conf properly config'd with fusefs_enabled="YES" and
/usr/local/etc/rc.d/fusefs has proper path to fuse.ko


Tue Dec 11, 2007 01:06
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps
Hi!

Apparently ntfs-3g core dumps. We're not aware of any 64-bit problems on
Linux, so this is FreeBSD specific quite probably.

Could you please send the gdb backtrace where it crashes?

Thanks, Szaka


Tue Dec 11, 2007 08:23
Profile

Joined: Mon Dec 10, 2007 22:41
Posts: 4
Post cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps
You said: please send the gdb backtrace where it crashes

I say:
gdb ntfs-3g
(gdb)
(gdb) run /dev/ad4s1 /mnt/ext -o debug
(gdb) >(it runs complaining no debug symbols found and exits normally)
(gdb) bt
(gdb) >no stack.
(gdb) quit
grep -i ntfs /etc/log/messages
>pid ### (ntfs-3g), uid 0: exited on signal 11 (core dumped)

Do I need to recompile ntfs-3g with a -g flag added somewhere?


Tue Dec 11, 2007 18:14
Profile
Tuxera CTO

Joined: Tue Nov 21, 2006 23:15
Posts: 1648
Post 
Yes, please recompile with debugging support. Thanks.


Tue Dec 11, 2007 20:35
Profile

Joined: Mon Dec 10, 2007 22:41
Posts: 4
Post cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps
you said: please recompile with debugging support

I say:
cd /usr/ports/systutils/ntfs-3g
vi Makefile (add "CFLAGS+= -g" and exit vi)
make deinstall clean
make install
gdb ntfs-3g
(gdb)
(gdb) run /dev/ad4s1 /mnt/ext
(gdb) >no debugging symbols found ... warning:unable to get
>location for thread creation breakpoint: generic error
>[New LWP 100080]
Program exited normally.
(gdb) bt
(gdb) >no stack.
(gdb) quit
grep -i ntfs /etc/log/messages
>pid ### (ntfs-3g), uid 0: exited on signal 11 (core dumped)

When make ran, the -g flag showed up in the make trace, so it seems to have read it. I also tried -g3 and -ggdb, same results. This debug session does not require a kernel built with DEBUG=-g, correct? I'm running these diagnostics as root, btw, if that might be a factor.


Wed Dec 12, 2007 22:59
Profile

Joined: Thu Dec 13, 2007 07:51
Posts: 5
Post sysutils/fusefs-ntfs update
Hello.

Have you tried with the latest version? I couldn't reproduce it locally.

Please apply the following patch to sysutils/fusefs-ntfs:
ftp://ftp.alepulver.com.ar/fusefs-ntfs.diff

And the following is to make sysutils/fusefs-kmod unmount the FUSE filesystems at shutdown, so (theorically) the cache is written to the disk (there is currently a discussion about this, but seems to work in FreeBSD):
ftp://ftp.alepulver.com.ar/fusefs-kmod.diff

Best Regards,
Ale


Thu Dec 13, 2007 08:34
Profile

Joined: Mon Mar 05, 2007 02:23
Posts: 14
Post Re: cannot mount ntfs on Freebsd 6.2 amd64 -- get core dumps
cpl160 wrote:
you said: please recompile with debugging support

I say:
cd /usr/ports/systutils/ntfs-3g
vi Makefile (add "CFLAGS+= -g" and exit vi)


Do then the following:

Code:
cd /usr/ports/systutils/ntfs-3g
vi Makefile (add --enable-debug to CONFIGURE_ARGS and exit vi)
make
cd work/ntfs-3g-*
LD_LIBRARY_PATH=libntfs-3g/.libs/ gdb src/.libs/ntfs-3g


Thu Dec 13, 2007 19:28
Profile

Joined: Mon Dec 10, 2007 22:41
Posts: 4
Post 
alepulver said: patches

csabahenk said: debug settings

I say: tried both ideas, see below. still not mounting:

Code:
(did patches, then ...)
# cd /usr/ports/sysutils/fusefs-ntfs/work/ntfs-3g-1.1120/
# setenv LD_LIBRARY_PATH libntfs-3g/.libs/
# echo $LD_LIBRARY_PATH
libntfs-3g/.libs/
# gdb src/.libs/ntfs-3g
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
...
[see http://pastebin.com/m606acf14 for 1052 lines omitted here]
...
Program exited normally.

(gdb) core ntfs-3g.core
Core was generated by `ntfs-3g'.
Program terminated with signal 11, Segmentation fault.
Symbols already loaded for /usr/local/lib/libiconv.so.3
Symbols already loaded for libntfs-3g/.libs//libntfs-3g.so.16
Symbols already loaded for /usr/local/lib/libublio.so.1
Symbols already loaded for /usr/local/lib/libfuse.so.2
Symbols already loaded for /lib/libpthread.so.2
Symbols already loaded for /lib/libc.so.6
Symbols already loaded for /libexec/ld-elf.so.1
#0  0x0000000800000000 in ?? ()
(gdb) bt
#0  0x0000000800000000 in ?? ()
#1  0x0000000000000000 in ?? ()
#2  0x0000000800b8ec11 in _spinunlock () from /lib/libpthread.so.2
#3  0x0000000800d1a162 in _UTF8_init () from /lib/libc.so.6
#4  0x0000000800d1a1f5 in free () from /lib/libc.so.6
#5  0x0000000800a7721f in fuse_opt_free_args () from /usr/local/lib/libfuse.so.2
#6  0x0000000800a77dd0 in fuse_opt_parse () from /usr/local/lib/libfuse.so.2
#7  0x0000000800a7c17d in fuse_kern_mount () from /usr/local/lib/libfuse.so.2
#8  0x0000000800a78c29 in fuse_mount_compat25 () from /usr/local/lib/libfuse.so.2
#9  0x00000000004054ff in try_fuse_mount (parsed_options=0x51e800 "silent,allow_other,relatime,fsname=/dev/ad2s1") at ntfs-3g.c:2146
#10 0x00000000004056c1 in mount_fuse (parsed_options=0x51e800 "silent,allow_other,relatime,fsname=/dev/ad2s1") at ntfs-3g.c:2201
#11 0x0000000000405958 in main (argc=0, argv=0x0) at ntfs-3g.c:2285
(gdb) quit
# ls /mnt/ext
ext_not_mounted
# grep -i ntfs /var/log/messages
Dec 14 00:56:02 s0 kernel: pid 11692 (ntfs-3g), uid 0: exited on signal 11 (core dumped)



I say: I see line 2285 of ntfs-3g.c is in main():
Code:
fh = mount_fuse(parsed_options);


I say: I also tried new Seagate ATA drive with new ntfs formatting. no change seen.


Fri Dec 14, 2007 08:55
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


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.