Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  333 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3439
Last update: 09-30-05
Issue:
How do I access it my FAT partition from within Linux?
Resolution:
The output of fdisk -l should list all detected partitions. It will indicate the partition name and number that contains the FAT file system.

For example:

 
# fdisk -l /dev/sde

Disk /dev/sde: 255 MB, 255590400 bytes
8 heads, 61 sectors/track, 1022 cylinders
Units = cylinders of 488 * 512 = 249856 bytes

    Device Boot    Start       End    Blocks   Id  System
 /dev/sde1             1      1022    249337+   e  Win95 FAT16 (LBA)
     


You will noticed that /dev/sde1 is the device ID containing a FAT16 file system.

Once you have identified the partition name you can mount it using the mount command. However, you must first prepare a mount point for the file system, such as /mnt/fat. This can be done simply by creating a directory. For example, type
mkdir /mnt/fat
Once you have a mount point the drive can be mounted by a command similar to the following:
mount /dev/sde1 /mnt/fat
Once mounted you should be able to navigate the volume from /mnt/fat as you would browse it under Windows. If you stop here the device will not be mounted on the next boot. You can cause the system to attempt to mount the file system during every boot by modifying the /etc/fstab file and adding a line similar to the following:

 
/dev/sde1         /mnt/fat           vfat    defaults        1 2
      


See the man mount and man fstab for more details.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   333  of  908  >>