PDA

View Full Version : Mounting NTFS drives



lazerid
4th March 2007, 04:10 PM
I tried following this guide (http://www.mjmwired.net/resources/mjm-fedora-fc6.html#ntfs) to mounting NTFS drives, but i get the following error:


[thomas@dhcppc0 ~]$ sudo mount /dev/hda1 /media/c_drive -t ntfs-3g -r -o umask=0222
WARNING: Deficient FUSE kernel module detected. Some driver features are
not available (swap file on NTFS, boot from NTFS by LILO), and
unmount is not safe unless it's made sure the ntfs-3g process
naturally terminates after calling 'umount'. The safe FUSE kernel
driver is included in the official Linux kernels since version
2.6.20-rc1, or in the FUSE 2.6.0 or later software packages,
except the faulty FUSE version 2.6.2. Please see the next page
for more help: http://www.ntfs-3g.org/support.html#fuse26

[thomas@dhcppc0 ~]$


What to do?

Brian1
4th March 2007, 04:21 PM
Which kernel are you using? Post output ' uname -r '
Now if using 2.6.20.***** kernel then the fuse filesystem is not when in the kernel source. So it actually would perfer to use the fuse source from with in the kernel. Now what you are using is no problem. The kernel is aware of fuse now and compares it to the what it knows.

Using the Search Tool here showed a few post on the same question.

Brian

lazerid
4th March 2007, 04:39 PM
Heres my kernel:
[thomas@dhcppc0 /]$ sudo uname -r
2.6.19-1.2911.6.4.fc6

What next?

gordan
4th March 2007, 05:07 PM
I think u need to download the latest version of fuse...link http://fuse.sourceforge.net/
extract it and open terminal...after that just do this
> ./configure
> make
> make install

it should work after that

lazerid
4th March 2007, 05:41 PM
Ok. Im a noob :-) and I dont really know how to do it.. could you elaborate?
I have downloaded and unpacked til file... now what? :-)

louspag
4th March 2007, 06:09 PM
i'm also new at linux but i found in a post something about loading and mounting ntfs. what i did was load ntfs-3g
yum install ntfs-3g

once installed it should automount and removable ntfs device such as my usb thumb drive and my external usb drive. after installing ntfs-3g there is an update so run through the application update process.

so far it's been working fine for me.

Brian1
4th March 2007, 06:31 PM
If you install from the source like gordan describes you need to install the kernel-devel rpm that matches your current running kernel in order to build the fuse filesystem from source.

Brian

lazerid
4th March 2007, 07:26 PM
I have det kernel-devel installed. Now what?

Brian1
4th March 2007, 09:12 PM
Then extract the source for current fuse and read the install and readme to install. I don;'t recall the exact commands but they are in the docs.
Then extract and install ntfs-3g the same way.

Brian

lazerid
4th March 2007, 09:34 PM
It says:
Installation
============

./configure
make
make install
modprobe fuse

I can do the "./configure" but when I get to "make" it gives me an error... I guess in english it would be something like "make: *** no specified target and no makefile found. Stop".

Brian1
4th March 2007, 10:15 PM
Once you have it extracted the you first run the command ' ./configure '
Does it report any errors?

If no errors then you run the command ' make '.
What is the exact error you get?

Once it is compiled with no errors then you run ' make install ' as root.
Then you use ' /sbin/modprobe fuse ' as root to load the fuse module into the kernel.

Brian

gordan
4th March 2007, 10:47 PM
did u install the ntfs-3g?? if u did then just extract fuse and find the config file u find in it to the terminal. after that just type make and after that just type make install. that should be it for the fuse problem...after that just follow the instructions for mounting

lazerid
5th March 2007, 06:46 PM
Im really not following... sorry...
I just tried removing and reinstalling ntfs-3g and here is what Im writing:


Installed: ntfs-3g.i386 2:1.0-1.fc6
Complete!
[thomas@dhcppc0 ~]$ cd desktop/fuse
[thomas@dhcppc0 fuse]$ ls -l
totalt 1464
-rw-r--r-- 1 thomas thomas 295634 4 feb 15:30 aclocal.m4
-rw-r--r-- 1 thomas thomas 60 2 feb 2006 AUTHORS
-rw-r--r-- 1 thomas thomas 74725 4 feb 14:46 ChangeLog
-rwxr-xr-x 1 thomas thomas 3707 4 feb 15:31 compile
-rwxr-xr-x 1 thomas thomas 44208 4 feb 15:31 config.guess
-rw-rw-r-- 1 thomas thomas 5392 4 mar 21:29 config.log
-rwxr-xr-x 1 thomas thomas 32448 4 feb 15:31 config.sub
-rwxr-xr-x 1 thomas thomas 406636 4 feb 15:30 configure
-rw-r--r-- 1 thomas thomas 2385 4 feb 01:10 configure.in
-rw-r--r-- 1 thomas thomas 17992 2 feb 2006 COPYING
-rw-r--r-- 1 thomas thomas 25283 2 feb 2006 COPYING.LIB
-rwxr-xr-x 1 thomas thomas 15936 4 feb 15:31 depcomp
drwxrwxr-x 2 thomas thomas 4096 4 feb 15:33 doc
drwxrwxr-x 2 thomas thomas 4096 4 feb 15:33 example
-rw-r--r-- 1 thomas thomas 15106 9 dec 19:51 FAQ
-rw-r--r-- 1 thomas thomas 50099 9 dec 19:51 Filesystems
-rw-r--r-- 1 thomas thomas 242 9 dec 19:52 fuse.pc.in
drwxrwxr-x 3 thomas thomas 4096 4 feb 15:33 include
-rw-r--r-- 1 thomas thomas 9498 4 feb 15:31 INSTALL
-rwxr-xr-x 1 thomas thomas 9233 4 feb 15:31 install-sh
drwxrwxr-x 2 thomas thomas 4096 4 feb 15:33 kernel
drwxrwxr-x 2 thomas thomas 4096 4 feb 15:33 lib
-rwxr-xr-x 1 thomas thomas 210656 26 dec 2005 ltmain.sh
-rw-r--r-- 1 thomas thomas 289 2 feb 2006 Makefile.am
-rw-r--r-- 1 thomas thomas 20321 4 feb 15:31 Makefile.in
-rwxr-xr-x 1 thomas thomas 11014 4 feb 15:31 missing
-rwxr-xr-x 1 thomas thomas 3474 4 feb 15:31 mkinstalldirs
-rw-r--r-- 1 thomas thomas 5613 9 dec 19:51 NEWS
-rw-r--r-- 1 thomas thomas 8297 9 dec 19:51 README
-rw-r--r-- 1 thomas thomas 790 9 dec 19:51 README.NFS
drwxrwxr-x 2 thomas thomas 4096 4 feb 15:33 util

[thomas@dhcppc0 fuse]$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

[thomas@dhcppc0 fuse]$ make
make: *** Ingen angivne mål og ingen makefil fundet. Stop.
[thomas@dhcppc0 fuse]$


The error that "make" gives roughly translated means "make: *** no specified target and no makefile found. Stop"."

gordan
5th March 2007, 11:00 PM
sorry i cant help u here...but when i put ./configure i got different output it goest like this:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
...and so on and on

so you problem would be here i gess ( its marked bold )
but i realy dont know so much about linux too but i know how to install fuse...and u did it all ok so i realy cant help sorry

lazerid
5th March 2007, 11:28 PM
damn... hope somebody else can...?

Seve
5th March 2007, 11:36 PM
Hello:
You are missing some key rpms such as gcc.
yum groupinstall "Development Tools" "Legacy Software Development"
with the quotes
and give it a whirl again and you should be good to go.

Seve

lazerid
6th March 2007, 05:37 PM
That install did it for the fuse part! :-)

Now Im trying to follow this guide: http://www.mjmwired.net/resources/mjm-fedora-fc6.html#ntfs
When I get to mounting it goes wrong:

[root@dhcppc0 media]# sudo mount /dev/hda1 /media/winxp -t ntfs-3g -r -o umask=0222
WARNING: Deficient FUSE kernel module detected. Some driver features are
not available (swap file on NTFS, boot from NTFS by LILO), and
unmount is not safe unless it's made sure the ntfs-3g process
naturally terminates after calling 'umount'. The safe FUSE kernel
driver is included in the official Linux kernels since version
2.6.20-rc1, or in the FUSE 2.6.0 or later software packages,
except the faulty FUSE version 2.6.2. Please see the next page
for more help: http://www.ntfs-3g.org/support.html#fuse26

[root@dhcppc0 media]#

However... if I try again it looks like it mountet something:

[root@dhcppc0 media]# sudo mount /dev/hda1 /media/winxp -t ntfs-3g -r -o umask=0222
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
FUSE mount point creation error: Ingen sådan fil eller filkatalog
Unmounting /dev/hda1 ()
[root@dhcppc0 media]#

If I look at the log this is what I see:

[root@dhcppc0 media]# grep fuse /var/log/messages
Mar 6 16:46:35 dhcppc0 kernel: fuse init (API version 7.7)
Mar 6 16:46:36 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 16:46:36 dhcppc0 kernel: audit(1173195996.046:6): avc: denied { mount } for pid=2474 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:05:09 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:05:09 dhcppc0 kernel: audit(1173197109.787:7): avc: denied { mount } for pid=12625 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:06:56 dhcppc0 kernel: fuse init (API version 7.7)
Mar 6 17:06:56 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:06:56 dhcppc0 kernel: audit(1173197216.546:6): avc: denied { mount } for pid=2472 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:08:10 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:08:10 dhcppc0 kernel: audit(1173197290.423:7): avc: denied { mount } for pid=3369 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:08:14 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:08:14 dhcppc0 kernel: audit(1173197294.367:8): avc: denied { mount } for pid=3373 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:08:24 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:08:24 dhcppc0 kernel: audit(1173197304.096:9): avc: denied { mount } for pid=3378 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:08:31 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:08:31 dhcppc0 kernel: audit(1173197311.042:10): avc: denied { mount } for pid=3382 comm="fusermount" name="/" dev=fuse ino=1 scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem
Mar 6 17:28:46 dhcppc0 kernel: fuse init (API version 7.7)
Mar 6 17:28:46 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
Mar 6 17:30:17 dhcppc0 kernel: SELinux: initialized (dev fuse, type fuse), not configured for labeling
[root@dhcppc0 media]#

Any suggestions?

phreak_or
8th March 2007, 08:51 PM
I think you should start your package installer, you should find it in the kmenu under the system menu, or somewhere around that, then you should search for packages that have c++ in them, (in the search field, type "c++" (without " ") and search, then select the ones that seem to have a direct connection with c++ like gcc and such, after installing them try to install fuse again...oh and by the way, if there is anyone out there that actually made ntfs read-write work in fc 6, please post your fstab and mtab, because i have no idea on how to make auto-mount work