From owner-freebsd-questions@FreeBSD.ORG Sat Dec 6 11:48:46 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 70E81FBE for ; Sat, 6 Dec 2014 11:48:46 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C9817DB for ; Sat, 6 Dec 2014 11:48:45 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XxDqq-0006Fe-AX for freebsd-questions@freebsd.org; Sat, 06 Dec 2014 12:48:40 +0100 Received: from p4fddc57a.dip0.t-ipconnect.de ([79.221.197.122]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Dec 2014 12:48:40 +0100 Received: from christian.baer by p4fddc57a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Dec 2014 12:48:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Christian Baer Subject: Re: Mounting swap without device name Date: Sat, 06 Dec 2014 12:48:24 +0100 Lines: 29 Message-ID: References: <20141206010235.331c3212.freebsd@edvax.de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fddc57a.dip0.t-ipconnect.de User-Agent: KNode/4.14.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2014 11:48:46 -0000 Polytropon wrote: Greetings and thanks for your answer! > With "glabel label" - you cannot use a UFS label (like for > the partitions shown in your /etc/fstab) because swap does > not have a file system, but you can use gpart to attach a > label to the partition itself. It could be "/dev/label/swap" > (note: not "/dev/ufs/swap" for mentioned reasons). Thanks for the info and the link! I had figured out why it didn't work the way I tried it - as you stated, swap is not a file system in the sense of UFS. What I hadn't figured out, was which tool I could use. :-) Afer reading your post I tried this: glabel label -v swap /dev/ada0s3b The answer I got was "done". However, there is no new device under /dev/label/ - in fact, the directory /dev/label/ doesn't exist. According to the manpage of glabel, the required kernel module should be loaded automatically - if not loaded anyway - and thus the device should be created. Where did I go wrong? Best regards, Chris