From owner-freebsd-questions Fri Mar 30 13:10: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nsmail.corp.globalstar.com (gibraltar.globalstar.com [207.88.248.142]) by hub.freebsd.org (Postfix) with ESMTP id AF94937B71E for ; Fri, 30 Mar 2001 13:09:50 -0800 (PST) (envelope-from cjclark@alum.mit.edu) Received: from alum.mit.edu ([207.88.153.184]) by nsmail.corp.globalstar.com (Netscape Messaging Server 4.15) with ESMTP id GB143V00.FP8; Fri, 30 Mar 2001 13:09:31 -0800 Message-ID: <3AC4F61D.AA89E26F@alum.mit.edu> Date: Fri, 30 Mar 2001 13:09:49 -0800 From: Crist Clark X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Jon Molin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Adding a new drive References: <200103290938.f2T9c1l00499@bluebox.naken.cc> <3AC347D6.1ED5F0A2@resfeber.se> <20010329165129.A60101@pcwin002.win.tue.nl> <3AC34FC7.F53209CC@resfeber.se> <3AC386CA.157C141B@alum.mit.edu> <3AC4301F.3AD7B9D0@resfeber.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jon Molin wrote: > > > > > Here is what you need to do: > > > > 1) Write a valid slice (PC partition) table. Make sure it is a valid > > table, i.e. you don't get that error above. > > I guess that writing a valid slice is my problem, have you got any tips on how > to create a valid table? > Here's what i've tried (all taken from > http://www.freebsd.org/handbook/disks-adding.html): > > # dd if=/dev/zero of=/dev/ad3 bs=1k count=1 > 1+0 records in > 1+0 records out > 1024 bytes transferred in 0.001281 secs (799436 bytes/sec) > jmo# fdisk -BI ad3 > ******* Working on device /dev/ad3 ******* > fdisk: invalid fdisk partition table found > # That should do it. After you zeroed the label in the first step, fdisk(8) generates that error as it tries to read the table before doing the write. But it should be doing the write. After you do the 'fdisk -BI ad3', what do you see if you do another 'fdisk ad3'? You should be able to reboot at that point and then continue with disklabeling. I just tested the procedure using a afd(4) drive. It worked (except you do not need the reboot for removable media, last I knew you still did for ad(4)). -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message