Results 1 to 8 of 8

Thread: Delete swap partiton

  1. #1
    Join Date
    Dec 2008
    Beans
    3

    Unhappy Delete swap partiton

    Hey, I triple booted Vista, XP, and Ubuntu 8.10 and Ubuntu can see the other partitions but xp and vista cant see the Ubuntu partition. I already tried the ifs driver but it didn't work so i decided to make a shared partition but I already reached the maximum of 4 partitions. So i wanted to ask if it is safe to delete the swap partition? I don't use hibernation, just suspend.

  2. #2
    Join Date
    Jan 2007
    Location
    ~/PA/USA
    Beans
    1,980
    Distro
    Ubuntu

    Re: Delete swap partiton

    It's safe to delete, although the kernel is still implementing the swap within the code so it's always good to have some swap space. You can just use a swap file rather than a partition.

  3. #3
    Join Date
    Apr 2007
    Location
    Cullman, AL
    Beans
    652
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Delete swap partiton

    If you have plenty of physical memory, it should be safe to delete it. However, with no swap, when you run out of physical memory you could run into problems.
    Guide to forum text formatting code. Please use them | Use descriptive thread titles.

  4. #4
    Join Date
    Dec 2008
    Beans
    3

    Re: Delete swap partiton

    uummm... How do you make a swap file and not a partition?

  5. #5
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Delete swap partiton

    Yes, you can delete it (I assume you have plenty of ram, like >1 GB). Just make sure to comment the line in /etc/fstab so linux doesn't try to mount it again

    Better yet, why don't you delete it, then create an extended partition, then create a new one on a logical partition inside, along with the others? You can make practically as many logical partitions inside as you want. (up to 63)

  6. #6
    Join Date
    Dec 2008
    Beans
    3

    Re: Delete swap partiton

    Yes i have 2GB of ram, how do you make a logical partition?

  7. #7
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

  8. #8
    Join Date
    Jan 2007
    Location
    ~/PA/USA
    Beans
    1,980
    Distro
    Ubuntu

    Re: Delete swap partiton

    Quote Originally Posted by _TUX_ View Post
    uummm... How do you make a swap file and not a partition?
    The advantage of a swap file is that you don't need to find an empty partition or repartition a disk to add additional swap space. If your still interested, here is how to create a 1GB file, type:
    Code:
    dd if=/dev/zero of=/swapfile bs=1024 count=1048576
    /swapfile is the name of the swap file, and the count of 1048576 is the size in kilobytes (i.e. 1GB). Similarly, mount it using the swapon command:
    Code:
    swapon /swapfile
    The /etc/fstab entry for a swap file would look like this:
    Code:
    /swapfile       none    swap    sw      0       0
    Hope this helps.......

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •