• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux: I want to mount a fat32 partition

Barnaby W. Füi

Elite Member
i just finally got done going through the process of backing up my "stuff" partition, formatting it as fat32 (ntfs before) and putting the stuff back on, now how do i mount it in linux?

only thing is.... i dont know which drive it will be under...

i have:

first, primary partition: win2k
2nd: linux
3rd: linux swap
4th: linux /home
5th: windows programs partition
6th: data, or "stuff"

i thought the logical drives on the extended partition start at hda5, right?

but i don't know if the linux partitions are primary or if they're on the extended.....

hmm so my "stuff" partition is either hda9 or hda6

now that i think of it, when i did the partitioning during the install of linux, i remember there being a hda9, so i guess it has to be hda9.

ok cool, now i just need help mounting it.

please and thank you🙂
 
Make a directory where you want it mounted (i.e. /mnt/stuff) and then type 'mount -t vfat /dev/hda9 /mnt/stuff' and it should be mounted, the problem is it's only writable by root because FAT32 doesn't have any notiion of ownership or rights, so we get around this by telling mount who to give ownership to (every file on the drive will have the same owner/rights) with the uid and gid options. To find your users id type 'id' at a command prompt, then unmount the FAT32 partition with 'umount /mnt/stuff' and remount it with the uid option like 'mount -t vfat -o uid=<uid_numer> /dev/hda9 /mnt/stuff', make sure the ownership and rights look ok to you then add it to /etc/fstab so it gets mounted at every reboot, follow the format already there and you should be ok. If /dev/hda9 doesn't seem to be your FAT32 partition run 'fdisk -l /dev/hda' which will print the partition table.

Did ya get all that?
 


<< 'fdisk -l /dev/hda' which will print the partition table. >>


I use 'cat /proc/partitions' I have never tried the other way.
 
I just tried that fdisk -l and it worked pretty good. I guess you learn something new everyday. It seems that someone always comes along and tells another easier way to do something that I have been doing forever. 😀 I guess that is the joys of Linux. One of these days, I will know all!! 🙂😀
 
Back
Top