From owner-freebsd-sparc64@FreeBSD.ORG Wed Dec 14 17:08:57 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83CB616A429 for ; Wed, 14 Dec 2005 17:08:57 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB8FB43D6A for ; Wed, 14 Dec 2005 17:08:54 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from localhost (ns1 [69.55.238.237]) (authenticated bits=0) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id jBEH8r1f066307 for ; Wed, 14 Dec 2005 09:08:54 -0800 (PST) (envelope-from lists@jnielsen.net) From: John Nielsen Date: Wed, 14 Dec 2005 12:08:44 -0500 User-Agent: KMail/1.8.3 X-Face: #X5#Y*q>F:]zT!DegL3z5Xo'^MN[$8k\[4^3rN~wm=s=Uw(sW}R?3b^*f1Wu*. X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on ns1.jnielsen.net X-Virus-Status: Clean Subject: sunlabel only allocating half the disk? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 17:08:57 -0000 I am running FreeBSD 6.0-BETA5 on a Sun Ultra 5 station. The box has two IDE hard drives, one 9GB and one 60GB. The entire OS is installed on the 9GB drive, with the 60GB being for aux. storage. When I installed the system (perhaps using an earlier 6.0 beta), sunlabel did its thing on both drives and I had the amount of space I expected. I recently pulled the 60GB drive out of the system for use on another project (in an i386 box). Now the drive is reinstalled in the Sun box and shows up as ad1 as expected in the kernel boot messages: ad0: 8693MB at ata2-master WDMA2 ad1: 57259MB at ata2-slave WDMA2 acd0: CDRW at ata3-master PIO4 I zeroed the drive (dd if=/dev/zero of=/dev/ad1 bs=1m) and re-labeled it: sunlabel -w ad1 auto That appeared to work, but on closer inspection the raw partition is less than half the size of the drive: # sunlabel ad1 # /dev/ad1: text: FreeBSD56G cyl 50798 alt 2 hd 16 sec 63 bytes/sector: 512 sectors/cylinder: 1008 sectors/unit: 51204384 8 partitions: # # size offset # ---------- ---------- c: 51204384 0 And with the -h flag: c: 26.2G 0B Anyone have any ideas what could be going on here? Thanks, JN