LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-20-2006, 07:57 PM   #1
tobiasw
Member
 
Registered: Oct 2006
Distribution: Fedora Core
Posts: 58

Rep: Reputation: 15
Mount ntfs file system


Hello,

im trying to mount a ntfs file system (windows 2003 installation). The partion is located in /dev/hda1 (in Logical Volume Management).

I tried the following command:

Code:
mount -t ntfs /dev/hda1 /home/user/mntfolder
As error message I get:

mount: unknown filesystem type 'ntfs'

I get the same error message without the -t option.


Thanks for help

Tobias
 
Old 10-20-2006, 08:32 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Your kernel doesn't have the ntfs file system support. You will have to load the ntfs driver as a module. First see if you have it.
Code:
find /lib/modules -name ntfs.ko
/lib/modules/2.6.16.21-0.25-default/kernel/fs/ntfs/ntfs.ko
/lib/modules/2.6.16.21-0.25-xen/kernel/fs/ntfs/ntfs.ko
/lib/modules/2.6.16.21-0.25-um/kernel/fs/ntfs/ntfs.ko
If you have the module then you can load it. Log on as root then use modprobe to load the module.
Code:
modprobe ntfs
If you don't get an error then it should be okay to use.
 
Old 10-20-2006, 08:47 PM   #3
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
hi

you said
Quote:
in Logical Volume Management
.

so logical partitions begins from /dev/hda5.

/dev/hda1 to /dev/hda4 are primary partitions.

it can help after loading the ntfs module
 
Old 10-20-2006, 11:50 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Actually, "...in Logical Volume Management" would mean the device is something more like "/dev/mapper/vg0-lv0" (for example). You would mount that device, not it's container physical volume, /dev/hda1. Once you've determined the correct device to mount, of course you would also need NTFS support loaded via a kernel module.

Why would you put an NTFS filesystem under LVM? LVM is Linux ... Windows knows nothing about it. I would expect to find Linux-native filesystems, not Windows ones. A Windows filesystem on LVM, while probably doable, would be pointless.

I'm wondering if when you say "Logical Volume Management" you might be talking about something else besides "Linux LVM"???
 
Old 10-21-2006, 09:26 AM   #5
tobiasw
Member
 
Registered: Oct 2006
Distribution: Fedora Core
Posts: 58

Original Poster
Rep: Reputation: 15
I installed now a kernel module for ntfs 2.6.18 for fedora 5, but afterwards when I checked with "cat /proc/filesystems" ntfs is still not listed. I downloaded from sf.net, and installed with rpm -iv modulename.rpm .

"Logical Volume Management" is just the name how Fedora 5 call the program to view the filesystem in the ide, so dont worry about that...

I also cannot find the module ntfs.ko. And with modprobe I just get the message ntfs module not found.
 
Old 10-21-2006, 12:50 PM   #6
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
hi agian

tobiasw: does the command
Quote:
find /lib/modules -name ntfs.ko
succed(is there ntfs module).if not so may be the ntfs is not supported by your kernel.

haertig:could you please more clarify what is LVM?what is it for ...?
because i though that he was talking about(Logical primary extended partition)
 
Old 10-21-2006, 03:12 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by adilturbo
could you please more clarify what is LVM?
Best would be to read the LVM HowTo:
http://tldp.org/HOWTO/LVM-HOWTO/

See "Chapter 2" for a brief description of what it is and what it does for you.

A "Logical Partition" (what you are talking about) is not the same thing as a "Logical Volume".

The O.P. said:
Quote:
"Logical Volume Management" is just the name how Fedora 5 call the program to view the filesystem in the ide, so dont worry about that...
I don't use Fedora, but I seem to remember that it uses LVM by default now. But that doesn't explain why an ntfs filesystem would be on LVM. If the O.P. would post the output of the commands "fdisk -l", and "mount" and "cat /etc/fstab" and "lvs" then we might have a better idea of how the system is configured.
 
Old 10-21-2006, 04:04 PM   #8
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
hi again

thank you for the link
 
Old 10-22-2006, 05:50 PM   #9
tobiasw
Member
 
Registered: Oct 2006
Distribution: Fedora Core
Posts: 58

Original Poster
Rep: Reputation: 15
Hi,

here is the out of fdisk, mount and fstab. Thanks for the help.


fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 20321 10241752+ 7 HPFS/NTFS
/dev/hda2 * 20322 41364 10605672 7 HPFS/NTFS
/dev/hda3 41365 155061 57303288 5 Extended
/dev/hda5 41365 58985 8880952+ 7 HPFS/NTFS
/dev/hda6 72526 95163 11409426+ 7 HPFS/NTFS
/dev/hda7 59001 59192 96358+ 83 Linux
/dev/hda8 95163 155056 30186103+ 8e Linux LVM

mount

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda7 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1873) on /net type autofs (rw,fd=4,pgrp=1873,minproto=2,maxproto=4)/dev/hdc on /media/driver type iso9660 (ro,noexec,nosuid,nodev,uid=0)

cat /etc/fstab


/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
 
Old 10-22-2006, 07:58 PM   #10
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
hi again

i think all of tthose(files or commands) do not provide an information about if ntfs is built or supported by your current kernel.
fdisk:information about your disks eventhough it recognized the ntfs.

fstab:the device and its mounted point that should be mounted automatically during the boot.

look for the ntfs if it is supported by your current kernel
 
Old 10-22-2006, 08:20 PM   #11
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by adilturbo
i think all of tthose(files or commands) do not provide an information about if ntfs is built or supported by your current kernel.
That is true. I was uncertain whether the O.P. had an ntfs filesystem on an LVM logical volume (which would have been weird, I grant you that). Apparently this isn't the case. SO back to the basic ntfs mounting problem.

What does the command lsmod | grep ntfs show? Anything? Or find /lib/modules -name "*ntfs*" -print, as adilturbo previously suggested? If the first command shows nothing, but the second command finds the ntfs.ko module, try depmod -a, then modprobe ntfs
 
  


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
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 04:27 AM
How to mount ntfs file system in linux computer rahulrawat Red Hat 9 01-13-2006 02:01 PM
How do I Mount a Windows NTFS file system explorer Linux - Networking 15 05-06-2004 09:01 PM
NTFS file system mount problems Fedora 2.4 jjisnow Linux - Newbie 2 03-23-2004 06:42 PM
mount the ntfs file system jdevanand Linux - General 3 01-22-2002 02:25 PM


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