Announcement

Collapse
No announcement yet.

[SOLVED] SWAP turning off

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] SWAP turning off

    I recently turned off the SWAP partition to try and see if I could increase its size from an adjacent partition. Finally deciding not to do so I turned it back on.

    Since then every time I reboot the system I get an error message and when I finish the boot process and check via GParted the SWAP partition is turned off and I have to manually turn it on.

    Any possible fix?

    Running Kubuntu v.9.10 x64 with all updates.
    [img width=400 height=96]http://img122.imageshack.us/img122/6727/newav1no9.jpg[/img] <br />The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; [i]Bill Watterson

    #2
    Re: SWAP turning off

    Make sure it's properly registered in your /etc/fstab file.
    For example mine:
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'vol_id --uuid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>  <type> <options>    <dump> <pass>
    proc      /proc      proc  defaults    0    0
    # / was on /dev/sda7 during installation
    UUID=ff68635b-8c8a-4a84-abf1-3fa6b459de40 /        ext4  relatime,errors=remount-ro 0    1
    # swap was on /dev/sda6 during installation
    UUID=4ee5a92d-6ee5-4d42-bfff-9d298486e2e8 none      swap  sw       0    0
    /dev/scd0    /media/cdrom0  udf,iso9660 user,noauto,exec,utf8 0    0
    # hardy install
    /dev/sda5 /media/Hardy ext3 rw,nosuid,nodev,uhelper=hal 0 0

    Comment


      #3
      Re: SWAP turning off

      If you fiddled with the swap partition, the uuid may have changed.

      You can get the right uuid for /etc/fstab with:
      Code:
      sudo blkid | grep swap

      Comment


        #4
        Re: SWAP turning off

        It was in fact the changed UUID which was messing things up. Changing it fixed the problem.

        Thanks for both suggestions, appreciate it.

        Regards
        [img width=400 height=96]http://img122.imageshack.us/img122/6727/newav1no9.jpg[/img] <br />The surest sign that intelligent life exists elsewhere in the universe is that it has never tried to contact us<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; [i]Bill Watterson

        Comment

        Working...
        X