LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-31-2004, 12:11 PM   #1
DiZASTiX
Member
 
Registered: Mar 2003
Location: Boston Area
Distribution: Ubuntu (Edgy)
Posts: 247

Rep: Reputation: 30
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
I am running gentoo linux.
 
Old 12-31-2004, 01:03 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
for ntfs u need to have that support
either compile ur kernel for that support
or visit
linux-ntfs.sourceforge.net

regards
 
Old 12-31-2004, 01:09 PM   #3
DiZASTiX
Member
 
Registered: Mar 2003
Location: Boston Area
Distribution: Ubuntu (Edgy)
Posts: 247

Original Poster
Rep: Reputation: 30
Quote:
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?

Last edited by DiZASTiX; 12-31-2004 at 01:12 PM.
 
Old 12-31-2004, 01:54 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
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

regards
 
Old 12-31-2004, 02:36 PM   #5
DiZASTiX
Member
 
Registered: Mar 2003
Location: Boston Area
Distribution: Ubuntu (Edgy)
Posts: 247

Original Poster
Rep: Reputation: 30
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?
 
Old 12-31-2004, 02:49 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 12-31-2004, 02:55 PM   #7
DiZASTiX
Member
 
Registered: Mar 2003
Location: Boston Area
Distribution: Ubuntu (Edgy)
Posts: 247

Original Poster
Rep: Reputation: 30
Quote:
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.

Last edited by DiZASTiX; 01-02-2005 at 12:11 PM.
 
Old 11-07-2006, 01:49 AM   #8
uqkobi
LQ Newbie
 
Registered: Mar 2005
Location: Australia
Distribution: Fedora
Posts: 1

Rep: Reputation: 0
or just use livna on FC

Just incase a fellow Fedora user reads this....

If you're using Fedora just use the yum livna repository rpm.livna.org

yum install kmod-ntfs
 
Old 12-18-2006, 02:31 AM   #9
brwyatt
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
New to linux (mostly)... gotta love yum!

I'm assuming I'll need to reboot?

Also, did it download the kernel source? ("Dependency Installed: kernel.x86_64 0:2.6.18-1.2849.fc6" looks like it did)

Thanx
 
Old 03-17-2008, 08:34 AM   #10
nadsab
Member
 
Registered: Mar 2004
Posts: 30

Rep: Reputation: 15
Can't mount a cdrw in Centos 5.1

Moved to new thread.

Last edited by nadsab; 03-17-2008 at 08:37 AM. Reason: Posted in wrong spot - moved post
 
Old 03-17-2008, 08:44 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 03-17-2008, 09:00 AM   #12
nadsab
Member
 
Registered: Mar 2004
Posts: 30

Rep: Reputation: 15
Hi jschiwal thanks (and Sorry) I posted in the wrong place, I moved my question to here: http://www.linuxquestions.org/questi...os-5.1-628666/
and am answering your question there right now...
 
Old 09-28-2008, 07:29 PM   #13
sudeshna
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
hii...

I'm using 2.6.18-1.2798.fc6

I used the following code:

[root@localhost ~]# mount -t ntfs /dev/hda1 /mnt/ntfs

it showed:
mount: unknown filesystem type 'ntfs'

as I have found out from forums that I need to install some kernel driver.

please anyone help me to find out the right kernel driver.I'm not geting it anywhere.
Please post the link from where to download.
 
  


Reply



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
Having problems mounting hd. (mount: you must specify the filesystem type) brynjarh Linux - Newbie 5 01-05-2011 01:45 AM
mount: unknown filesystem type 'NTFS' jnorcal Slackware 8 09-07-2005 06:18 PM
mount: unknown filesystem type 'ntfs' lowrida Linux - Newbie 3 08-01-2005 04:02 PM
Mount NTFS Windows Drive / Permission Problems allen_p Linux - Newbie 1 08-05-2004 09:16 PM
how to mount without the filesystem type mascon Linux - General 7 05-01-2004 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:52 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
Open Source Consulting | Domain Registration