Swap partition
Hi everyone,
I have a question about swap partitioning. When I installed RH 9.0 I was, for some reason, unable to create a swap partition. Now that I've got it installed though, I really would like to have one. I have an existing 1500MB swap partition, that I use for Windows; am I able to use this for a Linux swap also? I had to change some virtual memory settings under XP to get it to write to the correct drive, and I guess I'm wondering if RedHat has the same sort of thing. If that's not possible, then does anyone have any info on if I can still create one after installation? That's all folks.;) Thanks. |
You can use it for Linux, sure, but I'm not sure if it would confuse Windows. Because I think you'd have to 'mkswap' and then 'swapon' and then add it to your fstab. But then, whether Windows would use it as normal, I don't know.
1 and a half gigs? Yikes. That's a lotta swap. :) - Oh, and to the second question, if you've got free space, use it. If not, you'd have to look into parted and resizing yourself some swap space. |
What format is the partition? If it's linux swap filesystem, then sure, you can use it :)
You'll need to use something like fdisk or mkswap to change the type of partition it is though if it's not a linux swap (use: /sbin/fdisk -l to find out, as root of course ;) ). After you make it a linux swap you'll wanna add it to your fstab, something like: /dev/hdx swap swap defaults (or sw depending on the documentation you find) 0 0 You'll then need to "swapon" which means just type that into a terminal, again, as root. This turns the swap on. Then enjoy. Cool <see edit reason> |
All times are GMT -5. The time now is 09:30 AM. |