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

📄 sdisklabel.8

📁 abootLoader 固件源代码 HP内部珍贵资料!
💻 8
字号:
.\" This manpage has been automatically generated by docbook2man-spec.\" from a DocBook document.  docbook2man-spec can be found at:.\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/> .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng <steve@ggi-project.org>..TH "SDISKLABEL" "8" "04 September 2002" "sdisklabel" "".SH NAMEsdisklabel \- Create/modify disklabels on Linux/Alpha systems.SH "SYNOPSIS".PPsdisklabel \fIdrive [print|zero|sum]\fR.PPsdisklabel \fIdrive size partsize\fR.PPsdisklabel \fIdrive partnum offset size parttype\fR.SH "DESCRIPTIONS".PP\fBsdisklabel\fRcan be used to create partitions (called disklabels) on Linux/Alphasystems. You \fBmust\fR use disklabels instead of theDOS typepartitioning scheme on any hard disk which you want to boot from via SRM orwhich you want to share with HP Tru64.If you instead are booting from \fBmilo\fRthen you \fBmust not\fR use disklabels on your boot hard disk..PPEven if you are using disklabels, it is recommended to use \fBfdisk\fR(8) insteadof \fBsdisklabel\fR..PP\fBsdisklabel\fR also assumes you have a SCSI disk with 512-byte sectors,though it should work fine on an IDE drive as well. All sizes arespecified on the command line in sectors..PPThere are 8 partitions in total which are numbered from 0 to 7. Theycorrespond to BSD disklabels A to H.Partitions have to be added sequentially, as \fBsdisklabel\fR won't letyou leave empty partitions unlike many BSD disklabel programs. If youwant this (or if you want overlapping disk labels) use \fBfdisk\fR(8) instead..PPFirst off, if you have an invalid disk label (you've never run \fBsdisklabel\fR on this diskbefore) you have to issue.PP\fBsdisklabel \fI/dev/sda zero\fB\fR.PP(\fI/dev/sda\fR is the device you're partitioning, substitute as appropriate)..PPThis zeros out your disk label. Only do this if you really want tozero your disk label. It just does it; it doesn't ask, or warn, oranything..PPThe program also probably printed out the size of your disk in Kb. Ifit was wrong, you now get to use the "\fIsize xxx\fR"option along with therest of these commands. The size isn't critical, it's just used to tryand make sure you don't go past the end of the disk..PPNext, add your first partition. This \fBdoesn't\fRstart from 0, as youhave to leave room for the boot loader and other stuff. 256K (or 512sectors) will be enough..PPLet's pretend that you want to make a 250000 Kb partition startingfrom sector offset 512:.PP\fBsdisklabel \fI/dev/sda 0 512 500000 8 print\fB\fR.PPThe last number is the filesystem type, and is currently 8 for ext2fsfilesystems. (A different number would be used to specify anTru64partition, for example)..PPIf all was successful, the program should print out the partition (thelast keyword, "print", specifies that it should print the partitionafter modifying it with the previous command), and you should seesomething like.PP.sp.RS.sp.nf----------------------------------------------------------I think your disk is 528870K total size.If I'm wrong, override the size with the 'size num' optionpartition 0: type 8, starts sector 512, size 500000----------------------------------------------------------.sp.fi.RE.sp.PPYou can then add the next partition, which would be partition 1.To add a second partition that is 200000 Kb long, you'd run.PP\fBsdisklabel \fI/dev/sda 1 512256 400000 8 print\fB\fR.PPAnd both partitions would then be printed out..PPIf for some reason the size got determined incorrectly, you'd doinstead.PP\fBsdisklabel \fI/dev/sda size 528870 0 512 400000 8 print\fB\fR.PPThe size option should come immediately after the device name, and thesize is the total # of sectors on the drive..SH "BUGS".PP\fBsdisklabel\fR does not check for all errors, souse with care..SH "NOTES".PPIf you want to share the disk with HP Tru64(OSF/1) it is recommended touse the Tru64 partitioning tools to prepare the disk..PPTo actually boot from the freshly labeled disk you also need to installa boot strap as well, see\fBaboot\fR(8) and \fBswriteboot\fR(8)for details..PPThe print command may be placed before or after any other command..PPIn case you do want to leave empty partitions or create lables wichextend beyond the end of the disk (e.g. when you know \fBsdisklabel\fR is reporting a wrong size) thenuse can use the \fIforce\fR switch on the command line..SH "AUTHOR".PPThis man page was written by Helge Kreutzmann <kreutzm@itp.uni-hannover.de> for the Debian GNU/Linux project but may be used by others. It isheavily based on the \fIREADME\fR provided along with the\fBsdisklabel\fR source..SH "SEE ALSO".PP\fBfdisk\fR(8), \fBaboot\fR(8), \fBswriteboot\fR(8)

⌨️ 快捷键说明

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