LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-01-2003, 11:21 PM   #1
sirdilznik
LQ Newbie
 
Registered: Dec 2003
Location: Vernon, Ct. USA
Distribution: Gentoo x86_64
Posts: 15

Rep: Reputation: 0
Can I mount a NTFS partition ?


Hi, I'm new to Linux (though not new to computers) and am trying to mount all my drives. I have an NTFS partition on /dev/hda running Windows XP. I modified my /etc/fstab, but when I try to mount it I get an error message stating that type of partition is not supported by the kernel. Also my cdrom/cd-rw mounts just fine, but how do I get my DVD-Rom to mount ? Any hep is most appreciated. THANX
 
Old 12-02-2003, 01:00 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You will need to load the ntfs module if it exists.

depmod -ae
modprobe ntfs


If you don't have it then you will need the kernel-source for your running kernel so you can build the module and then load it.
 
Old 12-02-2003, 01:00 AM   #3
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Couple of things to check. I'd start by looking at the kernel configuration file. If it's a distro installed kernel, then you should have a copy of it in /boot. It will be named something like config-ide-2.4.22, probably. Look for the "CONFIG_NTFS_FS" directive. It will be CONFIG_NTFS_FS=m if it was included as a module,CONFIG_NTFS_FS=y if it was compiled into the kernel, or "# CONFIG_NTFS_FS is not set", if it wasn't included at all. If the last one is your case, then you'll need to recompile your kernel to include it. If it is included as a module, then typing "modprobe ntfs" as root at a bash prompt should load it and you can then mount the partition. If it was compiled in, then you should be to just mount it in fstab with something like this:

Quote:
/dev/hda1 /winxp ntfs umask=000,defaults 1 0
/winxp being wherever you want it mounted at. To mount it manually, you could use something like this:

mount -t ntfs /dev/hda1 /winxp

Also, make sure you have located the correct partition, you can use fdisk to ID it with this:

fdisk -l /dev/hda

That will show you the info about all paritions on /dev/hda


I mount CDs in my DVD-ROM drive same as above, just a different type:

mount -t iso9660 /dev/hdc /mnt/dvdrom

But you'll need to look at /var/log/syslog or /var/log/messages to find out where it is placing the drive. Not 100% certain about the type with an actual DVD, as I've yet to mount one. But "man mount" lists all supported types.

Good luck

Last edited by DaHammer; 12-02-2003 at 01:03 AM.
 
Old 12-02-2003, 02:58 AM   #4
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Beware that Linux ntfs support is only safe as read only, don't try writing to a valuable ntfs partition.
 
Old 12-02-2003, 09:24 AM   #5
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
also remember that when you want to mount something the directory you want to mount it to needs to be created first

as root do
mkdir /winxp (or whatever)
then do
mount -t ntfs /dev/hda1 /winxp
 
Old 12-02-2003, 12:10 PM   #6
lujan
Member
 
Registered: Sep 2003
Distribution: Ubuntu, Debian Sarge, Mac OS X, FreeBSD
Posts: 45

Rep: Reputation: 16
http://www.jankratochvil.net/project/captive/

This was on Slashdot this morning, I haven't used it yet, but I am going to check it out tonight.

Full rw access using the real ntfs.sys driver
 
Old 12-02-2003, 03:44 PM   #7
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
fdisk -l /dev/hda shows my NTFS as hidden, can I still mount it?
 
Old 12-02-2003, 09:04 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
put nohide in the fstab options for the device
 
Old 12-02-2003, 09:25 PM   #9
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
re lujan's post, reactos/wine is not infallible so I would still be worried about the integrity of the ntfs partition.
 
Old 12-03-2003, 01:40 AM   #10
sirdilznik
LQ Newbie
 
Registered: Dec 2003
Location: Vernon, Ct. USA
Distribution: Gentoo x86_64
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Hi folks,
I just want to say that I have solved my mounting problems. I now have all my devices mounted properly. While no single post solved all my problems, they all helped and I appreciate all the help and how quickly it arrived. I'm not completely sure what was the problem exactly, but I think it stemmed from my messing with /etc/lilo.conf and make menuconfig. I rebooted from my installation cd, didn't format any partitions or install anything new, but reconfigured my system and reformatted my boot/lilo floppy and installed a fresh lilo on it. Lo and behold everything works perfectly now(as far as mounted partitions,cdroms, and dvdroms go).

my entry for ntfs in etc/fstab reads as follows:

/dev/hda1 /mnt/win ntfs defaults,no auto 0 0

Thanx for all the help now to get my sound working.... i'll start a new thread for that :P
 
Old 12-03-2003, 05:26 AM   #11
8nasmith
Member
 
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30
did you do this on a NTFS partition?

if so have you got any problems?
 
  


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
mount ntfs partition alaios Linux - General 2 09-09-2005 10:35 AM
How can I mount a NTFS partition? LegendBreath Fedora 1 06-05-2005 11:02 AM
How do you mount an NTFS partition? karaite SUSE / openSUSE 5 11-01-2004 12:18 PM
cannot mount partition (says it's NTFS but it's not!) d33pdream Linux - General 5 02-22-2003 09:46 PM
Mount an NTFS Partition? oostevo Linux - General 3 11-23-2001 06:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:56 AM.

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