From owner-freebsd-arm@FreeBSD.ORG Mon Mar 2 04:48:45 2015 Return-Path: Delivered-To: freebsd-arm@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 6F33459F for ; Mon, 2 Mar 2015 04:48:45 +0000 (UTC) Received: from shadow.sentry.org (shadow.sentry.org [220.233.87.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05899915 for ; Mon, 2 Mar 2015 04:48:44 +0000 (UTC) Received: from shadow.sentry.org (localhost.sentry.org [127.0.0.1]) by shadow.sentry.org (8.14.8/8.14.8) with ESMTP id t224mYPu001389 for ; Mon, 2 Mar 2015 15:48:35 +1100 (EST) (envelope-from trev@sentry.org) Message-ID: <54F3EBA2.2000507@sentry.org> Date: Mon, 02 Mar 2015 15:48:34 +1100 From: Trevor Roydhouse Organization: Sentry User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Raspberry Pi B+ - swap failure on boot Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.4.3 (shadow.sentry.org [0.0.0.0]); Mon, 02 Mar 2015 15:48:35 +1100 (EST) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 04:48:45 -0000 $ uname -a FreeBSD rpi 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r278908: Tue Feb 17 23:25:47 UTC 2015 root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm cat /etc/fstab /dev/mmcsd0s1 /boot/msdos msdosfs rw,noatime 0 0 /dev/mmcsd0s2a / ufs rw,noatime 1 1 md /tmp mfs rw,noatime,-s30m 0 0 md /var/log mfs rw,noatime,-s15m 0 0 md /var/tmp mfs rw,noatime,-s5m 0 0 md99 none swap sw,file=/usr/swap0 0 0 After boot: $ swapinfo Device 1K-blocks Used Avail Capacity $ swapon -a swapon: md99 on /usr/swap0: Device already in use $ swapinfo Device 1K-blocks Used Avail Capacity $ swapoff -a - no output - $ swapon -a swapon: md99 on /usr/swap0: Device already in use $ swapinfo Device 1K-blocks Used Avail Capacity If I comment the entry in fstab, reboot, then uncomment it after logging in, it works as expected. -- Trevor Roydhouse BJuris, LLB, LLM (UNSW) Systems Developer Australasian Legal Information Institute Web : www.austlii.edu.au