Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-24-2001, 07:45 PM
|
#1
|
LQ Newbie
Registered: Jun 2001
Location: United States
Distribution: Red Hat 7.2
Posts: 18
Rep:
|
Mounting a vfat filesystem in RH 7.2
I just loaded up Redhat 7.2 for the first time, and I don't know how to mount my vfat partitions because I am used to using linuxconf with earlier versions of Redhat.
Thanks in advance.
|
|
|
11-24-2001, 08:30 PM
|
#2
|
LQ Newbie
Registered: Nov 2001
Location: Texas
Distribution: Redhat 7.2
Posts: 23
Rep:
|
First, as root type in mkdir /mnt/vfat and then once that's done, use fdisk to figure out which partition is your vfat partition (unless you already know this info) and then type mount -t vfat /dev/hd? /mnt/vfat (where hd? is the actual partition you want to mount), and then once you've got the parition mounted, edit your etc/fstab and add the the following line: /dev/hd? /mnt/vfat vfat noauto,owner,users 0 0
Just line that info up with the other entries in the etc/fstab, exit and save the changes and you should be good to go. If I screwed this up at all please forgive me cause I'm still a newbie myself but I've dealt quite a bit with getting the vfat partitions mounted and useable for my system. 
|
|
|
11-25-2001, 05:54 AM
|
#3
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
Dayewalker is correct excpet with the fstab file you may want instead of noauto to have auto so it reads like this
Code:
/dev/hd? /mnt/vfat vfat auto,users,rw 0 0
That's what mine looks like
Alex
Last edited by webtoe; 11-25-2001 at 05:55 AM.
|
|
|
11-25-2001, 12:55 PM
|
#4
|
LQ Newbie
Registered: Nov 2001
Location: Texas
Distribution: Redhat 7.2
Posts: 23
Rep:
|
I've actually been wondering about what the difference between having auto and noauto there would make. The only guess I could come up with would be that with auto, it automatically mounted the partitions when the system was booted up instead of having to manually mount them via the KDE desktop or whatever other means desired. Am I correct in that? Also, what does the rw in your entry mean? 
Last edited by Dayewalker; 11-25-2001 at 12:56 PM.
|
|
|
11-26-2001, 09:59 AM
|
#5
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
the auto does mean that it is mounted automatically when linux is started up. rw just tells it to mount it read-write rather than ro (read-only - used on cdroms and NTFS drives like windows 2000/XP)
Alex
|
|
|
11-26-2001, 01:07 PM
|
#6
|
LQ Newbie
Registered: Nov 2001
Location: Texas
Distribution: Redhat 7.2
Posts: 23
Rep:
|
Ahh ok thanks 
|
|
|
11-26-2001, 03:29 PM
|
#7
|
LQ Newbie
Registered: Jun 2001
Location: United States
Distribution: Red Hat 7.2
Posts: 18
Original Poster
Rep:
|
I put the entry into /etc/fstab with the rw bit, and I can access the files O.K.
Then, to let myself write to it without logging in as root I ran 'chmod 777 /mnt/vfatd' however, I can't write to /mnt/vfatd without being root. Is there anything I'm missing?
|
|
|
11-27-2001, 01:06 PM
|
#8
|
Member
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617
Rep:
|
i actually have the same problem. but for me it isn;t that annoying since i don't need to move things to the windows partition very often.
Alex
|
|
|
11-28-2001, 09:06 PM
|
#9
|
LQ Newbie
Registered: Nov 2001
Location: Boulder, Colorado
Distribution: Red Hat
Posts: 10
Rep:
|
To allow yourself (as opposed to "root") to read and write to a vfat file, this is how the line should look like in the fstab file:
/dev/hda2 /dosc vfat uid=500,gid=500,auto,rw 0 0
where uid=500 and gid=500 are your user ID number and group ID number, respectively. To find out what your uid and gid are, type "id" at the prompt.
Regards,
Pedro
|
|
|
All times are GMT -5. The time now is 05:37 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
|
|