Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 11-21-2006, 07:05 PM   #1
LQ Newbie
Registered: Nov 2006
Location: Bangalore, India
Distribution: Fedora Core 6,
Posts: 2

Rep: Reputation: 0
How to automount windows drives in FC6?

Hi all,
I have installed FC6 in my PC along with winxp. I want to share my windows drives. The drives are D drive(hda5) and E drive(hda6).

It works fine if I try the regular mount command as:
mkdir /mnt/WinXP_D
mount -t vfat /dev/hda5 /mnt/WinXP_D

..and similar code for WinXP_E with hda6
But as you would all agree to mount this way each time you login is a pain in the ass. So I tried automounting by editing the /etc/fstab as:
/mnt/WinXP_D /dev/hda5 vfat rw,auto,user,sync 0 0
/mnt/WinXP_E /dev/hda6 vfat rw,auto,user,sync 0 0
But its giving error msgs as WinXP_D(and E) is not a block device,.. is write-protected,..cannot mount... in the second line trying to mount as read-only and then cannot mount as read-only also. I could not write down the exact sentences as the screen changes very fast.

What could be wrong? I had tried similar thing in RH8 and it had worked?

Kindly guide.
Old 11-21-2006, 07:33 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986Reputation: 1986
Change the auto line to noauto, then fstab will not attempt to mount it automatically at boot. That way you can try doing it manually from a terminal and you can see the output messages. When there's an entry in fstab, mounting is as simple as typing 'mount /dev/hd5' or 'mount /mnt/WinXP_D'. Once you've diagnosed the problem you can put it back.

(Edit after reading again) D'oh! I just noticed your problem. You have the device and mount point options reversed. /dev/hda5 should come first.

Finally, FAT drives usually should have a few extra options such as umask for setting the permissions level and uid/gid for setting the user and group. Read the vfat section in 'man mount' for more, and/or do a search of the site.

Last edited by David the H.; 11-21-2006 at 07:37 PM.
Old 11-21-2006, 07:58 PM   #3
Senior Member
Registered: Mar 2006
Location: India
Distribution: Fedora
Posts: 1,562
Blog Entries: 3

Rep: Reputation: 61
It should read
/dev/hda5 /mnt/WinXP_D vfat rw,auto,user,umask=0000,sync 0 0
/dev/hda6 /mnt/WinXP_E vfat rw,auto,user,umask=0000,sync 0 0
Old 11-24-2006, 06:13 AM   #4
LQ Newbie
Registered: Nov 2006
Location: Bangalore, India
Distribution: Fedora Core 6,
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks David and Shrikant. I implemented your suggestion. The problem is solved.
Thanks again.


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
FC6 automount issues chidorex Fedora 8 05-08-2007 11:52 AM
FC5->FC6: hard drives VERY slow!? Thoddy Fedora 15 01-05-2007 03:08 AM
Optical drives don't automount in Slack 10.1 thorney Linux - Newbie 1 08-06-2005 09:26 AM
Automount in LE 2005 cannot access cdrom drives grimlaur Mandriva 6 05-28-2005 07:32 PM
automount cdrom and pen drives mokojin Slackware 3 10-31-2004 03:56 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration