From owner-freebsd-questions Mon Mar 9 00:27:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA13055 for freebsd-questions-outgoing; Mon, 9 Mar 1998 00:27:14 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA13047 for ; Mon, 9 Mar 1998 00:27:11 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id AAA04082; Mon, 9 Mar 1998 00:27:10 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Mon, 9 Mar 1998 00:27:10 -0800 (PST) From: Doug White Reply-To: Doug White To: gkshenaut@ucdavis.edu cc: questions@FreeBSD.ORG Subject: Re: using fdisk and disklabel to determine raw disk layout In-Reply-To: <199803080007.QAA11292@myrtle1.bogs.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 7 Mar 1998, Greg Shenaut wrote: > I hate looking like an idiot, but I am now thoroughly confused. > The disklabel(8) program only deals with a single fdisk(8) partition, > so the offsets it reports are only relevant to its partition. Fdisk, > on the other hand, reports up to 4 fdisk partitions, but says nothing > about the contents of the partitions beyond its msdos code. > > If I understand this correctly, it would actually be possible for > there to be 4 independent disk labels on a raw disk, each with 8 > independent partitions; fdisk would report the layout of the 4 > labeled partitions, while you would need 4 runs of disklabel to > see all of the possible bsd partitions. Of course, there could be > non-bsd fdisk partitions which would not contain bsd labels; the > information reported by fdisk would probably suffice for them. Yuppers. > So, lamentably, I need to reiterate my original question, which > was how to construct automatically a complete map of the physical > layout of a disk drive, incorporating all sectors of the drive, > including those classified by fdisk, by disklabel, and by neither. > Also, I must ask whether it is possible to read and write the entire > physical drive using a single /dev name, such as /dev/rwd0--I ask > this because of the fact that the fdisk table doesn't start with > block 0 (hopefully, rwd0 bypasses all partitioning and just accesses > the physical drive). rwd0 is *the* disk. Period. I've never experimented with doing dd backups but I suppoz it's possible. I always use dump. ;-) Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message