Mounting FAT32 (vfat) Partition

I have checked this in Fedora and Debian. All are working without any error. You can read and write on vfat in Linux. Here is the the way to do it.

  1. Open and terminal as root (If you not logged as root type su and hit enter. Then enter root password. and hit enter)

  2. You have to identify your hard disk partions. So Type following command and in Terminal and hit enter.
    /sbin/fdisk -l
    You'll see some thing like this.

    Device
    Boot
    Start
    End
    Blocks
    Id
    System
    /dev/hda1
    *
    1
    1912
    15358108+
    7
    HPFS/NTFS
    /dev/hda2
    1913
    4998
    24788295
    f
    W95 Ext'd (LBA)
    /dev/hda5
    1913
    2565
    5245191
    7
    HPFS/NTFS
    /dev/hda6
    2566
    3218
    5245191
    83
    Linux
    /dev/hda7
    3219
    4773
    12490506
    7
    HPFS/NTFS
    /dev/hda8
    4774
    4868
    755023+
    82
    Linux swap
    /dev/hda9
    4868
    4998
    755023+
    b
    W95 FAT32


    You can see my hda9 is FAT32.

  3. Go to /media or /mnt folder by using cd command [I'm using media folder here]
    cd /media
    Then Create a folder of it with any name[I'm creating a folder name as F: by mkdir command. You can create this folder using gui also]
    mkdir F:

  4. Now it is mounting time. Type the follwing command and hit enter.
    mount -t vfat /dev/hda9 /media/F:
    Now open F: folder in media. Now you can see file on mounted partion in F: folder.

  5. That mount is only a temperarly one. You shoud edit your fstab to make that permanant. So type following command in termaninal and hit enter.
    gedit /etc/fstab
    You can see some follwing data on it. Those are about boot time mounts. Add the following line to end of it without changing above content.
    /dev/hda9 /media/F: vfat

    Then save it and exit it. When you boot your computer evry time that partion will be mount on to F: folder automatically.

Kasun Chathuranga 14-May-2006 13:06
Hosted by www.Geocities.ws

1