Date: Fri, 03 Mar 2000 12:09:27 -0700 From: Warner Losh <imp@village.org> To: current@freebsd.org Subject: fdisk -s, post 4.0 Message-ID: <200003031909.MAA24732@harmony.village.org>
next in thread | raw e-mail | index | archive | help
I'd like to add a fdisk -s command after 4.0. What -s would do is produce a much boiled down fdisk output, for two consumers. First, for people who don't want to wade through a whole screen of stuff, and second for scripts. Here's the current output. Lemme know what you think. BTW, I'm also in the middle of writing a prepdisk script that uses fdisk and disklabel to properly and easily label a disk for use under FreeBSD. I'll post that later and would like to include that in FreeBSD as well, given how restricted disklabel auto's intended purpose is. I may also do a gui, but that will likely take more time than I have to devote to this. # fdisk -s da2 /dev/rda2: 555 cyl 255 hd 63 sec Part Start Size Type Flags 1: 63 8916012 0xa5 0x80 # fdisk da2 ******* Working on device /dev/rda2 ******* parameters extracted from in-core disklabel are: cylinders=555 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=555 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 8916012 (4353 Meg), flag 80 (active) beg: cyl 0/ sector 1/ head 1; end: cyl 554/ sector 63/ head 254 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> Comments? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003031909.MAA24732>