I've run out of swap-space on my computer. I was wondering if I could temporarily create a loop-device and mount it as swap? At least it would solve my problems for the moment. Right now I have a load of over 10.
Never mind. It was easier than I thought. I just created a file of zeros with dd and then ran mkswap on it afterwards. onsdag 07 januari 2004 07:15 skrev Arvid Johansson:
I've run out of swap-space on my computer. I was wondering if I could temporarily create a loop-device and mount it as swap? At least it would solve my problems for the moment. Right now I have a load of over 10.
Arvid Johansson wrote:
Never mind. It was easier than I thought. I just created a file of zeros with dd and then ran mkswap on it afterwards.
Quite some time ago I installed on a laptop and forgot to add a swap partition, I created a swap file and did a "swapon /swapfile", but I couldn't get it to mount automatically, can't remember what I tried then, but I always had to do the swapon from the command line. Does changing the "swapon -a" in /etc/init.d/boot.localfs or /etc/init.d/boot.swap fix it? Regards Sid.
onsdag 07 januari 2004 07:15 skrev Arvid Johansson:
I've run out of swap-space on my computer. I was wondering if I could temporarily create a loop-device and mount it as swap? At least it would solve my problems for the moment. Right now I have a load of over 10.
-- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
I used to make the file, run mkswap on it, and then swapon. in fstab is was basically the same as for a partition, except with the file's path instead of the device name - after the partition that the file is on Hans
Hans du Plooy wrote:
I used to make the file, run mkswap on it, and then swapon.
in fstab is was basically the same as for a partition, except with the file's path instead of the device name - after the partition that the file is on
Hans
Thanks, interesting, that's what I also did, but it didn't work back then - it was either RedHat 6.2 or a SuSE distro of that vintage. Regards SId. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
On Wed, 2004-01-07 at 08:56, Sid Boyce wrote:
Arvid Johansson wrote:
Never mind. It was easier than I thought. I just created a file of zeros with dd and then ran mkswap on it afterwards.
Quite some time ago I installed on a laptop and forgot to add a swap partition, I created a swap file and did a "swapon /swapfile", but I couldn't get it to mount automatically, can't remember what I tried then, but I always had to do the swapon from the command line. Does changing the "swapon -a" in /etc/init.d/boot.localfs or /etc/init.d/boot.swap fix it? Regards Sid.
swap files are -not- mounted, they are used in the raw, so to speak. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
participants (4)
-
Arvid Johansson
-
Hans du Plooy
-
Kenneth Schneider
-
Sid Boyce