LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-14-2008, 01:19 PM   #1
LinczO_Dz
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Rep: Reputation: 0
Wink How to mount NTFS to linux without compiling kernel?


As the subject, I'm a rookie in linux,I want to mount my mobile HD to my linux ,kernel edition is 2.4.20-8.
any help would be appreciated
 
Old 04-14-2008, 02:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,932

Rep: Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691
Try:

mount -t ntfs <device name of NTFS drive> <mount point>

such as:

mount -t ntfs /dev/hda1 /mnt/external

The /mnt/external can be any directory you choose, but I'd suggest making an empty directory just for that drive, so you don't step on anything else.

If that doesn't work, cat /proc/filesystems, and make sure that NTFS is supported in your kernel. You can normally mount NTFS file systems read-only, but there are modules (some kernels include them lately), that will let you mount it read-write just fine.
 
Old 04-14-2008, 02:36 PM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Actually if the kernel supports ntfs (read-only or read-write), you don't need to specify '-t ntfs' while mounting; if it's supported, it ought to be detected automatically anyway. So basically if the command fails, your kernel probably does not support ntfs filesystem; this could be the case with 2.4 kernels, but I'm not sure. In that case your options are to compile a newer kernel with the support added, or if your distribution has a package manager that can do it, upgrade the kernel that way (if available).

Last edited by b0uncer; 04-14-2008 at 02:41 PM.
 
Old 04-14-2008, 03:28 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
What distro and version are you running?
 
Old 04-14-2008, 10:42 PM   #5
LinczO_Dz
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your help. Problem has been settled by installing a rpm packet named kernel-ntfs-2.4.20-8.i686.rpm which maybe added the ntfs module to the kernel.

But while I cp a big file(enterprise3-rh73.craff,which's used in simics as a image file 640M),it take me damnable long time.
finally I can't stand and ctrl+c to kill it . as result I found the file just takes 300M in my linux.I don't know if it really takes long time to cp. Or due to my wrong act manipulation.

thanks.

Last edited by LinczO_Dz; 04-14-2008 at 10:44 PM.
 
Old 04-14-2008, 11:22 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
From the look of that rpm, you are running RH7.3. I know support for RH9 was dropped in 2004 so I would assume support for RH7 was dropped years before that. Do yourself (and the rest of us) a big favor and update to a supported version. A lot of stuff will just work out of the box. You will also have much greater capability as well as a vastly larger pool of support. RH started counting again after RH9. They are currently on RHEL5.1(Red Hat Enterprise Linux). RH now charges for support and updates, but Centos is RHEL with the logos removed. Centos is free to download and has a five year support life (free update downloads). With the exception of the logo specific stuff Centos builds their stuff off of RH's source code. This means that it is 99% binary compatible with RHEL but it also means updates lag about two days behind RH.

Last edited by lazlow; 04-14-2008 at 11:23 PM.
 
Old 04-15-2008, 01:14 AM   #7
LinczO_Dz
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for your help!

Actually,I use linux9,but I could only download enterprise3-rh73.craff . I don't even have any idea whether it works in linux9.

Fine,the second problem has also been solved.
Now the cp has been processing for almost 2 hours(damned). But finally I succeed in cping it completely(640M). So I think it does need time.

But does it really need so much time?? Is there and way to improve it?
PS Is there any schedule bar(or tips) while cping? Cauze it seems no ending and doesn't know it takes how much time.

thank you.

Last edited by LinczO_Dz; 04-15-2008 at 01:15 AM.
 
Old 04-15-2008, 02:56 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Do you mean you are using RedHat 9?
 
Old 04-29-2008, 10:58 PM   #9
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by b0uncer View Post
Actually if the kernel supports ntfs (read-only or read-write), you don't need to specify '-t ntfs' while mounting; if it's supported, it ought to be detected automatically anyway.
Doesn't seem like they can write to compressed NTFS even when mounted R/W. I'll double-check (have a blank drive and an XP machine, so I'll reformat it uncompressed.)
ta0kira

Edit: It appears the 2.6 NTFS driver can only modify existing file data and can't create, delete, or change the size of files.

Edit2: Linux-NTFS works quite well. My system already had it installed, but it didn't work so I downloaded the current version and built it from source.

Last edited by ta0kira; 04-30-2008 at 12:02 AM.
 
Old 04-30-2008, 01:22 AM   #10
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Linux 2.4 has NTFS read support

The Linux 2.4.3X kernel has NTFS read only file system support. I have been compiling those kernels lately, and one of the configuration options is for NTFS support.

1) Can the latest kernel also Write to NTFS file systems? Can it create files on NTFS file systems?

2) Does Windows Vista have a newer NTFS file system that the newer Linux kernel can not Read and Write?

____________________________________
I gave Linux a try because of M$crosoft. My M$crosoft ME started to huff and puff and told me to get Vista. I tried to recompile my M$crosoft ME, but I did not know where to start. Now, I have been compiling Linux. It compiles. I just got to get it to boot.
 
Old 04-30-2008, 04:46 AM   #11
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I have Linux 2.6.21.5 and it can write to existing areas of existing files, but it cannot change their sizes, or create/delete directories and files. Linux-NTFS does all of that, though, and takes less than 30 minutes to get it running. The site says it can even create NTFS file systems, but I haven't tried that.
ta0kira

Last edited by ta0kira; 04-30-2008 at 04:50 AM.
 
Old 04-30-2008, 09:14 PM   #12
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
Question read and write NTFS?

"Linux-NTFS does all of that"

I read something about the NTFS on the web, and found that NTFS has Compressed files and Encrypted files.

1) Does it read Compressed NTFS files?
2) Does it read Compressed NTFS directories?
3) Does it read M$icrosoft encrypted NTFS files?
__________________
I gave Linux a try because of M$crosoft. My M$crosoft ME started to huff and puff and told me to get Vista. I tried to recompile my M$crosoft ME, but I did not know where to start. Now, I have been compiling Linux. It compiles. I just got to get it to boot.
 
Old 04-30-2008, 11:35 PM   #13
uncle_philip
Member
 
Registered: Apr 2008
Location: sydney
Distribution: centos5.2
Posts: 50

Rep: Reputation: 15
check the dmesg, to see if the ext. hd is detected.
if yes, you can install ntfs-3g, this one will mount the device for you.
 
Old 05-01-2008, 02:13 PM   #14
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by newtovanilla View Post
1) Does it read Compressed NTFS files?
2) Does it read Compressed NTFS directories?
3) Does it read M$icrosoft encrypted NTFS files?
Probably not, but I'd have to check it's homepage to be sure...
ta0kira
 
  


Reply

Tags
ntfs


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
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
mount:fs NTFS not supported by kernel joker20 Slackware 10 04-19-2005 01:57 PM
NTFS won't mount on 2.4 kernel ajbrouwe Slackware 10 08-15-2004 10:36 PM
NTFS mount problems w/ Kernel 2.6.3 k0rupt Fedora 3 04-18-2004 12:53 AM
Compiling RH kernel for NTFS support Nelleh Linux - Newbie 6 04-19-2002 06:07 AM


All times are GMT -5. The time now is 01:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration