Swapping to a large sparse file

jd1008 jd1008 at gmail.com
Sun Jan 18 03:05:55 UTC 2015


On 01/17/2015 07:14 PM, John Mellor wrote:
> You do not need to mess it up, unless you are actually using all 2TB 
> of the disk.  Use gparted to shrink the existing partitions as required.
>
> On Sat, Jan 17, 2015 at 8:11 PM, jd1008 <jd1008 at gmail.com 
> <mailto:jd1008 at gmail.com>> wrote:
>
>
>     On 01/17/2015 06:02 PM, Chris Murphy wrote:
>
>         https://wiki.archlinux.org/index.php/Uswsusp
>
>         It looks like it support swapfiles. I still don't think a
>         sparse file
>         backing a loop device as a swap device will work for suspend
>         to disk,
>         but it may just be a matter of creativity. If this is a laptop
>         I think
>         you're better off with swap on the internal drive and just
>         make up the
>         space you've lost some other way. If you ever have to grab it
>         and go
>         you don't want an object attached that can get caught on
>         something and
>         snapped off. If the laptop has an optical drive, remove it and
>         put in
>         a hard drive to supplement the SSD.
>
>     The nand flash sinks completely into the multi-flash
>     reader/writer, nothing to protrude. So I think this
>     is a good solution for my situation. I really do not
>     want to back up 2TB drive, repartition it to create
>     a 16GB swap partition and restore the rest.
>     Too gosh darned time consuming.
>
Yes, I knew about what gparted can do. I had tried it
on a 1tb drive, and it still took at least 2  hours.
Maybe there was an issue with the sata internal bus???




More information about the users mailing list