Basic software packages you need in Ubuntu to do file system creation and checking
include util-linux (includes mkfs and other general utilities) and e2fsprogs (ext2/ext3-
specific tools). Specific mkfs commands for different file system types are included in
ntfsprogs (ntfs), dosfstools (msdos and vfat), xfsprogs (xfs), jfsutils (jfs), mtd-utils (jffs
and jffs2), and reiserfs-utils (reiserfs). The basic tools get installed with Ubuntu.
Here are examples of the mkfs command to create file systems (be sure to add -t option first):
$ sudo mkfs -t ext3 /dev/sdb1 Create ext3 file system on sba1
$ sudo mkfs -t ext3 -v -c /dev/sdb1 More verbose and scan for bad blocks
$ sudo mkfs.ext3 -c /dev/sdb1 Same result as previous command
If you would like to add a partition label to the new partition, use the -L option:
$ sudo mkfs.ext3 -c -L mypartition /dev/sdb1 Add mypartition label
mkfs -t vfat /dev/hda8
No comments:
Post a Comment