LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 04-18-2008, 03:27 AM   #1
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Rep: Reputation: 0
how to use autofs to mount ntfs


I got a problem when i mounted ntfs using autofs.
I install ntfs-3g, and I can mount my partition using
"mount -t ntfs-eg /dev/sda5 /mnt -o ro ".
But I don't know why autofs can't mount.
I add this line "/misc/sda5 -fstype=ntfs-3g,ro :/dev/sda5" to auto.misc.
but it didn't work. Any idea? My system is Fedora Core 6.
 
Old 04-18-2008, 04:22 AM   #2
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
ntfs instead of ntfs-3g

Quote:
"/misc/sda5 -fstype=ntfs-3g,ro :/dev/sda5"
"ntfs-3g" is the name of the package and the kernel module, but not the filesystem type. Try using "ntfs" (or "vfat") for filesystem type, like:

Quote:
"/misc/sda5 -fstype=ntfs,ro :/dev/sda5"
Fedora HP webcam drivers

Last edited by marquardl; 05-01-2008 at 03:50 AM.
 
Old 04-19-2008, 10:56 AM   #3
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
It didn't work. I tried all filesystem types. I think the proplem is in autofs. Who can help me? Thank you.
 
Old 04-19-2008, 11:40 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
If the ntfs-3g package is installed, you need to create a mount point in the Linux file system to access it,then unmount it, then mount it manually with these commands as root:
Code:
mkdir /windows
umount /dev/sda5
mount -t ntfs-3g /dev/sda5 /windows
This will mount it in read/write mode.
If it mounted successfully and you can access the files on the ntfs partition through the /windows directory, you can then edit /etc/fstab file to mount it in read/write mode upon every re-boot. The simple instructions at the Ntfs-3g site work good.
 
Old 04-20-2008, 12:46 AM   #5
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I could mount ntfs using fstab. And I can get more information using man ntfs-3g. But I don't know why I can't use autofs to do it.
 
Old 04-20-2008, 02:43 AM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 129Reputation: 129
Edit /etc/auto.master:

/automount (this is the mount point) /etc/auto.misc

Edit or create /etc/auto.misc:

win -fstype=ntfs-3g :/dev/???

Make sure that this file is not executable:
chmod a-x /etc/auto.misc

Start the automount daemon:

/etc/init.d/autofs start (or whichever way daemons are started on your distro)

Check whether all is fine:

ps aux | grep autofs
 
Old 04-20-2008, 12:47 PM   #7
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Hi,jay73. Had you succeeded to do these?
My configure is listed here, anyone can give me some idea.
in /etc/auto.master
Quote:
/misc /etc/auto.misc
in /etc/auto.misc
Quote:
sda1 -fstype=ntfs-3g :/dev/sda1
[root@vincent ~]# ll /etc/auto.m*
-rw-r--r-- 1 root root 560 Apr 9 10:57 /etc/auto.master
-rw-r--r-- 1 root root 649 Apr 21 09:32 /etc/auto.misc

But it didn't work.

By the way, I'm really new here. What's distro?

Last edited by carlcs; 04-20-2008 at 12:53 PM.
 
Old 04-20-2008, 01:08 PM   #8
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 129Reputation: 129
A distro is short for "distribution", a bundle of software - a "brand" of Linux in a way. Ubuntu is a distro, Suse is one, Fedora another, etc.

Now, as for your /etc/auto.master, I see that you have defined "/misc" as your mount point. This implies that you also need to create a folder called misc (right under /). You will also need to create an sda1 folder inside misc.

And you need to make sure that the autofs daemon is started. If the daemon isn't running, then nothing obviously nothing autofs related is going to work.
 
Old 04-21-2008, 04:29 AM   #9
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I created all the directory it needed. /misc, /misc/sda1,etc.
and the daemon of autofs is automount, right?
the daemon did works when i execute `ps aux|grep auto`
Quote:
[root@vincent ~]# ps aux |grep auto
root 31012 0.0 0.1 7344 1264 ? Ssl 00:44 0:00 automount
root 31126 0.0 0.0 3884 688 pts/2 S+ 00:48 0:00 grep auto
But I can't enter "/misc/sda1". It print an error like this
Quote:
[root@vincent ~]# cd /misc/sda1
-bash: cd: /misc/sda1: No such file or directory
 
Old 04-21-2008, 09:48 AM   #10
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 129Reputation: 129
Did you create those folders as suggested? If you system can't find them, it seems very reasonable to expect that they simply do not exist.
 
Old 04-22-2008, 08:12 AM   #11
carlcs
LQ Newbie
 
Registered: Apr 2008
Posts: 14

Original Poster
Rep: Reputation: 0
I did. Is my system's problem?
Could any one help me?
 
  


Reply

Tags
autofs


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs doesn't mount my CD rwcooper Linux From Scratch 3 07-12-2007 07:44 PM
Performance: autofs versus mount registering Linux - Networking 2 04-20-2007 07:03 AM
using autofs to mount ext3 filesystem markcowley Linux - Software 5 07-17-2006 01:18 PM
autofs does not mount removable disk sohmc Linux - Software 0 08-27-2005 04:41 PM
how to mount fstab vs autofs rrich100 Red Hat 1 11-13-2003 11:46 PM


All times are GMT -5. The time now is 06:35 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