Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): c
Changed system type of partition 2 to c (W95 FAT32 (LBA))
Write (save) and exit:
Command (m for help): w
The partition table has been altered!
Calling ioctl( ) to re-read partition table.
Syncing disks.
The partition type used, c , indicates that the partition will contain a FAT filesystem. This enables compatibility with Windows and Mac OS X systems and is also necessary for most camera flash-memory cards and digital music players.
Once the partitions have been created, they can be formatted with
# mkfs -t vfat -n
mkdosfs 2.10 (22 Sep 2003)
# mkfs -t vfat -n
mkdosfs 2.10 (22 Sep 2003)
You may need to remove and reinsert the drive to force the kernel to load the new partition table before you can format the partitions.
The option -F 32 forces the use of 32-bit file allocation tables, which is not strictly necessary for drives under 512 MB in size but is required for larger drives and matches the filesystem type assigned to the partition by the previous
If you have ever used your USB drive without a partition table (formatting
# dd bs=1k count=1 if=/dev/zero of=
2.8.3.2. ...using a Linux filesystem such as ext2 on a USB storage device?
You can use ext2 or any other filesystem on a USB storage device, but that will reduce compatibility with other systems. To format the partition
# mkfs -t ext3
2.8.3.3. ...accessing USB storage from a nongraphical application?
Automatically mounted storage media are mounted to the directory
2.8.3.4. ...manually mounting a USB storage device?
When you're in runlevel 3 (character mode), your USB storage devices won't be automatically mounted. You can still use USB storage; you just have to mount it by hand:
# mkdir
# mount
The SCSI disk IDs are sequentially assigned (the first USB disk found since boot is
When you're done with the storage device, unmount it before unplugging it:
# umount
The unmount command is spelled
2.8.4. Where Can I Learn More?
? The USB Implementors Forum, Inc. (USB standards): http://www.usb.org/home
? The Linux USB project: http://www.linux-usb.org/
? The Udev project: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
? Fedora documentation on Udev: http://fedora.redhat.com/docs/udev/
? The GNOME and KDE online manuals