*Tags*: format partition for linux, initial file system for linux
Use mkfs, to be more precisely, use mke2fs!
mkfs -t ext3 -v -L 'ToBurn' /dev/hda11 mkfs.ext3 -v -L 'ToBurn' /dev/hda11
mke2fs 1.27 (8-Mar-2002)
Filesystem label=ToBurn
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1289280 inodes, 2576424 blocks
128821 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.If called as mkfs.ext3 a journal is created as if
the -j option was specified.Notes:
-t must be the 1st parameter for mkfs, otherwise it will complains:
mke2fs 1.27 (8-Mar-2002) mkfs.ext2/3: bad blocks count - /dev/hda11
mkfs -t ext2 -v -L 'ToBurn' /dev/hda11
mke2fs 1.27 (8-Mar-2002)
Filesystem label=ToBurn
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1289280 inodes, 2576424 blocks
128821 blocks (5.00%) reserved for the super user
First data block=0
79 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 31 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.mkfs -t vfat -v -F 32 -n 'os4' /dev/hda10 mkdosfs -v -F 32 -n 'os4' /dev/hda10
mkdosfs 2.8 (28 Feb 2001) /dev/hda10 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 11888036 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 11587 sectors, and provides 1483103 clusters. Volume ID is 3df9542f, volume label os4 .
-F FAT-size
Specifies the type of file allocation tables used (12, 16 or 32
bit). If nothing is specified, mkdosfs will automatically
select between 12 and 16 bit, whatever fits better for the
filesystem size. 32 bit FAT (FAT32 format) must (still) be
selected explicitly if you want it.-n volume-name
Sets the volume name (label) of the filesystem. The volume name
can be up to 11 characters long. The default is no label.