LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-12-2007, 07:31 PM   #1
sp149
Member
 
Registered: May 2007
Posts: 73

Rep: Reputation: 17
USB drive Read/Write - NTFS


2.6.9-42.ELsmp, i686, Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

a usb drive with a fat partition works fine, but my filesize is > 4GB
therefore after 4gb the copy terminates

can mount ntfs partitioned drive but only read only mode

searched and read about fuse and ntfs-3g
tried running configure for fuse , since it was giving errors
===
configure: error:
*** Please specify the location of the kernel source with
*** the '--with-kernel=SRCDIR' option
===

installed fuse rpm and did a modprobe fuse, can see it in lsmod

#rpm -qa | grep fuse
kernel-module-fuse-2.6.9-42.ELsmp-2.5.3-1.SL

when i try to run ./configure for ntfs-3g-1.1104
to the PKG_CONFIG_PATH environment variable
No package 'fuse' found
no
configure: error: FUSE >= 2.6.0 was not found. Either it's not fully installed (e.g. fuse, fuse-utils, libfuse, libfuse2, libfuse-dev, etc packages) or files from an old version are still present. See FUSE at http://fuse.sf.net/

Can anyone guide?
 
Old 11-12-2007, 08:47 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Not sure on that old of kernel as to what is available. Since fuse is installed which is referring to kmod which means kernel module rpm built just for that version of kernel. At that time the fuse is not 2.6 version in 2.6.9 kernel time frame is my guess. The new kernels have fuse as a module option for 2.6 kernels.

This is what i would do and still use the current kernel you have.
You need to install the kernel source which is why fuse build would not work. Since this looks like the default installed kernel from the CD you need to install the kernel-devel-2.6.9-42.ELsmp.rpm which is found on the CD It may differ a bit in name but looking for kernel-devel for the most part. Once you find it run this command as root to install it. ' rpm -ivh kernel-devel*.rpm '
Now once installed you can download the latest fuse source and build it and install. Then you can build the ntfs-3g source and install. Follow the install docs for both.

Now if you upgrade the kernel you will have to go through all this again because the fuse was built just for the old kernel. It will not work on the new kernel even if you copy the module from one to the other. Must be built per kernel basis.

What would be a better option is get to say 2.6.20 to 2.6.22 kernel level and if you find precompiled RPM file for that install that. I believe in most precompiled kernels in this level they have built fuse into them since it is now part of new kernels starting somewhere around 2.6.16 i think.

I would guess you have a service contract with Redhat for RHAS and not sure how they feel about newer kernels as far a service contracts go. To me who cares on that part.

Be warned on NTFS writing. It is not perfect. never mount an uncleanly unmounted ntfs partition. It gives you a choice to force mount it but don't do it. Let windows mount it and fix it before mounting under linux and ntfs-3g.

Now the kernel does have ntfs read as most default configured in the kernel rpm. The kernel does have ntfs write abilty which is completely different than ntfs-3g. Now the one in the kernel is even worst and can hose an ntfs partition in millsecods if something goes wrong. I have used it but never a problem just a warning on ntfs writing.

Brian

Last edited by Brian1; 11-12-2007 at 08:53 PM.
 
Old 11-13-2007, 02:11 PM   #3
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
First of all thanks a lot for such a detailed answer.I really appreciate it.

As per your instructions i've installed the rpm kernel-devel from the cd
# rpm -qa | grep kernel-devel
kernel-devel-2.6.9-42.EL

./configure still gives me the same error.

=== configuring in kernel (/usr/local/src/fuse-2.7.1/kernel)
configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking if FUSE is loaded as a module... no
checking if FUSE module is built into the kernel... no
checking if FUSE module is from official kernel... no
checking kernel source directory... Not found
configure: error:
*** Please specify the location of the kernel source with
*** the '--with-kernel=SRCDIR' option
configure: error: ./configure failed for kernel
===
 
Old 11-13-2007, 06:31 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Does seem odd the kernel is not said to be there. I don't know of a seperate rpm called kernel-headers-*****.rpm for it. I don't think you would need that if it exist. Have to give this some thought.
What is in /usr/src/kernels?

Brian
 
Old 11-14-2007, 01:01 PM   #5
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
as you mentioned, i tried ./configure --with-kernel=/usr/src/kernel....
It worked fine.
./configure for ntfs-3g also completed
(any step after this ? )

I plugged in the usb , its still mounting in read write mode.
The errors in /var/log/adm as below.

==
NTFS-fs error (device sda1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device sda1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows
NTFS volume version 3.1.
NTFS-fs error (device sda1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device sda1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows
NTFS volume version 3.1.
NTFS-fs error (device sda1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device sda1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows
NTFS driver 2.1.20 [Flags: R/W MODULE].
NTFS volume version 3.1.
NTFS-fs error (device sda1): ntfs_check_logfile(): The two restart pages in $LogFile do not match.
NTFS-fs error (device sda1): load_system_files(): Failed to load $LogFile. Mounting read-only. Mount in Windows
===
 
Old 11-14-2007, 01:44 PM   #6
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
I read ure earlier messages again, ad since the usb drive was empty, decided to go ahead with the "force " option. Although it gave warnings, the drive is not mounted with read/write permission.

Brain, Thankyou.

============
mount -t ntfs-3g /dev/sda1 /mnt/usb -o force
$LogFile indicates unclean shutdown (0, 1)
WARNING: Forced mount, reset $LogFile.
WARNING: Deficient Linux kernel 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'. If you wish this
message to disappear then you should upgrade to at least kernel
version 2.6.20, or request help from your distribution to fix
the kernel problem. The below web page has more information:
http://ntfs-3g.org/support.html#fuse26
============
 
Old 11-14-2007, 01:45 PM   #7
sp149
Member
 
Registered: May 2007
Posts: 73

Original Poster
Rep: Reputation: 17
Typed "not instead of now"

Conclusion--
Although it gave warnings, the drive is now mounted with read/write permission.
 
Old 11-14-2007, 05:11 PM   #8
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Glad to see you have it installed and working.

Brian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can we get a read/write ntfs driver in dsl linux usb stick edition? kachmi DamnSmallLinux 2 05-08-2007 04:35 AM
how can I automate my usb drive to be read/write abrand888 Debian 4 10-19-2006 07:58 PM
nagging problem --sharing USB drive with Windows for read/write 1kyle Suse/Novell 2 09-25-2005 04:35 AM
Cannot mount a USB drive as read/write. icheyne MEPIS 2 06-28-2005 02:48 AM
read & write USB pen drive?? wrangler Linux - Newbie 5 03-08-2005 04:11 PM


All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration