Announcement

Collapse
No announcement yet.

broken SWAP

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

    broken SWAP

    Hello,
    This isn't actually a just after installation issue, but very similar to one of these, thus posting it here.

    Did a very stupid mistake: while intending to delete Linux partitions on an USB key (using KDE Partition Manager), I actually deleted the "linuxswap" and "extended" partitions of the main system on the hard-disk...
    Recreated them with KDE Partition Manager, but couldn't make the "linuxswap" to mount by UUID, and with the "sw" mounting option (like the system on another computers shows).
    Also tried the recovery mode, which showed that SWAP wasn't accessible (does not automatically mount at reboot).
    As a result, rebooting is very slow, kinda 10-15min (with an SSD), than, while checking in KDE Partition Manager, the "linuxswap" is not activated. Did activate it manually, but does not memorize this option for the next reboot.
    Would have tried some settings in grub2 if I could open it in a GUI (like it was with 14.04), but couldn't.
    Need help, please: how could I fix this mistake?
    Thanks,
    aria

    #2
    lets see
    Code:
    cat /etc/fstab
    and
    Code:
    blkid
    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      cat /etc/fstab:
      Code:
      # /etc/fstab: static file system information.
      #
      # Use 'blkid' 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>
      # / was on /dev/sda1 during installation
      UUID=2148a091-c8a6-4af4-bec9-271f95991275 /               ext4    errors=remount-ro 0       1
      # swap was on /dev/sda5 during installation
      UUID=b7a48347-1b16-4324-a0a7-ae71486b3676 none            swap    sw              0       0
      blkid:
      Code:
      /dev/sda1: UUID="2148a091-c8a6-4af4-bec9-271f95991275" TYPE="ext4" PARTUUID="23328fe2-01"
      /dev/sda5: UUID="3d21ed5e-c3c9-4f4f-a08a-dc0286c2ebf1" TYPE="swap" PTTYPE="dos" PARTUUID="23328fe2-05"
      Last edited by aria; Nov 20, 2017, 04:13 PM.
      aria

      Comment


        #4
        Checked, and with the linuxswap inactive after booting, or manually activated in KDE Part Mngr, the results are the same.
        Correction: only difference was in /etc/fstab at "# swap was on|of ...".
        Last edited by aria; Nov 20, 2017, 04:47 PM.
        aria

        Comment


          #5
          Blkid is reporting a UUID that is (now) different that that you are using for swap in fstab. Correct that and you should be fine.
          Using Kubuntu Linux since March 23, 2007
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Originally posted by aria View Post
            cat /etc/fstab:
            Code:
            # /etc/fstab: static file system information.
            #
            # Use 'blkid' 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>
            # / was on /dev/sda1 during installation
            UUID=2148a091-c8a6-4af4-bec9-271f95991275 /               ext4    errors=remount-ro 0       1
            # swap was on /dev/sda5 during installation
            UUID=[COLOR=#ff0000]b7a48347-1b16-4324-a0a7-ae71486b3676[/COLOR] none            swap    sw              0       0
            blkid:
            Code:
            /dev/sda1: UUID="2148a091-c8a6-4af4-bec9-271f95991275" TYPE="ext4" PARTUUID="23328fe2-01"
            /dev/sda5: UUID="[COLOR=#0000cd]3d21ed5e-c3c9-4f4f-a08a-dc0286c2ebf1[/COLOR]" TYPE="swap" PTTYPE="dos" PARTUUID="23328fe2-05"
            replace the part in red with the part in blue.

            VINNY
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Thank you all,
              Everything works perfect now!


              Note for myself:
              Copied the swap UUID from the result posted here above for "blkid" (which is the actual UUID).
              Konsole: kdesudo kate /etc/fstab
              Pasted it in Kate, in "fstab", replacing the old UUID.
              Saved, closed all, and reboot.
              aria

              Comment


                #8
                Originally posted by aria View Post
                Thank you all,
                Everything works perfect now!


                Note for myself:
                Copied the swap UUID from the result posted here above for "blkid" (which is the actual UUID).
                Konsole: kdesudo kate /etc/fstab
                Pasted it in Kate, in "fstab", replacing the old UUID.
                Saved, closed all, and reboot.
                so you good now ,,,rite?

                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment


                  #9
                  Sure! System works again like a charm.
                  Thanks!
                  aria

                  Comment

                  Working...
                  X