Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: goyfilms on May 11, 2011, 03:07:14 AM

Title: ntfs-3g error
Post by: goyfilms on May 11, 2011, 03:07:14 AM
hi!
when I try to mount a NTFS partition:

Quote
ntfs-3g /dev/sda2 /mnt/sda2
I got this error:

Code: [Select]
error opening '/dev/sda2': Permission denied
Failed to mount 'dev/sda2': Permission denied
Please check 'dev/sda2' and th ntfs-3g binary permissions,
and th mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged

I tried a lot of things, but I can't solve it.
Any idea?  ???
Title: Re: ntfs-3g error
Post by: SamK on May 11, 2011, 03:31:01 AM
Did you try the method mentioned in the info tab of the app in AppBrowser?  It indicates that sudo is used.
   
Title: Re: ntfs-3g error
Post by: goyfilms on May 11, 2011, 03:42:18 AM
Did you try the method mentioned in the info tab of the app in AppBrowser?  It indicates that sudo is used.
   

If I do:
Quote
sudo ntfs-3g /dev/sda2 /mnt/sda2
it returns:
Quote
FATAL: Module fuse not found.
Failed to write lock '/dev/sda2': Permission denied
Error opening '/dev/sda2': Permission denied
Failed to mount '/dev/sda2': Permissio denied
Please check '/dev/sda2' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unprivileged
Title: Re: ntfs-3g error
Post by: SamK on May 11, 2011, 05:43:03 AM
It might be useful to know more about your system, storage and app. 

Which version of TC/MC are you using? 

Post the output of:
Code: [Select]
blkid -o list | grep /dev/[hs]

The reference to the missing fuse module looks suspicious.  Try
Code: [Select]
ntfs-3g
This will display the app version and also some information about fuse and configuration.
   
Title: Re: ntfs-3g error
Post by: goyfilms on May 11, 2011, 06:02:06 AM
Code: [Select]
blkid -o list | grep /dev/[hs]
returns
Code: [Select]
Invalid output format list.  Chose from value, device, or full
if I write only "blkid" it returns:

Code: [Select]
/dev/sda1: TYPE="ntfs"
/dev/sda2: TYPE="ntfs"
/dev/sdb1: LABEL="GOYFILMSUSB" UUID="D415-643C" TYPE="vfat"

and "ntfs-3g" returns:

Code: [Select]
ntfs-3g: No device is specified.

ntfs-3g 2010.5.22 integrated FUSE 27 - Third Generation NTFS Driver
                Configuration type 1, XATTRS are on, POSIX ACLS are off
               
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2010 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
               
Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
               
Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).
                                   
Example: ntfs-3g /dev/sda1 /mnt/windows
                                   
Ntfs-3g news, support and information:  http://ntfs-3g.org
Title: Re: ntfs-3g error
Post by: Jason W on May 11, 2011, 06:50:35 AM
Ntfs-3g works fine here with a Windows XP ntfs partition on a hard drive.  

By being sda, it appears like a usb or external hard drive is being used, though that may or may not be part of the issue.
Title: Re: ntfs-3g error
Post by: SamK on May 11, 2011, 07:00:44 AM
Code: [Select]
blkid -o list | grep /dev/[hs]
returns
Code: [Select]
Invalid output format list.  Chose from value, device, or full
if I write only "blkid" it returns:

Code: [Select]
/dev/sda1: TYPE="ntfs"
/dev/sda2: TYPE="ntfs"
/dev/sdb1: LABEL="GOYFILMSUSB" UUID="D415-643C" TYPE="vfat"
A couple of odd things...
Code: [Select]
blkid -o list | grep /dev/[hs]
Is regularly used here and never fails with
Quote
invalid output format. Chose from value, device, or full
Code: [Select]
blkid --help
shows -o list as a standard option.

Code: [Select]
blkid
When issued without any options this should produce a many more entries than the those that you report.

What version of TC/MC are you using?
   
Title: Re: ntfs-3g error
Post by: tinypoodle on May 11, 2011, 07:37:01 AM
A couple of odd things...

What I find odd is the absence of LABEL= & UUID=
Title: Re: ntfs-3g error
Post by: goyfilms on May 11, 2011, 07:52:41 AM
I am using a remastered version based on TC 2.5
Title: Re: ntfs-3g error
Post by: SamK on May 11, 2011, 08:13:00 AM
I am using a remastered version based on TC 2.5
As this is not in use here and the command outputs differ, I will withdraw at this point.

Ntfs-3g works fine here with a Windows XP ntfs partition on a hard drive. 

By being sda, it appears like a usb or external hard drive is being used, though that may or may not be part of the issue.
My experience is similar to this; ntfs-3g works well.  It is also successfully mounting multiple NTFS partitions on a local USB disk.
   
Title: Re: ntfs-3g error
Post by: goyfilms on May 11, 2011, 08:48:09 AM
I think I haven't the fuse module and I don't know how to get it
I tried to download ntfs-3g and fuse sources and compile them but the result is the same
probably a kernel problem?
I don't know what to do...
Title: Re: ntfs-3g error
Post by: curaga on May 11, 2011, 09:57:14 AM
FUSE is built in, in both 2.x and 3.x.
Title: Re: ntfs-3g error
Post by: Rich on May 11, 2011, 10:13:09 AM
Hi goyfilms
See if this helps.
http://forum.tinycorelinux.net/index.php?topic=2690.msg45353#msg45353
Title: Re: ntfs-3g error
Post by: gerald_clark on May 11, 2011, 11:47:01 AM
Try using a real TinyCore release instead of a remastered version.
Do you still have the problem?
Title: Re: ntfs-3g error
Post by: tinypoodle on May 11, 2011, 01:01:36 PM
I am using a remastered version based on TC 2.5

Do you refer to a remaster of yourself or a 3rd party distributor?

Do you always load tce-notify before any other extension?
Title: Re: ntfs-3g error
Post by: goyfilms on May 12, 2011, 05:20:33 AM
I was using a 3rd party remastered TC 2.5 called [remaster] because I need this hacked wifi drivers for test wifi security but it haven't fuse module and because of this ntfs-3g doesn't works

Now I'm trying TC 3.6 and ntfs-3g works fine, but I like to automount NTFS partitions on boot so I used this script to integrate ntfs-3g into TC base:
http://forum.tinycorelinux.net/index.php?topic=6246.0

It worked into fstab because now it is like:
/dev/sda1      /mnt/sda1      ntfs-3g    noauto,users,xc       0 0 # Added by TC

but the ntfs partitions doesn't automount on boot.

how can I do it?
thanks

EDIT: I think I need to change "noauto" for "auto" but I don't know how to do it
Title: Re: ntfs-3g error
Post by: gerald_clark on May 12, 2011, 06:19:17 AM
TC only mounts the tce partition.
Add a mount command to /opt/bootlocal.sh.
Title: Re: ntfs-3g error
Post by: goyfilms on May 12, 2011, 09:26:47 AM
TC only mounts the tce partition.
Add a mount command to /opt/bootlocal.sh.
how can do it to mount only ntfs partitions by bootlocal.sh?
Title: Re: ntfs-3g error
Post by: gerald_clark on May 12, 2011, 10:19:20 AM
You need to add a line to bootlocal.sh:
mount /mnt/sda1


Title: Re: ntfs-3g error
Post by: goyfilms on May 14, 2011, 06:24:25 AM
I don't know why, but if I add that line to bootlocal.sh it don't works,
however, if I add it to .ashrc from /home/tc, it works fine