LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2004, 07:10 PM   #1
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Rep: Reputation: 30
How to automatically mount Windows partition?


Hi there,

I was wondering how I can get the Windows partition to mount itself automatically so that when I double-click /mnt/c in Nautilus, my Windows drive shows up.

Right now I have to go into a terminal and manually type "mount /dev/hda1 /mnt/c" everytime I need to use it.

Is there some line I need to add to my /etc/fstab file?

I'm using Fedora Core 2 by the way.

Thanks,
Vince
 
Old 05-20-2004, 08:20 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
This should do the trick, presuming that it is a FAT32 partition and not an NTFS partition.
Code:
/dev/hda1 /mnt/c auto defaults 0 0
<edit>Just forgot - that line should go in your fstab file, which you need to edit as root.</edit>

Last edited by Thymox; 05-20-2004 at 08:24 PM.
 
Old 05-21-2004, 01:52 PM   #3
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Original Poster
Rep: Reputation: 30
Thanks. What does "auto", "defaults", and "0 0" mean?
 
Old 05-23-2004, 12:58 AM   #4
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Original Poster
Rep: Reputation: 30
Thanks, but only root can write to the partition. What do I change in fstab to make it writable to all users?
 
Old 05-23-2004, 02:17 AM   #5
tc_sf
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
In order for users to have read/write access, change the line in fstab to:

/dev/hda1 /mnt/c vfat noauto,user 0 0

'noauto' ensures that /mnt/c does not get mounted during mount -a (which is what is issued at boot). 'user' allows a user to mount the directory, allowing read/write for the user (assuming fat32 and not ntfs).

Hope this helps.
 
Old 05-24-2004, 03:27 PM   #6
vincebs
Member
 
Registered: Oct 2003
Location: Mississauga, ON
Distribution: Ubuntu 9.04
Posts: 494

Original Poster
Rep: Reputation: 30
Thanks. But why would I not want "/mnt/c" to be mounted at boot time?
 
Old 05-24-2004, 04:14 PM   #7
tc_sf
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
The mount that is issued at boot (mount -a), will mount all in fstab unless noauto is present. Given that you want a user to have rw access to /mnt/c, you need to mount the partition as the user, instead of root.
 
Old 05-24-2004, 09:31 PM   #8
z_darius
LQ Newbie
 
Registered: Nov 2003
Location: Canada
Distribution: Mandrake, e-smith
Posts: 27

Rep: Reputation: 15
why don't you use webmin for that. Just enter a valid windows user in the "owned ny" field when defining your mount points (and of course other parameters which are pretty self explanatory)
 
Old 05-26-2004, 05:27 AM   #9
anilmpg
LQ Newbie
 
Registered: Jan 2003
Location: Bangalore, INDIA
Posts: 2

Rep: Reputation: 0
How to mount NTFS partition using fstab

Hi

I am a newbie to linux. I am not able to mount mount windows partition with ntfs on my Linux partition. I downloaded the kernal-ntfs. I can mount
using mount /dea/hda /win.

Sometime if I use
/dev/hda5 /Win ntfs noauto,owner,kudzu 0 0

Then its not updating. rather it deletes /win dir on / and the command wont be there in fstab file

Or pls suggest me the correct command to be added to fstab

Thanx in advance

Anil

 
Old 06-04-2004, 05:36 AM   #10
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Quote:
Originally posted by tc_sf
In order for users to have read/write access, change the line in fstab to:

/dev/hda1 /mnt/c vfat noauto,user 0 0

'noauto' ensures that /mnt/c does not get mounted during mount -a (which is what is issued at boot). 'user' allows a user to mount the directory, allowing read/write for the user (assuming fat32 and not ntfs).

Hope this helps.
Is it possible to auto mount the fat partition on boot for both root and user to read/write?

btw, what must I do 1st before I can read NTFS in linux?

Last edited by subaruwrx; 06-04-2004 at 05:38 AM.
 
Old 06-04-2004, 09:45 AM   #11
OneManArmy
Member
 
Registered: Apr 2004
Location: Motherboard
Distribution: Debian GNU/Linux
Posts: 156

Rep: Reputation: 30
Here is my fstab entry for mounting NTFS:
------------------------------------------------------
/dev/hda1 /mnt/c ntfs defaults,user,ro,umask=002,gid=100,auto 0 0

Hope this helps.
 
  


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
Automatically mount Windows partition with full access? Josh1billion Linux - Newbie 6 10-02-2005 12:41 AM
Unable to mount FAT32 partition automatically alaskazimm Linux - General 4 08-24-2005 07:19 PM
windows share automatically mount on linux box emailssent Linux - Networking 11 11-01-2004 03:02 AM
Kernel 2.6.7 problem - My vfat partition won't mount automatically !! gibiman Linux - General 4 08-11-2004 07:18 AM
How to automatically mount ntfs partition? Duukkis Linux - Software 3 06-25-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration