DIGIT-ARC read-only archive · snapshot: July 23, 2026

Formatting a usb pen in fat32 using mkdosfs

8 posts · originally from https://geek.digit.in/community/threads/formatting-a-usb-pen-in-fat32-using-mkdosfs.105390/

NucleusKore
NucleusKore Original post #1
Dec 27, 2008 at 3:24 PM
After unmounting the pendrive, and using fdisk to set the partition as W95 FAT32, I used the following command

sudo mkdosfs -F 32 /dev/sdb1

Now everything was successful, but when I try to paste files as user I cannot because the owner of the filesystem is root (I had to be root to fdisk and mkdosfs).

So how do I solve this problem?
Flake
Flake #2
Dec 27, 2008 at 4:36 PM
Re-Mount stick and set umask value to zero. Let say, /media/sdb1 is mount point ( folder ). In case it doesn't exist, create it.
Code:
sudo umount /dev/sdb1
sudo mount -vfat /dev/sdb1 /media/sdb1 -o defaults,umask=0
Regular user will have full privileges.
NucleusKore
Dec 28, 2008 at 9:03 AM
Thank you for your reply, will await other replies too. This is a manual method. I am ok with it, but not if I teach newcomers.

Please have a look at this thread also
*ubuntuforums.org/showthread.php?t=1022712
Flake
Flake #4
Dec 28, 2008 at 9:53 AM
Easiest but a risky way is, press Alt+F2 and type this
Code:
gksu nautilus
It will open Nautilus with root privileges. You will have full access to every file/folder. Risky, because you will root user and it not good to have root privileges in GUI.
V
Dec 30, 2008 at 2:14 PM
I usually use mkfs.vfat to format usb on linux. Is this different from the method discussed here ?
NucleusKore
Dec 30, 2008 at 9:28 PM
Maybe the same?

*linux.about.com/od/embedded/l/blcmdl8_mkfsvfa.htm
blondie
blondie #7
Dec 30, 2008 at 9:48 PM
Try adding the user to group haldaemon, since the mounting and things are controlled by hal.
Flake
Flake #8
Dec 30, 2008 at 11:20 PM
vinayasurya said:
I usually use mkfs.vfat to format usb on linux. Is this different from the method discussed here ?
mkfs.vfat and mkdosfs -F 32 do the same job. Both commands format partition in FAT32 filesystem in similar way.