LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Accessing FAT32 files (https://www.linuxquestions.org/questions/linux-newbie-8/accessing-fat32-files-334234/)

rknetsch 06-16-2005 11:29 AM

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

JediGuy_bob 06-16-2005 11:37 AM

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.

detpenguin 06-16-2005 11:38 AM

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...

rjlee 06-16-2005 11:40 AM

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.


All times are GMT -5. The time now is 03:55 PM.