lost and found ( for me ? )

Ubuntu 11.10 : how to make FAT32 filesystem


install dosfstools via apt-get.
# LANG=C apt-cache search mkdos
dosfstools - utilities for making and checking MS-DOS FAT filesystems
dosfstools-dbg - utilities for making and checking MS-DOS FAT filesystems (debug)

# apt-get install dosfstools –y

add the partition for FAT32 ( in my caes , add the new partition /dev/sdc1 )
# LANG=C fdisk /dev/sdc

Command (m for help): n
Command action
  e   extended
  p   primary partition (1-4)
p
Partition number (1-4, default 1): 1
First sector (2048-15826943, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15826943, default 15826943):
Using default value 15826943

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

# ls /dev/sdc*
/dev/sdc  /dev/sdc1

make FAT32 filesystem with mkfsdos
# mkdosfs -F 32 -I /dev/sdc1
mkdosfs 3.0.9 (31 Jan 2010)

-F Fat-size ( 12 or 16 or 32 )

-I     
It is typical for fixed disk devices to be  partitioned  so,  by
default, you are not permitted to create a filesystem across the
entire device.  mkdosfs will  complain  and  tell  you  that  it
refuses  to  work.   This is different when using MO disks.  One
doesn't always need partitions on MO disks.  The file system can
go  directly  to the whole disk.  Under other OSes this is known
as the 'superfloppy' format.This switch will force mkdosfs to work properly.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.