LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mount ntfs file system (https://www.linuxquestions.org/questions/linux-general-1/mount-ntfs-file-system-494248/)

tobiasw 10-20-2006 06:57 PM

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

stress_junkie 10-20-2006 07:32 PM

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.

adilturbo 10-20-2006 07:47 PM

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

haertig 10-20-2006 10:50 PM

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"???

tobiasw 10-21-2006 08:26 AM

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.

adilturbo 10-21-2006 11:50 AM

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)

haertig 10-21-2006 02:12 PM

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.

adilturbo 10-21-2006 03:04 PM

hi again

thank you for the link

tobiasw 10-22-2006 04:50 PM

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

adilturbo 10-22-2006 06:58 PM

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

haertig 10-22-2006 07:20 PM

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


All times are GMT -5. The time now is 06:35 PM.