Rather than repartitioning, I would suggest you create a swap file within
the current filesystem. It does not increase that much of overhead anyway.
You can follow the second part of the guide here:

http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html

On Tue, Dec 15, 2009 at 11:28 PM, Stanley <[email protected]> wrote:

>
> Using fdisk example for /dev/sda... type n to create a new partition, then
> p to tell fdisk that you want a primary partition. Then type 2 to create
> the second primary partition, /dev/sda2 in our case. When prompted for the
> first cylinder, hit enter. When prompted for the last cylinder, for example
> type +512M to create a partition 512MB in size. After you've done this,
> type t to set the partition type, 2 to select the partition you just
> created and then type in 82 to set the partition type to "Linux Swap".
> After completing these steps, typing p should display a partition table
> that looks similar to this:
>
> Disk /dev/sda: 30.0 GB, 30005821440 bytes
> 240 heads, 63 sectors/track, 3876 cylinders
> Units = cylinders of 15120 * 512 = 7741440 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
>
>
>
> /dev/sda1   *         1        14    105808+  83  Linux
> /dev/sda2            15        81    506520   82  Linux swap
>
>
> then tyoe w to save the partition
>
> then create the swap space
>
> mkswap /dev/sda2
>
> then add it to your fstab example:
>
> /dev/sda2 swap                    swap    defaults        0 0
>
>
> regs
>
> Stan
>
>
> 2009/12/15 Charles . <[email protected]>
>
>> Hello All,
>> Maybe this might sound stupid, but can you create a linux swap partition?
>> I've tried this using GParted, and I keep getting the attached.
>>
>> Charles
>>
>> _______________________________________________
>> MLUG-list mailing list
>> [email protected]
>> http://linux.org.mt/cgi-bin/mailman/listinfo/mlug-list
>>
>>
>
>
> _______________________________________________
> MLUG-list mailing list
> [email protected]
> http://linux.org.mt/cgi-bin/mailman/listinfo/mlug-list
>
>
_______________________________________________
MLUG-list mailing list
[email protected]
http://linux.org.mt/cgi-bin/mailman/listinfo/mlug-list

Reply via email to