usb flash drive as swap in linux
Mark Jarvis
mark.jarvis at pvmail.maricopa.edu
Sat Mar 18 13:31:34 MST 2006
FWIW, I remember the figure of 1000 writes from when flash drives first
came out. May or may not have been accurate, may have changed by now.
Another FWIW--some distros add "noatime" to the auto-generated fstab
entries for flash drives. Presumably they also believe that flash drives
have limited writes available.
1000 writes is a lot when all you're using it for is advanced
sneaker-net, not a lot for a swap drive.
Just $0.85 ($0.02 adjusted for inflation),
-mj-
Jeremy C. Reed wrote:
> On Wed, 15 Mar 2006, Technomage wrote:
>
>
>>I have made the required changes to fstab in order to use a 128 meg USB
>>device.
>>
>>only problem I seem to have is that even though the modules are loaded, it
>>will not initialize as swap space unless I issue a swapon -a from root after
>>startup.
>>
>>some help would be greatly appreciated.
>>
>>system is debian kernel 2.6.8-2-386 running on a compaq presario laptop.
>
>
> Have a look at your /etc/rcS.d/ scripts to see when your swap is mounted.
>
> Some (All?) Debian systems do it twice (but maybe still before your flash
> disk is available).
>
> As a workaround, add a new rc?.d script to run your swapon -a after your
> new device is available.
>
> I understand that flash disks do not like a lot of writing. Maybe use as a
> swap is a bad idea (since it could soon fail). Anyone else have experience
> with this? (How soon?)
>
> Jeremy C. Reed
>
> echo '9,J8HD,fDGG8B@?:536FC5=8 at I;C5?@H5B0D at 5GBIELD54DL>@8L?:5GDEJ8LDG1' |\
> sed ss,s50EBsg | tr 0-M 'p.wBt SgiIlxmLhan:o,erDsduv/cyP'
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
More information about the PLUG-discuss
mailing list