From owner-freebsd-current Tue Nov 19 19:39:26 2002 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 D2FD637B401 for ; Tue, 19 Nov 2002 19:39:23 -0800 (PST) Received: from hotmail.com (f19.pav0.hotmail.com [64.4.32.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DB5C43E42 for ; Tue, 19 Nov 2002 19:39:23 -0800 (PST) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Nov 2002 19:39:23 -0800 Received: from 210.74.136.33 by pv0fd.pav0.hotmail.msn.com with HTTP; Wed, 20 Nov 2002 03:39:22 GMT X-Originating-IP: [210.74.136.33] From: "kai ouyang" To: smkelly@zombie.org Cc: Current@FreeBSD.ORG Subject: Re: Hi,a little question about DP2. Date: Wed, 20 Nov 2002 11:39:22 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 20 Nov 2002 03:39:23.0380 (UTC) FILETIME=[6ACE2340:01C29046] 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 Dear smkelly, >From: Sean Kelly >To: kai ouyang >CC: Current@FreeBSD.org >Subject: Re: Hi,a little question about DP2. >Date: Tue, 19 Nov 2002 21:07:49 -0600 > >On Wed, Nov 20, 2002 at 10:29:16AM +0800, kai ouyang wrote: > >You can't `mknod` any device in /dev that isn't known to devfs. Devices are >name-based now: > >edgemaster# ls -l cuaa0 >crw-rw---- 1 uucp dialer 28, 128 Nov 18 14:13 cuaa0 >edgemaster# mknod newdevice c 28 128 >mknod: newdevice: No such file or directory > >`mknod` is obsoleted for /dev when using devfs, as the device entries are >created and destroyed dynamically as devices are detected and removed from >the system. > >If you accidentally delete a device and aren't sure what the major/minor of >it was to recreate it, try something like this: > >edgemaster# rm cuaa0 >edgemaster# ls -l cuaa0 >ls: cuaa0: No such file or directory >edgemaster# devfs rule apply path cuaa0 unhide >edgemaster# ls -l cuaa0 >crw-rw---- 1 uucp dialer 28, 128 Nov 18 14:13 cuaa0 > Woo, thank you. you mean that I couldn't create device manually when using DEVFS? > >Actually it is the 'c' slice that is generally used to indicate the whole >disk. This is still the case in 5.0. However, I am unable to tell you what >'d' used to represent. I am also clueless on this particular detail. > >Hope that helps. I think 'c' partition represents the slice total size rather than the whole disk size. The follow is my DP2 default partition info # size offset fstype [fsize bsize bps/cpg] a: 262144 63 4.2BSD 2048 16384 16392 # (Cyl. 0*- 16*) b: 477792 262207 swap # (Cyl. 16*- 46*) c: 14329917 63 unused 0 0 # (Cyl. 0*- 891*) d: 524288 739999 4.2BSD 2048 16384 32776 # (Cyl. 46*- 78*) e: 524288 1264287 4.2BSD 2048 16384 32776 # (Cyl. 78*- 111*) f: 12541405 1788575 4.2BSD 2048 16384 28512 # (Cyl. 111*- 891*) cylinders/unit 0 Warning, partition c doesn't start at 0! Warning, partition c doesn't cover the whole unit! Warning, An incorrect partition c may cause problems for standard system utilities I don't know why the 'c' partition doesn't start at 0. It is strange. > >-- >Sean Kelly | PGP KeyID: 77042C7B >smkelly@zombie.org | http://www.zombie.org Thank you! Best Regards Ouyang Kai _________________________________________________________________ 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message