linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* swapfile on btrfs, temporary solution for wiki
@ 2013-10-21 20:37 Тимофей Титовец
  2013-10-24 20:52 ` Timofey Titovets
  0 siblings, 1 reply; 12+ messages in thread
From: Тимофей Титовец @ 2013-10-21 20:37 UTC (permalink / raw)
  To: linux-btrfs

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)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-10-30 20:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 20:37 swapfile on btrfs, temporary solution for wiki Тимофей Титовец
2013-10-24 20:52 ` 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

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).