View previous topic :: View next topic |
Author |
Message |
ggaaron Apprentice
Joined: 10 May 2007 Posts: 217
|
Posted: Sun May 27, 2007 9:33 pm Post subject: ntfs-3g driver problem |
|
|
If I use:
Code: | /dev/sdb1 /mnt/sdb1 auto noauto,user 0 0 |
in my fstab file and the drive has an ntfs filesystem, then I get this error
Code: | mount: unknown filesystem type 'ntfs' |
and this command didn't help
Code: | ln -s /usr/bin/ntfs-3g /sbin/mount.ntfs |
I don't have kernel ntfs support, I use only the ntfs-3g driver, how can I tell gentoo to mount ntfs partitions using this driver? |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Sun May 27, 2007 11:05 pm Post subject: |
|
|
Code: |
/dev/sdb1 /mnt/sdb1 ntfs-3g noauto,user 0 0
|
|
|
Back to top |
|
|
ggaaron Apprentice
Joined: 10 May 2007 Posts: 217
|
Posted: Mon May 28, 2007 7:22 am Post subject: |
|
|
I know that I can do that, but I'd like to have auto filesystem, as it is an external drive and I don't plug only ntfs drives there. |
|
Back to top |
|
|
Crenshaw Guru
Joined: 23 Jun 2004 Posts: 474 Location: Poland
|
Posted: Mon May 28, 2007 9:22 am Post subject: |
|
|
You didn't mention that...
Maybe try using /etc/filesystems?
man mount:
Code: |
If no -t option is given, or if the auto type is specified, mount will try to guess the desired type. If mount was compiled with the blkid library,
the guessing is done by this library. Otherwise, mount guesses itself by probing the superblock; if that does not turn up anything that looks famil-
iar, mount will try to read the file /etc/filesystems, or, if that does not exist, /proc/filesystems. All of the filesystem types listed there will
be tried, except for those that are labeled "nodev" (e.g., devpts, proc and nfs). If /etc/filesystems ends in a line with a single * only, mount
will read /proc/filesystems afterwards.
|
|
|
Back to top |
|
|
ggaaron Apprentice
Joined: 10 May 2007 Posts: 217
|
Posted: Mon May 28, 2007 9:46 am Post subject: |
|
|
Sorry for not mentioning it in the first post.
I added tried adding ntfs and ntfs-3g to the file, but it doesn't work=/
Can I make an alias for mount -t ntfs=mount -t ntfs-3g? |
|
Back to top |
|
|
irgu Tux's lil' helper
Joined: 25 Apr 2003 Posts: 131
|
Posted: Mon May 28, 2007 7:53 pm Post subject: |
|
|
Well, this is not really an ntfs driver problem but a mount one. I know that some distros can mount ntfs partitions with ntfs-3g if 'auto' is used but I didn't study how they do it. Perhaps they use already the improved, new mount from util-linux-ng? |
|
Back to top |
|
|
ggaaron Apprentice
Joined: 10 May 2007 Posts: 217
|
Posted: Tue May 29, 2007 3:47 pm Post subject: |
|
|
Partially solved with this dirty trick:
Code: |
/dev/sdb1 /mnt/sdb1 auto noauto,user 0 0
/dev/sdb1 /mnt/sdb1ntfs ntfs-3g noauto,users,locale=pl_PL.utf8,uid=1000,gid=1000 0 0
|
|
|
Back to top |
|
|
|