Thursday, September 07, 2006

How to mount FAT32 partition in Linux ( tutorial to mount FAT32 )

If you were an Windows user, the file system format you used are usually FAT32 or NTFS.
You may wonder if you can access FAT32 partition(s) after installing Linux because these FAT32 partition(s) may contain your previous work, ebook, music, libraries.... The answer is "YES, YOU CAN".
So now, in your head is "how ?" and i going to tell you about it right afer.

First, start Logical Volume Manager ( in GNOME, you can find it in System -> Administration -> Logical Volume Manager.
Here, look for your FAT32 partition. As for me, my FAT32 partition is /dev/hda5




Or if you don't use GNOME, use can get a similar result by use the following shell command :
fdisk -l

After getting the information we need, type the 2 easy following shell command to mount that partition to a directory:
mkdir /mnt/fat_partition
mount -t vfat /dev/hda5 /mnt/fat_partition

Now, navigate to the /mnt/fat_partition and see all your data you've create when using Windows :D
If you have any problem, please feel free to comment here, so i'll help with if i can.
Hope this help ;) !

2 comments:

Anonymous said...

it's really easy if you don't want to run the command mount each time you want to access your drive. Login as root by typing su.Open the file fstab in your /ect directory using the text editor like vi, add a new line with some text that could be looked like this :
/dev/hda3 /mydir vfat user,rw,noauto 0 0

/dev/hda3 is the partition you wanna mount, /mydir is the directory you want the data to be mounted to. user,rw,noauto tell us that all user could read and write on this partition. Ok, now anytime you reboot your OS, you will have your partition being mounted automatically to the directory /mydir . Have fun ^_^

Phan Anh Vu said...

thanks, this helps alot.