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...