From owner-freebsd-questions Thu Mar 29 23: 3:24 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.resfeber.se (Resfeber-gw.customer.internet5.net [195.66.48.230]) by hub.freebsd.org (Postfix) with ESMTP id C27D237B71B for ; Thu, 29 Mar 2001 23:03:14 -0800 (PST) (envelope-from jon.molin@resfeber.se) Received: from resfeber.se ([212.75.72.9]) by mail2.resfeber.se (8.9.3/8.9.3) with ESMTP id IAA03395; Fri, 30 Mar 2001 08:54:07 +0200 Message-ID: <3AC4301F.3AD7B9D0@resfeber.se> Date: Fri, 30 Mar 2001 09:05:03 +0200 From: Jon Molin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Crist Clark 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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 # and # dd if=/dev/zero of=/dev/ad3 bs=1k count=1 1+0 records in 1+0 records out 1024 bytes transferred in 0.001331 secs (769363 bytes/sec) # disklabel -Brw ad3 auto # disklabel -e ad3 disklabel: ioctl DIOCGDINFO: Invalid argument # and # dd if=/dev/zero of=/dev/ad3 count=2 2+0 records in 2+0 records out 1024 bytes transferred in 0.001283 secs (798099 bytes/sec) # disklabel /dev/rad3 | disklabel -BrR ad3 /dev/stdin # newfs /dev/rad3e newfs: /dev/rad3e: Invalid argument # > > 2) YOU MUST REBOOT. The PC partition table in kernel memory is not > updated once started (last time I rewrote a fdisk label anyway). > Annoying, but hey, adding hardware is one of the few occasions you > may have to reboot. > > 3) Use disklabel(8) to partition the slice. > > 4) Use newfs(8) to put filesystems in the partitions. > > 5) Use mount(8) to access the filesystems. > > 6) Have beer. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message