LinuxQuestions.org
Help answer threads with 0 replies.
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-29-2002, 07:52 PM   #1
tumnus
Member
 
Registered: Apr 2002
Location: La Jolla, CA
Distribution: Redhat 8.0
Posts: 60

Rep: Reputation: 15
ntfs?


can linux read from an ntfs partition whatsoever?
if so how would i do it?
im not planning on like using it or anything, i just want to grab some files from it to copy over to the linux patition

thanks in advance
 
Old 04-29-2002, 08:25 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
yes you can read from ntfs.. but its not very stable..
usually might require a recompile of the kernel to add support for it.
 
Old 04-29-2002, 11:08 PM   #3
tumnus
Member
 
Registered: Apr 2002
Location: La Jolla, CA
Distribution: Redhat 8.0
Posts: 60

Original Poster
Rep: Reputation: 15
so how would i do it?
 
Old 04-29-2002, 11:39 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
First, find out if you already have ntfs support in the kernel. This will probably work:

locate ntfs.o

Oh, if this is RedHat 7.2, no, you don't have it. They decided to be twerps with their last release.

Recompiling the kernel can be a headache. If you do have RH or Mandy, or even SuSe, you specifically had to choose the kernel source and headers, usually as a section called "Kernel Development" as part of your installation, otherwise you won't have the kernel source code and a compiler.

If you don't already have the module, read the kernel compiling HOW-to over at Linux-doc. If you do have it:

modprobe ntfs
mount -t ntfs -ro /dev/hda1 /mnt

This is assuming that windows partition is the first partition of the first hard drive. If it were the second partition: hda2, second drive: hdb1 You can figure the rest.

Cheers,

Finegan
 
Old 04-30-2002, 12:15 AM   #5
tumnus
Member
 
Registered: Apr 2002
Location: La Jolla, CA
Distribution: Redhat 8.0
Posts: 60

Original Poster
Rep: Reputation: 15
hmm
ok
so the command worked and it just replaced my whole /mnt with the ntfs partition
so now my 2 cdrom mounts and the floppy are gone
so what would i want to do to bring those back and possibly change the ntfs to mount into a folder instead?
 
Old 04-30-2002, 12:27 AM   #6
tumnus
Member
 
Registered: Apr 2002
Location: La Jolla, CA
Distribution: Redhat 8.0
Posts: 60

Original Poster
Rep: Reputation: 15
nevermind
i did a umount and fixed it all up
its all fine and dandy now
thanks :>
 
Old 04-30-2002, 12:40 AM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Sorry bout that, I gave you a quick and dirty mount point that I knew would be there but wouldn't make the system go kazoo. You might want to create a point like /mnt/win or somesuch. Also, even in read-only, its not a good idea to leave the NTFS partition mounted when you're done file swapping.

Cheers,

Finegan

Oh yeah... I had a point. What distro and release are you using so I can add it to my mental list of ones that are ntfs ready?

Last edited by finegan; 04-30-2002 at 12:41 AM.
 
Old 05-01-2002, 01:30 PM   #8
tumnus
Member
 
Registered: Apr 2002
Location: La Jolla, CA
Distribution: Redhat 8.0
Posts: 60

Original Poster
Rep: Reputation: 15
i am using mandrake linux 8.2
and i did not even have to do any config in the setup or anything, it just came ntfs ready when i installed it
 
Old 05-01-2002, 05:31 PM   #9
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Rockin'

Slackware and Debian both have it pre-compiled, but RedHat stopped with 7.2 for some reason, which I assumed to be that they were worried about people trashing their ntfs partitions and blaming RH. Its good to see that Mandrake still has some cahones about this. Now all I'm left to wonder about is SuSe.

Thanks,

Finegan
 
Old 05-24-2002, 06:55 PM   #10
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 15
loading ntfs module

Quote:
Originally posted by finegan
First, find out if you already have ntfs support in the kernel. This will probably work:

locate ntfs.o

If you do have it:

modprobe ntfs
mount -t ntfs -ro /dev/hda1 /mnt
[
Hey Finegan, How would I load the module? I have it, but its gzipped, as well as being in my 2.4.18 source. I'm not very good with modules, so how would I load it? modules.conf right? If so, what's the syntax? BTW, I'm running MD 8.1 with 2.4.8-26mdk kernel.

Thanks,

icy

Last edited by icyfire; 05-24-2002 at 06:58 PM.
 
Old 05-27-2002, 02:13 PM   #11
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
It became a convention for a while for all of the kernel modules to be gzipped as a space saving solution, I think so that ISOs could be kept down to size. Regardless, just ignore the fact they're g'zipped, it won't change anything. You just modprobe the module like normal and then mount the drive, just like with those commands from above. If you're wanting to put the ntfs load in modules.conf, I assume you are wanting to have the drive mounted somewhere on boot.

Always having an ntfs mount, even read-only, can lead to memory leaks, corrupted filesystems, bad acne, ear infections, and as always... birth defects, so you've been warned. Its always much safer to mount the drive, copy what you want to copy or read what you want to read, and then unmount it. NTFS support is getting better, but seeing as how MS doesn't exactly publish how the filesystem works, the poor Linux geeks who write the drivers have to figure it out largely on guesswork and bad coffee. If you want it up from boot, you're going to have to change a file called /etc/fstab, and add the line (or something similar):

/dev/hda1 /win ntfs ro,auto,user,umask=022 0 0

This is assuming that the ntfs drive is /dev/hda1 and that you are going to mount the drive on a directory called /win. On boot the kernel module autoloader should pull ntfs.o for the job.

Luck,

Finegan
 
Old 05-27-2002, 04:16 PM   #12
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 15
Well, I have a slight problem. When I modprobe the module, even if it isn't gzipped, it says it cannot find the module, when infact it is in the same directory. What can I do to fix this, and what's the problem? Thanks Finegan.

icy
 
Old 05-27-2002, 04:35 PM   #13
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Okay, just to make certain, you have a file called:

/lib/modules/2.4.8-26mdk/kernel/fs/ntfs/ntfs.o.gz

and you try to modprobe it with:

modprobe ntfs (don't add the .o or .o.gz)

And it says module not found?

If that's exactly it, I'm a little stumped. Modprobe could be bugging. You could try "insmod" instead, which is more or less a slightly less gentle version of modprobe, but its there, it should at least try.

Luck,

Finegan
 
Old 05-28-2002, 12:09 PM   #14
icyfire
Member
 
Registered: Feb 2002
Location: Bay Area, California
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 15
perhaps its because i added the o. sorry bout that.

however, i will try it after i get a new hard drive. I'm stuck in m$ for a while since its on a separate drive, and my linux drive is making pretty noises; it also won't boot. It locks up on startup, and I'm going to try it with a new drive.

thanks Finegan,

icy
 
  


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
Copy files from NTFS to NTFS ThaHackBoy Linux - Hardware 2 05-21-2005 07:36 PM
Writing to an NTFS volume using captive-ntfs (repairing boot.ini) macskeeball Linux - General 3 02-06-2005 10:28 PM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 04:13 PM
Ntfs whkoh Debian 2 06-25-2004 02:12 PM
Captive NTFS -- full r/w ntfs access for Linux spurious Linux - Software 6 01-09-2004 01:29 AM


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