Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Mar 2015 15:48:34 +1100
From:      Trevor Roydhouse <trev@sentry.org>
To:        freebsd-arm@freebsd.org
Subject:   Raspberry Pi B+ - swap failure on boot
Message-ID:  <54F3EBA2.2000507@sentry.org>

next in thread | raw e-mail | index | archive | help
$ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54F3EBA2.2000507>