⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkfs.8

📁 Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分区和管理硬盘驱动器
💻 8
字号:
.\" -*- nroff -*-.TH MKFS 8 "Jun 1995" "Version 1.9".SH NAMEmkfs \- build a Linux file system.SH SYNOPSIS.B mkfs[.B \-V][.B \-t.I fstype][.B fs-options].I filesys[.I blocks].SH DESCRIPTION.B mkfsis used to build a Linux file system on a device, usuallya hard disk partition..I filesysis either the device name (e.g..IR /dev/hda1 ,.IR /dev/sdb2 )or the mount point (e.g. .IR / ,.IR /usr ,.IR /home )for the file system..I blocksis the number of blocks to be used for the file system..PPThe exit code returned by.B mkfsis 0 on success and 1 on failure..PPIn actuality,.B mkfsis simply a front-end for the various file system builders(\fBmkfs\fR.\fIfstype\fR)available under Linux.The file system-specific builder is searched for in a numberof directories like perhaps.IR /sbin ,.IR /sbin/fs ,.IR /sbin/fs.d ,.IR /etc/fs ,.I /etc(the precise list is defined at compile time but at leastcontains.I /sbinand.IR /sbin/fs ),and finally in the directorieslisted in the PATH enviroment variable.Please see the file system-specific builder manual pages forfurther details..SH OPTIONS.TP.B -VProduce verbose output, including all file system-specific commandsthat are executed.Specifying this option more than once inhibits execution of anyfile system-specific commands.This is really only useful for testing..TP.BI -t \ fstypeSpecifies the type of file system to be built.If not specified, the default file system type(currently ext2) is used..TP.B fs-optionsFile system-specific options to be passed to the real file system builder.Although not guaranteed, the following options are supportedby most file system builders..TP.B -cCheck the device for bad blocks before building the file system..TP.BI -l \ filenameRead the bad blocks list from.I filename.TP.B -vProduce verbose output..SH BUGSAll generic options must precede and not be combined withfile system-specific options.Some file system-specific programs do not support the.I -v(verbose) option, nor return meaningful exit codes.Also, some file system-specific programs do not automaticallydetect the device size and require the.I blocksparameter to be specified..SH AUTHORSDavid Engel (david@ods.com).brFred N. van Kempen (waltje@uwalt.nl.mugnet.org).brRon Sommeling (sommel@sci.kun.nl).brThe manual page was shamelessly adapted from Remy Card's versionfor the ext2 file system..SH SEE ALSO.BR fs (5),.BR badblocks (8),.BR fsck (8),.BR mkdosfs (8),.BR mke2fs (8),.BR mkfs.bfs (8),.BR mkfs.ext2 (8),.BR mkfs.ext3 (8),.BR mkfs.minix (8),.BR mkfs.msdos (8),.BR mkfs.vfat (8),.BR mkfs.xfs (8),.BR mkfs.xiafs (8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -