LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-16-2005, 12:29 PM   #1
rknetsch
LQ Newbie
 
Registered: Jun 2005
Location: Toronto, Ontario, Canada
Distribution: RedHat
Posts: 19

Rep: Reputation: 0
Accessing FAT32 files


I understand that Linux can read FAT32 partitions. So, I made one, but the problem is that I don't know how to get Linux to see it. I am used to using Windows still,where there is just another drive sitting there. Suppose I made one and it is hda4. What can I do to now use it?

ROb
 
Old 06-16-2005, 12:37 PM   #2
JediGuy_bob
LQ Newbie
 
Registered: Apr 2004
Location: Albuquerque/Chicago
Posts: 22

Rep: Reputation: 15
If you have already created the parition, formatted it and there is data, then you can use the command:

mount /dev/hda4 {mountpoint} -tvfat

note that you should not use brackets around the mountpoint path, it should read something like /mount/fat_partition . Just touch a file in mount and you should be set to go.
 
Old 06-16-2005, 12:38 PM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
create a directory called /windows

then add this line to your /etc/fstab file
Code:
/dev/hdaX        /windows           vfat        umask=0222       1   0
the "X" is the partition number the windows file is on....

reboot, and you should be able to read and write to it...

Last edited by detpenguin; 06-16-2005 at 12:39 PM.
 
Old 06-16-2005, 12:40 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
Code:
mkdir /mnt/hda4 # You only need to do this once
mount /dev/hda4 /mnt/hda4
You can have this mounted at boot-time by adding this line to your /etc/fstab file:
Code:
/dev/hda4 /mnt/hda4/  vfat  auto,user 0 0
You can then see your FAT32 device under /mnt/hda4.

You can mount the partition somewhere else by changing /mnt/hda4 everywhere in the above if you like.

Alternatively, most distros provide some kind of tool to set this up for you.
 
  


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
Accessing a fat32 Partition Cr4wford Slackware 23 01-15-2007 09:28 PM
accessing fat32 partion(s) Canadica Linux - Newbie 9 11-10-2004 10:53 PM
accessing fat32 through fedora Xris718 Linux - General 2 04-03-2004 01:11 AM
Accessing FAT32 patition henry_s Linux - Newbie 2 10-26-2003 05:57 PM
Accessing Fat32 Partitions dark_light Linux - General 2 09-06-2002 03:27 PM


All times are GMT -5. The time now is 06:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration