From owner-freebsd-current Fri Mar 3 11: 9:55 2000 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 0892A37B6EB for ; Fri, 3 Mar 2000 11:09:44 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id MAA42541 for ; Fri, 3 Mar 2000 12:09:42 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id MAA24732 for ; Fri, 3 Mar 2000 12:09:27 -0700 (MST) Message-Id: <200003031909.MAA24732@harmony.village.org> To: current@freebsd.org Subject: fdisk -s, post 4.0 Date: Fri, 03 Mar 2000 12:09:27 -0700 From: Warner Losh Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: The data for partition 3 is: The data for partition 4 is: Comments? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message