From owner-freebsd-hackers Wed Mar 12 16:41:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA22549 for hackers-outgoing; Wed, 12 Mar 1997 16:41:36 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA22540 for ; Wed, 12 Mar 1997 16:41:26 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id LAA29473; Thu, 13 Mar 1997 11:09:24 +1030 (CST) From: Michael Smith Message-Id: <199703130039.LAA29473@genesis.atrad.adelaide.edu.au> Subject: Re: disk docs In-Reply-To: from Alan Batie at "Mar 12, 97 11:03:03 am" To: batie@aahz.jf.intel.com (Alan Batie) Date: Thu, 13 Mar 1997 11:09:23 +1030 (CST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Alan Batie stands accused of saying: > Do anyone know of any good disk layout docs? Everytime I try to add a disk > to a FreeBSD system, it is an exercise in frustration, and seems to me like > it shouldn't be too hard to read the size of the disk and write a basic > initial partition table and disk label that will make disklabel happy, and > I'm willing to do it if I can find the information needed. Currently, I've > tried "disklabel -r -w sd0 auto", and it complains > "write: Read-only file system". *What* file system!?! I *haven't* *gotten* > that far yet! ktrace shows it to be /dev/rsd0c that it's complaining about > (the system disk is ide). On a truly unlabelled disk, 'disklabel -rwB sd0 auto' works just fine; we use it for nuking DOS-formatted Jaz disks on an almost daily basis. In other cases, you may find that you need to 'dd' over the first 8K or so of the disk with something like : dd if=/dev/zero of=/dev/rsd0 bs=8k count=1 Alternatively, use /stand/sysinstall in 'custom' mode. > Alan Batie ------ What goes up, must come down. -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[