LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2005, 11:16 PM   #1
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Rep: Reputation: 15
Automatically mount, who can help me?


When I installed the system, I choosed not automatically mount vfat partitions. But now I found that mount partition by myself everytime is too bother. And I know if I want to mount partitions automatically I should edit /etc/fstab, but I don't know how. I also want normal user have the right to read and write the vfat partition. Who can help me?
Thank you!

Last edited by shadkong; 04-10-2005 at 11:18 PM.
 
Old 04-10-2005, 11:35 PM   #2
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
This is almost as bad as the blind leading the blind here, but here's how I do it:

Login as root (or use sudo), and with the editor of your choice (I find pico fast & easy), open '/etc/fstab' and add the line /dev/hda1 /mntpoint vfat defaults,umask=000 0 0

Now a couple of notes - be sure to replace "/dev/hda1" with your own hard drive... it should be hda(#) if you have an IDE system, which you probably do. Also replace "/mntpoint" with wherever you want your vfat drive to be mounted (don't forget the directory has to already exist, so "mkdir /mychoice" if you must). I think that's everything... so to sum up, as root, you want to:

pico /etc/fstab

And add this line:

/dev/hda7 /share vfat defaults,umask=000 0 0


Hope that does it for you
 
Old 04-11-2005, 01:17 AM   #3
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Original Poster
Rep: Reputation: 15
Thank you!
Can you tell me the meaning of "umask=000"?
 
Old 04-11-2005, 02:29 AM   #4
alagenchev
Member
 
Registered: Oct 2004
Location: USA
Distribution: Slackware, Debian, Ubuntu
Posts: 223

Rep: Reputation: 30
for explanation on what umount=000 does,read this:


http://www.linuxquestions.org/questi...hreadid=288329

Go about half way down the page

Last edited by alagenchev; 04-11-2005 at 04:22 AM.
 
Old 04-11-2005, 02:39 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
first make a directory in /mnt called win_c for example
then edit fstab and add this line :
/dev/hda1 /mnt/win_c vfat auto,rw,umask=000 1 0

then if you want to mount it now type : mount /mnt/win_c

http://shilo.is-a-geek.com/slack/fstab12.html
 
Old 04-12-2005, 07:03 PM   #6
octinum
Member
 
Registered: Mar 2005
Distribution: Slackware 10.1
Posts: 35

Rep: Reputation: 15
You may give subfs/submount a try.. I use it for my CDROM and USB, but disks are OK too..
 
  


Reply



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
how to mount cdroms automatically? greythorne Arch 5 06-24-2005 04:52 PM
device mount automatically caterboy Slackware 3 06-04-2004 09:01 PM
How to automatically mount Windows partition? vincebs Linux - Newbie 10 06-04-2004 09:45 AM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
How to automatically mount ntfs partition? Duukkis Linux - Software 3 06-25-2003 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:19 AM.

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
Open Source Consulting | Domain Registration