From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 21:26:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB73216A41F for ; Sat, 30 Jul 2005 21:26:28 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 125FA43D46 for ; Sat, 30 Jul 2005 21:26:27 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id A07D8CE1014E; Sat, 30 Jul 2005 14:26:21 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j6ULRYEs010032; Sat, 30 Jul 2005 14:27:34 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j6ULRS21010031; Sat, 30 Jul 2005 14:27:28 -0700 (PDT) (envelope-from garys@opusnet.com) To: Nikolas Britton References: <4kbr4k9x6z.r4k@mail.opusnet.com> From: garys@opusnet.com (Gary W. Swearingen) Date: Sat, 30 Jul 2005 14:27:28 -0700 In-Reply-To: (Nikolas Britton's message of "Sat, 30 Jul 2005 12:58:24 -0500") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-RBL-Warning: WEIGHT10: Total weight between 10 and 14. X-Spam-Tests-Failed: SPAMDOMAINS, SPFf, WEIGHT10 [11] Cc: "Gary W. Swearingen" , FreeBSD - Questions Subject: Re: Using a hard drive without partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2005 21:26:28 -0000 Nikolas Britton writes: > But in FreeBSD your disk needs a slice otherwise it's not compatable > with fdisk / bsdlabel / growfs... I think. One of the main reasons for using a DD disk is so you don't have to mess with those things; they are of no use on a DD disk (assuming that you cover the whole disk with the file system). You haven't said how you plan to use this disk. If you're going to use it for raw data, you don't need disk labels or file systems or anything, you just write (eg, >) and read (eg, <) from it, or tell your custom driver about it. Do you want to mount it for files? >> You've got a standard partition table with the s1 entry in use, which >> is not "dangerous". The FAQ has an entry on DD disks. > > But it is "dangerous" because it starts at sector 0. I've read that > FAQ as well as greg's book, Lucas's book, unix power tools, the man > pages, handbook, etc. I will reread them again. WHAT is dangerous? Yes, a DD disk is (more) dangerous, but you don't have a DD disk. Your s1 doesn't start at sector 0 and so it isn't considered dangerous. Your s1 probably starts at the 64th sector. And I'll take a guess that your "newfs /dev/ad0s1" (if it works at all) is starting the new filesystem at least 16 sectors further on, after the disk label area (which it probably assumes is there). The newfs manpage says that the disk must first be labeled. > I'm going to be working on this server today and I'll post some of the > details of fdisk, bsdlabel, etc. to see if I can help clarify things. Yeah, I'd like to see your "bsdlabel ad0s1"; I'm wondering if you have a disk label with "c" when you think you have no disk label. Can you mount /dev/ad0s1c? Can you mount dev/ad0s1? Seems to me you'd either want to be safe and use "ad0s1a" or live dangerously and use "ad0a" or even "ad0" if it seems to work.