Date: Wed, 20 Nov 2002 11:39:22 +0800 From: "kai ouyang" <oykai@msn.com> To: smkelly@zombie.org Cc: Current@FreeBSD.ORG Subject: Re: Hi,a little question about DP2. Message-ID: <F19xNad8qtBzrIDYav7000112c8@hotmail.com>
next in thread | raw e-mail | index | archive | help
Dear smkelly, >From: Sean Kelly <smkelly@zombie.org> >To: kai ouyang <oykai@msn.com> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F19xNad8qtBzrIDYav7000112c8>