LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 10-05-2003, 12:11 PM   #1
Belize
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
Mounting XP NTFS partition


Hi. I searched the forums and edited the example given to mount a NTFS partition to:
Quote:
/dev/hda1 /c ntfs auto,ro,umask=0222 0 0
but when the red hat 9 starts, I can see error mounting ntfs drive : "fs type umask=0222 not supported by kernel"
Tell me whats wrong please.
I have Windows XP C Drive on /dev/hda1 and I have already created the folder /c .
Thanks in advance
 
Old 10-05-2003, 12:20 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Get the RPM from:

http://linux-ntfs.sourceforge.net/info/redhat.html
 
Old 10-05-2003, 03:34 PM   #3
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
The driver from rpm listed is read-only support. It will let you mount but you cannot write to the ntfs partition. I don't recommend writing to ntfs under linux but it does work most of the time. I use this feature to fix XP problems faster than dealing with Windows expensive and very slow tools.

You can recompile the kernel and add NTFS support also. Look at the top of this forum on kernel recompile.

Then mount would be ' mount -t ntfs /dev/hda1 /c '

You can add ntfs to /etc/filesystems and will not have to add -t option to mount.

Hope this helps
Brian1
 
Old 10-05-2003, 06:05 PM   #4
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
I downloaded those rpm's but I have to copy the files somehow from my windows drive. I tried with floppy ( Im using a laptop, and its another device that is other from the laptop and is connected to the laptop with USB ) but it didnt work. Also my redhat doesnt detect my CD - I would even burn those files on a CD to make that work.

Also, I checked the recompiling thread but I first want to make my internet work, download the newest kernel, and then recompile.

I really need to make some connection between my linux and windows drives because I also need to copy some information to paste on those forums to make my wireless lan work... thats so complicated
 
Old 10-05-2003, 07:08 PM   #5
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
I agree with Brian1. I have a little intranet, and I mount my NTFS partition of a windows xp machine. So first thing is to recompile your kernel to support NTFS partition (read-only). Itīs dangerous to write on it. After that I mount it as follow:

mount -t ntfs -o ip:192.168.200.1 //C /mnt/ntfs

In your case you can use:

mount -t ntfs /dev/hdaX /C /mnt/ntfs (or the directory you have created for this purpose).

Itīs better than use the rpm package. Your kernel must support this. If not, neither a compiled module nor any package will run.

Greetings

Last edited by ilpadrino; 10-05-2003 at 07:12 PM.
 
