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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-18-2008, 03:27 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Rep:
|
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.
|
|
|
|
04-18-2008, 04:22 AM
|
#2
|
|
Member
Registered: Apr 2008
Posts: 100
Rep:
|
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.
|
|
|
|
04-19-2008, 10:56 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Original Poster
Rep:
|
It didn't work. I tried all filesystem types. I think the proplem is in autofs. Who can help me? Thank you.
|
|
|
|
04-19-2008, 11:40 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
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.
|
|
|
|
04-20-2008, 12:46 AM
|
#5
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
|
04-20-2008, 02:43 AM
|
#6
|
|
Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
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
|
|
|
|
04-20-2008, 12:47 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Original Poster
Rep:
|
Hi,jay73. Had you succeeded to do these?
My configure is listed here, anyone can give me some idea.
in /etc/auto.master
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.
|
|
|
|
04-20-2008, 01:08 PM
|
#8
|
|
Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
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.
|
|
|
|
04-21-2008, 04:29 AM
|
#9
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Original Poster
Rep:
|
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
|
|
|
|
|
04-21-2008, 09:48 AM
|
#10
|
|
Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
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.
|
|
|
|
04-22-2008, 08:12 AM
|
#11
|
|
LQ Newbie
Registered: Apr 2008
Posts: 14
Original Poster
Rep:
|
I did. Is my system's problem?
Could any one help me?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:32 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|