From owner-freebsd-questions@FreeBSD.ORG Sat Oct 17 22:41:40 2009 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 51E451065670 for ; Sat, 17 Oct 2009 22:41:40 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from ostracod.unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id AD0FD8FC1A for ; Sat, 17 Oct 2009 22:41:39 +0000 (UTC) Received: from vhoffman-macbook.local ([10.0.0.173]) (authenticated bits=0) by ostracod.unsane.co.uk (8.14.3/8.14.3) with ESMTP id n9INfsJU031061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Oct 2009 23:41:54 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4ADA4821.1040709@unsane.co.uk> Date: Sat, 17 Oct 2009 23:41:37 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Polytropon References: <4AD8EB8F.9010900@videotron.ca> <4AD95740.6010408@gmail.com> <4ADA3D48.70307@videotron.ca> <4ADA4279.4080006@unsane.co.uk> <20091018003100.f69bf5e4.freebsd@edvax.de> In-Reply-To: <20091018003100.f69bf5e4.freebsd@edvax.de> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: PJ , michael , freebsd-questions@freebsd.org Subject: Re: I hate to bitch but bitch I must 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: Sat, 17 Oct 2009 22:41:40 -0000 Polytropon wrote: > On Sat, 17 Oct 2009 23:17:29 +0100, Vincent Hoffman wrote: > >> yes. this makes a ufs label which you can access via /dev/ufs >> for example (my home system) >> jhary@ostracod >> (23:08:34 <~>) 0 $ ls /dev/ufs >> SCRATCH SSDROOT SSDUSR SSDVAR >> [...] >> /dev/ufs/SCRATCH on /scratch (ufs, local, noatime, gjournal) >> > ^^^^^^^ ^^^^^^^^ > > Wow! Last time I saw this was on EAW's WEGA (a UNIX System III > compatible UNIX developed in the GDR for the P8000 workstation). > There even was /etc/mount and /etc/fsck. :-) > > > Heh nothing so arcane here, I just use it as a scratch (disposable content) disk. >> /dev/ufs/SSDVAR /var ufs rw,noatime 2 2 >> /dev/label/SWAP none swap sw 0 0 >> > > These two lines illustrate the different use of the results > of "glabel label" for generic labels and "tunefs -L" for UFS > labels very well. > > > > >> note there I have also used glabel on the swap (command used was glabel >> label /dev/ad10p1) >> > > A really honest question: What does the "p" in "ad10p1" > indicate? I always thought swap partitions are something > like "ad10b" (an own partition right after the root > partition a). > > > I partitioned my disk as GPT using gpart. no real reason, just because i could ;) this give partitions (p) instead of slices (s) (I think, not certain thats what the p and s stand for but it makes sense) I could also have used the gpt labels instead of generic glabel labels. [root@ostracod /scratch]# dd if=/dev/zero of=dsk bs=1m count=10 10+0 records in 10+0 records out 10485760 bytes transferred in 0.055245 secs (189804954 bytes/sec) [root@ostracod /scratch]# mdconfig -a -t vnode -f dsk -u 10 [root@ostracod /scratch]# gpart add -l MDDISK -t freebsd-ufs md10 md10p1 added [root@ostracod /scratch]# ls /dev/gpt/ MDDISK > >> One thing to note with label, if you mount/use the device by is raw >> node, the label disapears. >> [...] >> This used to confuse me greatly :) >> > > Why make a label available for something to mount that is > already mounted and cannot be accessed through this label > while being mounted? :-) > > The kernel messages show such messages about removing labels > as soon as devices are mounted in the "traditional" way. > > > Indeed, that makes sense. Vince > >