mount: unknown filesystem type 'ntfs' when trying to mount windows drive...
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mount: unknown filesystem type 'ntfs' when trying to mount windows drive...
I get this error when I try to mount my Windows XP drive:
Code:
# mount /dev/hda1 /mnt/win
mount: unknown filesystem type 'ntfs'
Here is my /etc/fstab:
Code:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb2 /boot ext2 deafaults,noatime 1 2
/dev/hdb3 / reiserfs noatime 0 1
/dev/hdb5 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
/dev/hda1 /mnt/win auto ro,user 1 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
Originally posted by masand for ntfs u need to have that support
either compile ur kernel for that support
or visit
linux-ntfs.sourceforge.net
regards
ok, I figured out it wasn't in my kernel. Can I just add it as built in and do a make modules && make modules_install or do I have to recompile the whole kernel?
Originally posted by DiZASTiX ok, I figured out it wasn't in my kernel. Can I just add it as built in and do a make modules && make modules_install or do I have to recompile the whole kernel?
i have mentioned it quite clearly in my post
either comple ur kernel or
visit that site
linux-ntfs.sourceforge.net
Ok, following this page I rebuilt the kernel with ntfs support. I then looked in /proc/filesystems but ntfs was not listed (I included it in the kernel, not as a module). I still get the same error when trying to mount (mount: unknown filesystem type 'ntfs')...did I do something wrong?
Originally posted by masand did u rebult ur kernel or got urself a prebuilt .obj file from the site??
and i f u built ur kernel are u sure u built it correctly
regards
I rebuilt it myself. I am using kernel 2.6.9:
- cd /usr/src/linux
- make menuconfig (include ntfs support)
- make && make modules_install
- cp bzImage to /boot
- reboot
EDIT: I added it as a module instead of built in, did make modules && modules_install, loaded the module and it works! Thanks.
The /etc/fstab file isn't a bash script. It is a table of devices, mount points, filesystems and options.
Look at "man fstab".
Does the "disc" already have data on it? It needs a filesystem before it can be mounted.
If the cdrom drive is /dev/sr0 and you have a mount point /mnt/cdrom available, this command will mount the disc's filesystem:
sudo mount -t iso9660 /dev/sr0 /mnt/cdrom -o ro,unhide
The most recent distros use hal & udev that automatically create a device node and a mount point after you insert a disc. Then you get a popup on what you want to do.
If it is a blank disc, then you need to burn it using a program, such as K3b.
If it is an audio disc, you can't mount it because it doesn't have a filesystem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.