Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2015 00:31:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204485] swapfile not mounted on boot
Message-ID:  <bug-204485-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204485

            Bug ID: 204485
           Summary: swapfile not mounted on boot
           Product: Base System
           Version: 10.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: zsolt.ero@gmail.com

By following the relevant section of the handbook
(https://www.freebsd.org/doc/handbook/adding-swap-space.html) I created a swap
file and set up fstab:

dd if=/dev/zero of=/usr/swap0 bs=1m count=2048
chmod 0600 /usr/swap0
echo "md99 none swap sw,file=/usr/swap0 0 0" >> /etc/fstab

Now, running "swapon -aL" does indeed mount the swap file.

The problem is that after reboot, the swap file is not mounted, and running
"swapon -aL" returns the following error: "md99 on /usr/swap0: Device already
in use"

I found a thread in the forum, which confirms that this is present in 10.0 and
10.1:
https://forums.freebsd.org/threads/freebsd-10-wont-add-swap-file.47167/

Upon asking on IRC, it was confirmed that it is a bug and it's recommended that
a bug ticket should be created for this.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204485-8>