[SOLVED] ntfs-3g mount: problem with /dev/fuse

Here for general support for D series TVs, request and problem solve area.

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by arris69 »

Spoza wrote:...
don't know what /dev/sdb1 permissions is it talking about... because doing simple mount works fine (read-only - why? it uses some other ntfs module?!)
...
correct, your ntfs is mounted if you plug it on but read-only, before you try to mount it with ntfs-3g you must u(n)mount it first!!!
if then this also not works as last recource you can try this package http://www.zsolttech.com/ntfs-3g-extern ... nomtab.tgz

hth

Spoza
Posts: 252
Joined: Wed Jan 18, 2012 10:41 pm

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by Spoza »

arris69 wrote:correct, your ntfs is mounted if you plug it on but read-only, before you try to mount it with ntfs-3g you must u(n)mount it first!!!
...which is what I did. Look at the very first line in the second "code" section of my post.

The "code" sections are in chronological order, which means that the second mount was done AFTER the first attempt which FAILED, therefore no unmount was necessary.

I might sound (and act) stupid sometimes, but I'm not THAT stupid, I'm just not a Linux expert... but I can learn very quickly if I'm pointed the right direction... and that would be explaining what the heck the ntfs-3g means by all the 'permission denied' messages...
PS59D6900 T-MST5DEUC-1023.0

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by arris69 »

Spoza wrote:... but I can learn very quickly if I'm pointed the right direction... and that would be explaining what the heck the ntfs-3g means by all the 'permission denied' messages...
maybe the mstar platform has no "extended attributes" support or the ntfs-3g try to write to /etc/mtab. i just can say that the same version works on b and d-series (arm).

the strace programm should be shipped with the rooting widget, so you can try to run:

Code: Select all

strace ntfs-3g <your_usb_partition> <your_mountpoint>
to get more information what the ntfs-3g tries to do.

btw. you tested the version ntfs-3g-external_fuse-mstar_nomtab.tgz?

thnx

Spoza
Posts: 252
Joined: Wed Jan 18, 2012 10:41 pm

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by Spoza »

arris69 wrote:btw. you tested the version ntfs-3g-external_fuse-mstar_nomtab.tgz?
not yet... will try later when the family allows me ;-)
PS59D6900 T-MST5DEUC-1023.0

Spoza
Posts: 252
Joined: Wed Jan 18, 2012 10:41 pm

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by Spoza »

Okay, tried both versions of ntfs-3g (ntfs-3g-external_fuse-mstar.tgz and ntfs-3g-external_fuse-mstar_nomtab.tgz)... neither works for me...
Am I doing something wrong?!
- device is UNmounted before I do the mount
- ntfs-3g has correct executable attributes
- ntfs-3g has the same ownership as other files in the directory
- I do "source /dtv/SGO.env" as a very forst command

Here is the end of the trace where the errors occur (it's from the "nomtab" version):

Code: Select all

strace ntfs-3g /dev/sdb1 /dtv/usb/sdb1
execve("/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/bin/ntfs-3g", ["ntfs-3g", "/dev/sdb1", "/dtv/usb/sdb1"], [/* 62 vars */]) = 0
.
.
.
stat64("/dtv/fuse", {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 229), ...}) = 0
stat64("/dev/sdb1", {st_mode=S_IFBLK|0755, st_rdev=makedev(8, 17), ...}) = 0
getuid()                                = 0
stat64("/dev/sdb1", {st_mode=S_IFBLK|0755, st_rdev=makedev(8, 17), ...}) = 0
open("/dev/sdb1", O_RDWR|O_LARGEFILE)   = 29
fcntl64(29, F_SETLK64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}, 0x7fc07470) = -1 EACCES (Permission denied)
write(2, "Failed to write lock '/dev/sdb1'", 32Failed to write lock '/dev/sdb1') = 32
write(2, ": Permission denied\n", 20: Permission denied
)   = 20
close(29)                               = 0
write(2, "Error opening '/dev/sdb1'", 25Error opening '/dev/sdb1') = 25
write(2, ": Permission denied\n", 20: Permission denied
)   = 20
write(2, "Failed to mount '/dev/sdb1'", 27Failed to mount '/dev/sdb1') = 27
write(2, ": Permission denied\n", 20: Permission denied
)   = 20
write(2, "Please check '/dev/sdb1' and the"..., 164Please check '/dev/sdb1' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged
) = 164
exit_group(19)                          = ?
And here is a trace from subsequent 'normal' mount command which succeeds to mount the ntfs partition read-only.
Can someone push me further?
(FWIW, the /etc/mtab is empty 0-byte file)

Code: Select all

strace mount /dev/sdb1 /dtv/usb/sdb1
execve("/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/bin/mount", ["mount", "/dev/sdb1", "/dtv/usb/sdb1"], [/* 62 vars */]) = 0
.
.
.
stat64("/sbin/mount.ntfs", 0x7fa9be48)  = -1 ENOENT (No such file or directory)
mount("/dev/sdb1", "/dtv/usb/sdb1", "ntfs", MS_MGC_VAL, NULL) = 0
readlink("/dev", 0x7fa99ee0, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sdb1", 0x7fa99ee0, 4096) = -1 EINVAL (Invalid argument)
readlink("/dtv", 0x7fa99ee0, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dtv/usb", 0x7fa99ee0, 4096)  = -1 EINVAL (Invalid argument)
readlink("/dtv/usb/sdb1", 0x7fa99ee0, 4096) = -1 EINVAL (Invalid argument)
lstat64("/etc/mtab", {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
open("/etc/mtab", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = -1 EROFS (Read-only file system)
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 16) = 0
exit_group(0)                           = ?
Seems to me like the second mount fails too, trying to open the /etc/mtab for writing...
But the partition IS MOUNTED afterwards... while it was NOT mounted before doing this command...
PS59D6900 T-MST5DEUC-1023.0

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by arris69 »

D5700Admin wrote:...

What SamyGO (or Samsung) components use FUSE and do work?
libfuse should be 2.8.4 with patch to use /dtv/fuse, fuse kernel module is from samsung sources (11_UE32D5520.zip)
but i think on mstar platform a lot of stuff is dead-patched by samsung/vdlinux/aliens then samba server also not working... (looks like arm targets are more dev-friendly :-) )

arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by arris69 »

D5700Admin wrote:...

Let me try to rephrase: what else (on D-series Mstar) relies on [lib]FUSE? Does it work or not?

Cheers,
D.
djmount and fusesmb use fuse too, status isn't known/not tested.

Mosquito79
Posts: 13
Joined: Wed Apr 11, 2012 3:20 pm
Location: Germany, Hamburg

Re: [SOLVED] ntfs-3g mount: problem with /dev/fuse

Post by Mosquito79 »

Hi.
My TV: UE40D7090, FW TGAP 1018 (ARM)
I?ve got the same Problem. Tested both, NTFS-3G for ARM AND NTFS-3G for MSTAR. Both versions results in these errors:

ARM:
@ phpsysinfo $ ntfs-3g /dev/sda2 /dtv/usb/sda2
fuse: mount failed: Invalid argument
MSTAR:
@ phpsysinfo $ ntfs-3g /dev/sda2 /dtv/usb/sda2
/mtd_down/widgets/user/SamyGO/SamyGO/opt/privateer/usr/bin/ntfs-3g: line 1: syntax error: unexpected "("

Thank you for some Hints/Tips/Solutions.

P.S.: The Thread is flagged as [SOLVED]...is it solved?
TV: UE40D7090 // FW: T-GAPDEUC_1018.0

Post Reply

Return to “[D] Support”