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

📄 part.8

📁 操作系统设计与实现源码
💻 8
字号:
.TH PART 8.SH NAMEpart \- partition table editor.SH SYNOPSIS.B part.RI [ device "] ...".SH DESCRIPTION.B Partis a screen oriented partition table editor..PPWhile editing you will see six lines of numbers, the first line shows thedevice name and its geometry (number of cylinders, heads and sectors), thesecond shows the start and end of the drive or partition you are working on,the last four lines show the different partitions or subpartitions.  Allnumbers except those on the second line can be edited.  Question marks areshowed instead of numbers if the partition table is not loaded yet.  Youhave to select a device and type 'r'..PPEditing is a simple matter of moving around with the arrow keys and changingthe values with + and \- (or PgUp and PgDn), or by typing the desired value.The '?' key will give a small list of commands, the '!' key gives advice onhow to make a new entry..PPThe spacebar toggles between showing the size of the partition and the lastsector on the partition.  Useful to check if a partition is adjacent to thenext..PPThe 'm' key is "magical", it lets you cycle through a set of interestingvalues for the base or size of a partition.  These values are: Aligned to acylinder, taped to other partitions (inside or outside), or filling out holes..BR "Use this key" !.PPMinix subpartition tables or extended partitions may be edited after hittingthe '>' key.  The number of this partition will be shown after the devicename on the second row, e.g..BR /dev/hd0:2 .Minix subpartition tables are shown as is, but extended partition bases aretranslated to absolute offsets on the screen to hide the gory details of theirimplementation from the innocent user.  (Hit 'p' if you dare.)  The '<' keywill bring you back to the enclosing partition table..PPWith arguments,.B partwill use the given devices or files.  Without arguments,.B partwill use all interesting block devices in.B /devsorted by device number and starting with.BR /dev/hd0 ..PPValues that are out of range, overlapping, or otherwise strange are shown inreverse video.  Values that may possibly be a problem for operating systemsother then Minix are shown in bold characters..PPThe name of the device is highlighted when it has not been read yet..PPHead or sector numbers are highlighted if the partition does not start orend at a cylinder boundary..PPThe base and/or size field is highlighted if they fall outside the device,if they are inside some other partition, if the base equals the device's base(no room for the boot sector), or if the size is zero..PP.B Partcomplies with the good old \s-2UNIX\s+2 tradition of trusting the user.It will write any table, no matter how bad.  You have been warned..PPBy the way, as far as Minix is concerned there is absolutely no reason tomake partitions start precisely on a cylinder or track nor does it have tobe an exact number of cylinders long.  Minix only looks at the base and sizeof a partition, the geometry of the drive doesn't have to be correct.  OtherOperating systems can be very picky about partitions that are not aligned.Some partition editors may refuse to edit a table, others may even make amess of the table.  The only exception is the first partition, ittraditionally starts on the first track, not the first cylinder.  Alleditors must understand this.  (Subpartition tables are Minix specific, sothere is no reason at all for any alignment.).SS "Extended Partitions"Extended partitions are a mess that is only made slightly better by.B partby translating the base offsets to absolute numbers.  It is better to use DOS.B fdiskto create them, but if you insist on using.B partthen this is what they should look like:.RS.spThe extended partition entry in the primary partition table must cover thewhole logical partition space within it..spThe area thus created is split in segments, each segment contains a partitiontable in sector 0 and one (just one) logical partition..spThe first entry of a segment's partition table describes this logicalpartition: it's partition ID, base and size..spThe second entry is an extended partition that describes base and size ofthe next segment (partition table and logical partition).  The last segment'spartition table is empty, or contains one logical partition..SH "SEE ALSO".BR fd (4),.BR hd (4)..SH BUGSYou can have a table read, messed up, and written in no time, be careful..PPYou can't type head or sector numbers directly..PPSectors are counted from 0 for consistency, but the partition table countsfrom 1 like DOS addresses them.  Most confusing..PPYou can't write a backup copy to a file, that's what.BR dd (1)with count=1 is for..SH AUTHORKees J. Bot (kjb@cs.vu.nl)

⌨️ 快捷键说明

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