From owner-freebsd-questions Thu Jan 27 14:26:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ulstu.ru (ns.ulstu.ru [62.76.34.36]) by hub.freebsd.org (Postfix) with ESMTP id 8553D15077 for ; Thu, 27 Jan 2000 14:26:21 -0800 (PST) (envelope-from vlad@high.net.ru) Received: from siemens.ulstu.ru (siemens.ulstu.ru [62.76.34.44]) by mail.ulstu.ru (8.9.3-mfd/8.9.3) with ESMTP id BAA00210 for ; Fri, 28 Jan 2000 01:26:18 +0300 (MSK) Received: from hq.spc.high (ip134-l-gate.link-ul.ru [195.151.42.134]) by siemens.ulstu.ru (Postfix) with ESMTP id 223A417429 for ; Fri, 28 Jan 2000 01:26:07 +0300 (MSK) Received: by hq.spc.high (Postfix, from userid 1000) id E982245A; Thu, 27 Jan 2000 23:22:58 +0300 (MSK) Date: Thu, 27 Jan 2000 23:22:58 +0300 From: Vlad Skvortsov To: freebsd-questions@freebsd.org Subject: disklabel for virgin disk Message-ID: <20000127232258.B81548@high.net.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello ! I have touched the following problem for several times already and always found work-around; what I want to know is how it is supposed to be done without tricks and hacks. ;-) Let's assume I have just installed new hard disk drive into my system, fdisk'ed it. Now I have to split it to slices and install new boot record to one because I want to boot from this new drive in future. Of course, there is no disklabel there yet, so I must write one prior to defining slices. disklabel -w does it but it requires disk type to be specified. As there is no entry matching my drive in /etc/disktab, I provide 'auto' value instead of disk type. But this always (I've done the whole procedure for 3 or 4 times since I started using FreeBSD) fails with this output: disklabel: ioctl DIOCGDINFO: Invalid argument disklabel: auto: unknown disk type So. The workaround I use is just dd if=/dev/old_disk of=/dev/new_disk count=128 After this I fix the new copy of disklabel to match new drive and go on. What do I do wrong and how does the world do this ? ;-) Thank you. -- Vlad Skvortsov, vss@ulstu.ru, vlad@high.net.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message