Old 10-05-2003, 11:36 PM   #6
kbridger
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
I see lots of discussions regarding NTFS support in linux, and it is clear that the rpm mentioned above (http://linux-ntfs.sourceforge.net/info/redhat.html) is read-only support for NTFS. Is there a way to get read and write support? Will recompiling my kernel to have NTFS support give me write support?

If not, what is the limiting factor with the write support? I have seen that this has been the case for many years, what is holding them back?

Cheers,
Karl
 
Old 10-06-2003, 07:20 AM   #7
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
OK. If you recompile your kernel you can write in a NTFS partition. But in the actual stable kernels, this option is only experimental, so is a little bit risky. Most of times its works perfectly. And of course, you can read without any problems.

So my opinion the best option is to recompile your kernel to support this.

Greetings

Last edited by ilpadrino; 10-06-2003 at 07:21 AM.
 
Old 10-06-2003, 09:31 AM   #8
kbridger
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
Thanks ilpadrino,

You state that its experimental in "the actual stable kernels" does this mean that we can expect a stable kernel with non-experimental NTFS write support soon? What I am really asking here, is, are there non experimental versions in unstable kernels which are progressing towards becoming stable

Cheers,
Karl
 
Old 10-06-2003, 11:59 AM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Kbridger :

As I understand it, the 2nd NTFS driver (which was introduced in 2.5.11) has extremely limited write abilities. Basically you can overwrite existing files, but you can't add new or delete existing files succesfully (for a typical range of files).

The developers are trying but it is a hobby for many of them and Microsoft doesnt release any information which would fascilitate this process.
 
Old 10-06-2003, 02:40 PM   #10
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
That is OK. As you know NTFS is Micro$ property and it is closesource, so it is very difficult to know how it works, how is the file management, Micro$ doesnīt provide any information and every new driver version for linux is better, but incomplete at the moment.

The development project for this driver is at:

http://linux-ntfs.sourceforge.net/status.html

But you can be sure that new future kernel will able to write in NTFS partition without any problem.

Greetings

Last edited by ilpadrino; 10-06-2003 at 02:41 PM.
 
Old 10-07-2003, 05:43 AM   #11
mark_doherty
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Redhat 9.0
Posts: 2

Rep: Reputation: 0
I have dowloaded and installed the RPM but i get ...

modprobe: Can't locate module ntfs

even if I /sbin/depmod -a.

The help says ...
modprobe: Can't locate module ntfs (2)
Occasionally rpm goes wrong and doesn't install the kernel module. If this happens, you may have to install the kernel module manually.

* Download the correct kernel module - the .o file
...
Where is this .o file?

The RPM I used was kernel-ntfs-2.4.20-20.9.athlon.rpm
 
Old 10-07-2003, 11:33 AM   #12
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
For Mark_Doherty:

The file *.o is the binary file. So it is the result of compiling the source code written in C (files *.c and *.h) and it must be compiled using your libs version. For this reason, it is not a good idea to download the binary (*.o) because it could be compiled with another libs version.

So if you have installed the rpm package, you can find your *.o (ntfs.o) in "/lib/modules/2.4.x/kernel/fs/ntfs.o". If you have ntfs.o in that location, then you will try "modprobe ntfs.o". If you have some error message after that, then you have a wrong rpm package for your system, and you have to download a different version.

As I said before, the best option is to recompile your kernel, and enable ntfs support either as a module (then you compile it with your own libs) or built-in in the kernel (for me the best option).

Be lucky
Greetings
 
Old 10-10-2003, 04:27 PM   #13
mark_doherty
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Redhat 9.0
Posts: 2

Rep: Reputation: 0
My ntfs.o was located in the wrong directory. It was not in /lib/modules/2.4.20-20.9bigmem/kernel/fs but in /lib/modules/2.4.20-20.9/kernel/fs.
So that I understand, I presume that installing the RPM put this file there.
Why did it not put it in the correct place?

Originally I attempted, presumable successfully, to update the kernel from 2.4.20.20.8 for the purpose of seeing the ntfs disk.

my lilo.conf contains:
image=/boot/vmlinuz-2.4.20-20.9bigmem
label=linux
append="hdd=ide-scsi root=LABEL=/"
read-only
initrd=/boot/initrd-2.4.20-20.9bigmem.img
 
Old 10-12-2003, 07:39 PM   #14
DWEBD
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
small Question

yahabibi what means of RPM ????????

---------------------------------------
New linux User
---------------------------------------
 
Old 10-13-2003, 02:33 PM   #15
ilpadrino
Member
 
Registered: Oct 2003
Location: Spain
Distribution: Fedora
Posts: 104

Rep: Reputation: 15
Thumbs up

RPM (Red Hat Package Manager) is a special way of packing files.
It contains the binary files, so they have been yet compiled. So it is an easy way of installing packages, because only you have to do is to execute the rpm application (rpm -i name of package) and automatically install the binary files under /bin directory and the modules and libraries under the appropiate ones. It also check the dependencies and tell you if you need to install some other package before that installation. So I recommend you if you use Red Hat to download all the packages you can in rpm format. Check before download them to ensure that you get the right version (Red Hat version).

Greetings

Last edited by ilpadrino; 10-13-2003 at 02:34 PM.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting ntfs partition Gentleman_finn Linux - Newbie 14 07-25-2005 04:45 PM
ntfs partition mounting as rw ktekosi Slackware 4 06-07-2005 09:43 PM
mounting an NTFS partition greythorne Slackware 1 06-02-2004 02:02 AM
mounting ntfs partition ! shaahul Linux - Newbie 11 09-16-2003 06:06 AM
Mounting NTFS partition dark_light Linux - General 4 09-21-2002 12:39 AM


All times are GMT -5. The time now is 04:38 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