Simple Linux Command Line notes: mkfs

Source: Internet
Author: User

Simple Linux Command Line Note: mkfs creates the file system mkfs [options] device parameter www.2cto.com on the device as the name of the device on which the file system is to be created. If the device name is in/etc/fstab, you can use the mount point of the device to replace the device name. For example, use/home to replace/dev/sda2. When mkfs is running, you can specify global options or the file system type (such as ext3, ext4, and msdos) to be created by mkfs) the global option of the specified option must be located at the front of the option of the specific type www.2cto.com global option-t fstype is the type of the file system to be created, such as ext3, ext4, etc, different Versions of Linux have different default file systems-V show more output, including file system related information file system specific type options the following options apply to some common file system types, ls/sbin/mkfs. * used to list programs for creating a file system on a local system $ ls/sbin/mkfs. */sbin/mkfs. bfs/sbin/mkfs. ext3/sbin/mkfs. minix/sbin/mkfs. vfat/sbin/mkfs. cramfs/sbin/mkfs. ext4/sbin/mkfs. msdos/sbin/mkfs. ext2/sbin/mkfs. ext4dev/sbin/mkfs. ntfs example mkfs-t $ mkfs-t vfat/dev/sdb1mkfs. vfat 3.0.13 (30 Jun 2012) is formatted as fat32 mkfs-V-t $ mkfs-V-t vfat/dev/sdb1mkfs (util-linux 2.20.1) mkfs. vfat/dev/sdb1 mkfs. vfat 3.0.13 (30 Jun 2012) creates a file system and displays information. Here-V must be placed before-t mkfs. vfat-v $ mkfs. vfat-v/dev/sdb1mkfs. vfat 3.0.13 (30 Jun 2012) Auto-selecting FAT32 for large filesystem/dev/sdb1 has 255 heads and 63 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 3887667 sectors; file system has 2 32-bit FATs and 8 sectors per cluster. FAT size is 3792 sectors, and provides 485006 clusters. there are 32 reserved sectors. volume ID is b0f15e23, no volume label. use specific options to create a file system and display the creation Information. Note that-v is lowercase Tips1. the root permission is required to create a file system. 2. run the fdisk-l command to view the file system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.