LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-01-2003, 01:06 PM   #1
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Rep: Reputation: 0
Mounting an NTFS drive


Hi there. I'm a newbie to the whole linux game. I currently have a windows formatted NTFS drive running windows XP and a linux drive running redhat. I am trying to mount the NTFS drive in linux so i can access my data. i ran fdisk -l and the drive is called hda2. i tried the command mount /dev/hda2 and it didn't work. i was told "mount: can't find /dev/hda2 in /etc/fstab or /etc/mtab"

Any advice on how to deal with this would be greatly appreciated.

ps - a much smaller problem i have, when in the linux lab to run an a.out all i have to do is type a.out. on my computer i have to type ./a.out - how do i change it to be just a.out?

Thanks to anyone willing to help me out!
 
Old 11-01-2003, 01:22 PM   #2
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
Hi there... I would suggest to read this thread for the NTFS question, http://www.linuxquestions.org/questions/history/101687
you should try mount -t ntfs /dev/hda2 /mnt/xp <--- you have to create the xp dir. under /mnt before you do this.

I didn't understand the second question... but I think you should copy the command in /usr/bin or /usr/sbin but I'm not sure, maybe someone else could help you better.

Ginux

Last edited by Ginux; 11-01-2003 at 01:23 PM.
 
Old 11-01-2003, 01:38 PM   #3
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
ok, i tried that. it didn't like NTFS.

[root@eilbere eric]# mount -t ntfs /dev/hda2 /mnt/xp
mount: fs type ntfs not supported by kernel

i went to the link you supplied and tried d/l ing that patch and running it, but i was told that something went wrong and to check if i had proper permissions on the file. i don't know the ins and outs of how to update my kernel yet, i'm still a newbie.


ayn suggestions on how to deal with this one?

Last edited by e_cubed99; 11-01-2003 at 01:44 PM.
 
Old 11-01-2003, 01:41 PM   #4
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
Then try

modprobe ntfs

then the mount command, if that doesn't work then you should recompile the kernel with ntfs support.
 
Old 11-01-2003, 01:45 PM   #5
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
[root@eilbere eric]# modprobe ntfs
bash: modprobe: command not found


ummmm
 
Old 11-01-2003, 01:51 PM   #6
Ginux
Member
 
Registered: Oct 2003
Location: Montpellier, Milano
Distribution: RedHat
Posts: 81

Rep: Reputation: 15
Sorry....
Type /sbin/modprobe ntfs
if it responds
modprobe: Can't locate module ntfs
Then you'll have to recompile
 
Old 11-01-2003, 02:04 PM   #7
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
cannot find the module . . .

how do i re-compile and get that module?
 
Old 11-01-2003, 02:05 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
redhat doesn't support ntfs out of the box. You have to install a package. Get it here:
http://linux-ntfs.sourceforge.net/info/redhat.html
 
Old 11-01-2003, 02:06 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,061

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
If your running RH see this:
http://linux-ntfs.sourceforge.net/info/redhat.html

You will need to add a mountpoint and an entry in /etc/fstab for users to mount the drive. You should be able mount the drive when logged in as root:

mount -t ntfs /dev/hda2 /mnt/mount_point (You will need to create a mount point).
 
Old 11-01-2003, 02:24 PM   #10
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
ok, now it is mounted. that worked. but it tells me that i do not have permission to access it when i try to do so from the gui or the console. the folder has a circle with a line through it on the gui, and in the console i get told "bash: cd: xp: Permission denied"

I'm sorry that i'm not the quickest at this stuff, and thank you very much for helping me out here. I really appreciate it.

E_Cubed99

**edit **

when i log in as root in the terminal i can acces the files, but i cannot do so from the gui. is there a way i can modify the permissions from the console so i can view it in the gui? or is there a way to log in as root in the gui?

**end of edit**

Last edited by e_cubed99; 11-01-2003 at 02:34 PM.
 
Old 11-01-2003, 02:37 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,061

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
With the partition unmounted make sure its permissions are set for all. Add an entry to your /etc/fstab file. It will automatically mount on boot.

/dev/hda1 /mnt/windows ntfs users,umask=0222,auto,ro 0 0
 
Old 11-01-2003, 03:05 PM   #12
e_cubed99
LQ Newbie
 
Registered: Nov 2003
Location: Ohio, USA
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
THANK YOU VERY MUCH!!

It works! YAY!
 
  


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
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 07:23 PM
correctly mounting an NTFS drive industrai Linux - General 7 11-05-2003 10:59 AM
Mounting an NTFS hard drive harperonline Linux - General 2 03-12-2003 12:11 PM
Mounting a ntfs drive? mpooley Linux - Hardware 12 12-11-2002 01:32 AM
mounting ntfs(xp) drive elpresidente Linux - Hardware 7 07-01-2002 10:24 AM


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

Main Menu
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