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

📄 diskpart.8

📁 早期freebsd实现
💻 8
字号:
.\" Copyright (c) 1983, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)diskpart.8	8.1 (Berkeley) 6/6/93.\".Dd June 6, 1993.Dt DISKPART 8.Os BSD 4.Sh NAME.Nm diskpart.Nd calculate default disk partition sizes.Sh SYNOPSIS.Nm diskpart.Op Fl p.Op Fl d.Op Fl s Ar size.Ar disk-type.Sh DESCRIPTION.Nm Diskpartis used to calculate the disk partition sizes based on thedefault rules used at Berkeley..PpAvailable options and operands:.Bl -tag -width Fl.It Fl pTables suitable for inclusion in a device driverare produced..It Fl dAn entry suitable for inclusion in the diskdescription file.Pa /etc/disktabis generated; for example,.Xr disktab 5 ..It Fl s Ar sizeThe size of the disk may be limited to.Ar sizewith the.Fl soption..El.PpOn disks that use.Xr bad144 8type ofbad-sector forwarding,space is normally left in the last partition on the diskfor a bad sector forwarding table, although this spaceis not reflected in the tables produced.  The space reservedis one track for the replicated copies of the table andsufficient tracks to hold a pool of 126 sectors to which bad sectorsare mapped.  For more information, see .Xr bad144 8 .The.Fl soption is intended for other controllers which reserve some space at the endof the disk for bad-sector replacements or other control areas,even if not a multiple of cylinders..PpThe disk partition sizes are based on the total amount ofspace on the disk as given in the table below (all valuesare supplied in units of sectors).  The.Ql cpartitionis, by convention, used to access the entire physical disk.The device driver tables includethe space reserved for the bad sector forwarding table in the.Ql cpartition;those used in the disktab and default formats exclude reserved tracks.In normal operation, either the.Ql gpartition is used, or the.Ql d ,.Ql e ,and.Ql fpartitions are used.  The.Ql gand.Ql fpartitionsare variable-sized, occupying whatever space remains after allocationof the fixed sized partitions.If the disk is smaller than 20 Megabytes, then.Nm diskpartaborts with the message.Dq Li disk too small, calculate by hand ..Bl -column Partition 20-60\ MB 61-205\ MB 206-355\ MB 356+\ MBPartition	20-60 MB	61-205 MB	206-355 MB	356+ MBa	15884	15884	15884	15884b	10032	33440	33440	66880d	15884	15884	15884	15884e	unused	55936	55936	307200h	unused	unused	291346	291346.El.PpIf an unknown disk type is specified, .Nm diskpartwill prompt for the required disk geometry information..Sh SEE ALSO.Xr disktab 5 ,.Xr bad144 8.Sh BUGSMost default partition sizes are based on historical artifacts(like the RP06), and may result in unsatisfactory layouts..PpWhen using the.Fl dflag, alternate disk names are not includedin the output..Sh HISTORYThe.Nmcommand appeared in.Bx 4.2 .

⌨️ 快捷键说明

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