From owner-freebsd-current Tue Feb 18 12:13:15 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 143B937B401 for ; Tue, 18 Feb 2003 12:13:13 -0800 (PST) Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5326243F3F for ; Tue, 18 Feb 2003 12:13:12 -0800 (PST) (envelope-from dmp@pantherdragon.org) Received: from sparx.techno.pagans (12-224-208-117.client.attbi.com [12.224.208.117]) by spork.pantherdragon.org (Postfix) with ESMTP id 69B64FFE3; Tue, 18 Feb 2003 12:13:11 -0800 (PST) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by sparx.techno.pagans (Postfix) with ESMTP id 854BFAA8F; Tue, 18 Feb 2003 12:13:06 -0800 (PST) Message-ID: <3E5293D1.3050107@pantherdragon.org> Date: Tue, 18 Feb 2003 12:13:05 -0800 From: Darren Pilgrim User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: phk@phk.freebsd.dk Cc: freebsd-current@FreeBSD.ORG Subject: Re: New ad*s* devices not automatically appearing in devfs References: <58130.1045568607@critter.freebsd.dk> In-Reply-To: <58130.1045568607@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@phk.freebsd.dk wrote: > In message <3E521BE1.4040501@pantherdragon.org>, Darren Pilgrim writes: > >>When I add a new slice or partition to a disk, the device files don't >>automatically appear in /dev. If I reboot, it shows up, but having to >>reboot twice just to add a filesystem to a running disk is absurd. How >>do I make /dev automatically add these devices upon creation? Failing >>that, how do I force the system to notice the new device(s) and add them >>to /dev? > > > Which exact commands do you use to create them ? I used sysinstall, Configure->Fdisk to (in order) delete s3, create a 5120m s2, then Write the changes to disk. After exiting sysinstall: # fdisk ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=39714 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=39714 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 10485153 (5119 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 15/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 10485216, size 10485216 (5119 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 The data for partition 3 is: The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 30967776, size 9063936 (4425 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 15/ sector 63 # disklabel ad2s2 disklabel: /dev/ad2s2: No such file or directory # disklabel -r ad2s2 disklabel: /dev/ad2s2: No such file or directory # disklabel -w ad4s2 auto disklabel: /dev/ad4s2: No such file or directory Going back into sysinstall, the fdisk screen shows the old slice table, and the label screen shows s1, s3, and s4, but no s2. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message