Sign in to follow this  
Followers 0
dinscurge

allready have 4 parts but i want swap

5 posts in this topic

basically is there anyway to mount a file/dir as swap. as linux supposedly the more "advanced" operating system should be able to mount a file as swap. i mean solaris/opensolaris/freebsd/openbsd/netbsd/midnightbsd/dragonflybsd/windows 2000/xp/server 2003/server 2008/vista/7 ect. can do it why cant linux?
so if possible how would i go about doing that as google of course doesn't help at all as im not trying to install linux which is the only thing that comes up for probably unrelated reason.
part table is sda1/ntfs/xp sda2/ext4/sidux sda3/zfs/opensolaris sda4/efi/speeds up booting probably suspends bios there.

sda2 is like 50gb and im using like 3-4. space is not ever going to be an issue to have 4-8gb of swap. Edited by dinscurge
1 person likes this

Share this post


Link to post
Share on other sites
[quote name='dinscurge' date='27 October 2009 - 09:57 PM' timestamp='1256698679' post='346715']
basically is there anyway to mount a file/dir as swap. as linux supposedly the more "advanced" operating system should be able to mount a file as swap. i mean solaris/opensolaris/freebsd/openbsd/netbsd/midnightbsd/dragonflybsd/windows 2000/xp/server 2003/server 2008/vista/7 ect. can do it why cant linux?
so if possible how would i go about doing that as google of course doesn't help at all as im not trying to install linux which is the only thing that comes up for probably unrelated reason.
part table is sda1/ntfs/xp sda2/ext4/sidux sda3/zfs/opensolaris sda4/efi/speeds up booting probably suspends bios there.

sda2 is like 50gb and im using like 3-4. space is not ever going to be an issue to have 4-8gb of swap.
[/quote]

Perhaps you're looking for the command swapon

Share this post


Link to post
Share on other sites
neh it was
[code]dd if=/dev/zero do=/swap bs=1024 count=#######[/code] thought i would have to do a fancier command than block size 1kb
1 person likes this

Share this post


Link to post
Share on other sites
Are you using a file for swap because you've run out of partition slots? If so, you can create a partition as logical, which means it can contain other partitions. Of course, that would involve repartitioning the disk, which you might not want to do anyway.

Share this post


Link to post
Share on other sites
have 4 primarys, i mean if i reinstalled i could have logical to have a part for swap but i only have 1 linux distro, there's no need to have a part for it.
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0