Date: Wed, 29 Jan 2014 18:54:47 GMT From: Mark Voortman <mark@voortman.name> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/186252: Cannot mount an encrypted swap file in fstab Message-ID: <201401291854.s0TIslgJ078243@oldred.freebsd.org> Resent-Message-ID: <201401291900.s0TJ00xi031393@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186252 >Category: misc >Synopsis: Cannot mount an encrypted swap file in fstab >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 29 19:00:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Mark Voortman >Release: 10.0 >Organization: >Environment: FreeBSD freebsd.localhost 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Adding md none swap sw,file=/swap 0 0 to /etc/fstab mounts the swap file on boot, but it will be unencrypted. When I make it md.eli (or md0.eli or /dev/md.eli or /dev/md0.eli) the swap file is not mounted. This approach does work for swap partitions (e.g., /dev/ada1.eli). >How-To-Repeat: Create a swap file: dd if=/dev/zero of=/swap bs=1024k count=64 chmod 0600 /swap and add it to /etc/fstab md.eli none swap sw,file=/swap 0 0 and reboot. The (encrypted) swap file will not be available. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401291854.s0TIslgJ078243>