From: "Тимофей Титовец" <nefelim4ag@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: swapfile on btrfs, temporary solution for wiki
Date: Mon, 21 Oct 2013 23:37:59 +0300 [thread overview]
Message-ID: <CAGqmi74OvQ=BFroP+QCf6eUtc61__LYRGtZJNcPz1XrSWX-q_w@mail.gmail.com> (raw)
Hello list, i know what btrfs don't support swap files.
I read arch wiki and when i reading about systemd addon for auto
create swapfile on btrfs, i invent the way, how create and using swap
file, just see following sh code:
swapfile=$(losetup -f) #free loop device
truncate -s 8G /swap #create 8G sparse swap file
losetup $swapfile /swap #mount file to loop
mkswap $swapfile
swapon $swapfile
i just adding this to rc.local and this just work.
May be, add it to Wiki as temporary solution to using swap file?
(sorry for my bad english)
next reply other threads:[~2013-10-21 20:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 20:37 Тимофей Титовец [this message]
2013-10-24 20:52 ` swapfile on btrfs, temporary solution for wiki Timofey Titovets
2013-10-25 9:36 ` dima
2013-10-25 10:35 ` Roman Mamedov
2013-10-25 10:44 ` Hugo Mills
2013-10-26 9:28 ` karim.allah.ahmed
2013-10-26 9:30 ` karim.allah.ahmed
2013-10-26 11:50 ` Hugo Mills
2013-10-26 14:11 ` Duncan
2013-10-30 15:54 ` David Sterba
2013-10-30 20:11 ` Timofey Titovets
2013-10-30 20:12 ` Timofey Titovets
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGqmi74OvQ=BFroP+QCf6eUtc61__LYRGtZJNcPz1XrSWX-q_w@mail.gmail.com' \
--to=nefelim4ag@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).