From owner-freebsd-questions@FreeBSD.ORG Mon Jan 14 03:37:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38FB216A418 for ; Mon, 14 Jan 2008 03:37:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 0F68D13C455 for ; Mon, 14 Jan 2008 03:37:11 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2) id m0E3bATD017917; Sun, 13 Jan 2008 21:37:10 -0600 (CST) (envelope-from dan) Date: Sun, 13 Jan 2008 21:37:09 -0600 From: Dan Nelson To: Oscar Delay Message-ID: <20080114033709.GC97708@dan.emsphone.com> References: <627653.65153.qm@web63409.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <627653.65153.qm@web63409.mail.re1.yahoo.com> X-OS: FreeBSD 7.0-PRERELEASE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-questions@freebsd.org Subject: Re: Missing /dev entries on SCSI drive 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: Mon, 14 Jan 2008 03:37:12 -0000 In the last episode (Jan 13), Oscar Delay said: > I've a disk partition on an old system which I cannot mount because > the device entry under /dev is missing. This is a mostly unused > machine that hasn't been backed up in a while but I'd like to recover > the partition if possible. The SCSI adaptor is an Adaptec 2940U2W, > the only device entries in /dev related to the drive are da0 and > da0s1. > > The major,minor device numbers are 0,93 for da0 and 0,94 for da0s1. > What would my mknod arguments be for da0s1d. It's a 6.1 release box. 6.x uses devfs and GEOM, which means that device nodes are automatically created based on the existence of partition and disklalbel data on disk. Minor numbers are allocated dynamically every time disks are probed, so manually creating a devoce node with mknod would be useless. If there is a da0s1 but no da0s1d, then the disklabel header on da0s1 must be damaged or missing. If you remember the layout, you can run disklabel and recreate it. Another option is to use the sysutils/scan_ffs or sysutils/ffs2recov ports to determine the original disklabel settings. -- Dan Nelson dnelson@allantgroup.com