Raspberry Pi B+ - swap failure on boot
Trevor Roydhouse
trev at sentry.org
Mon Mar 2 04:48:45 UTC 2015
$ uname -a
FreeBSD rpi 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r278908: Tue Feb 17
23:25:47 UTC 2015
root at 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
More information about the freebsd-arm
mailing list