Results 1 to 6 of 6

Thread: uuid error gives extra long boot time while it counts down

  1. #1
    Join Date
    Dec 2006
    Beans
    Hidden!

    uuid error gives extra long boot time while it counts down

    I get very long boot times which I think is related to this

    In the past, I had 4 hard drives installed, now only one drive.
    So is there an easy way to fix this?

    Code:
    Processing triggers for initramfs-tools (0.130ubuntu3) ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-10-generic
    W: initramfs-tools configuration sets RESUME=UUID=e2731c91-afe6-405e-9876-1e25ac9cd77e
    W: but no matching swap device is available.
    I: The initramfs will attempt to resume from /dev/sda6
    I: (UUID=388b3c4a-93a3-473c-89ec-77e8688e5845)
    I: Set the RESUME variable to override this.
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_GL.conf: No such file or directory
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
    Processing triggers for libc-bin (2.27-0ubuntu2) ...
    Processing triggers for menu (2.1.47ubuntu1) ...

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: uuid error gives extra long boot time while it counts down

    Post these in code tags:
    sudo blkid -c /dev/null -o list

    lsblk -o NAME,LABEL,PARTLABEL,SIZE,UUID,MOUNTPOINT

    cat /etc/fstab
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Dec 2006
    Beans
    Hidden!

    Re: uuid error gives extra long boot time while it counts down

    I solved by putting those 3 drives back into the PC.

  4. #4
    Join Date
    Jun 2015
    Beans
    Hidden!

    Re: uuid error gives extra long boot time while it counts down

    Quote Originally Posted by sdowney717 View Post
    I solved by putting those 3 drives back into the PC.
    That would work - I suspect also that commenting out the swap line in fstab would have done so too

  5. #5
    Join Date
    Nov 2009
    Beans
    11

    Re: uuid error gives extra long boot time while it counts down

    Code:
    Processing triggers for initramfs-tools (0.130ubuntu3) ...
    update-initramfs: Generating /boot/initrd.img-4.15.0-10-generic
    W: initramfs-tools configuration sets RESUME=UUID=e2731c91-afe6-405e-9876-1e25ac9cd77e
    W: but no matching swap device is available.
    I: The initramfs will attempt to resume from /dev/sda6
    I: (UUID=388b3c4a-93a3-473c-89ec-77e8688e5845)
    I: Set the RESUME variable to override this.
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_GL.conf: No such file or directory
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file or directory
    /sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
    Processing triggers for libc-bin (2.27-0ubuntu2) ...
    Processing triggers for menu (2.1.47ubuntu1) ...
    The ​initramfs-tools RESUME implies you have hibernation turned on. Hibernation relies on swap space that is >= memory.
    Your swap partition was on one of the removed drives. You can remove your old drives and setup a new swap on the single disk. The new swap can be a partition or a swap file. Using a swap file has the benefit of being easier to change/grow than a partition, especially when you have used up the rest of the drive with other partitions. Hibernation adds a little more effort for the swap file. When you boot without a defined swap space, your system may create a swap file at /swapfile automatically.

    1. Turn off swap:
      sudo swapoff -a
    2. Edit /etc/fstab:
      sudo nano /etc/fstab and remove / comment out (#) the swap line
    3. Remove the partition / drive / swap file:
      gparted, parted, sudo rm /swapfile or similar. In your case, just power off and remove the drives (you can do this for the reboot later).
    4. Create the SWAP space file (for a 16GiB RAM system + 2GiB, adjust if different):
      sudo dd if=/dev/zero of=/swapfile bs=1024 count=18874368
      --OR--
      sudo fallocate -l 18g /swapfile (but this may allow for holes in the file, see others for problems)

      sudo chmod 600 /swapfile
      sudo mkswap /swapfile
      sudo swaplabel -L SWAP /swapfile
    5. Turn on swap:
      sudo swapon /swapfile
    6. Edit the file "/etc/fstab" and add / un-comment and change the swap line:
      sudo nano /etc/fstab
      Add/Change: /swapfile none swap sw 0 0
      --OR--
      echo '/swapfile none swap defaults 0 0' | sudo tee -a /etc/fstab
    7. Get the swap file's partition info:
      blkid
      The UUID can be used as you have above or the device path.
    8. Get the swap file's partition offset:
      sudo filefrag -v /swapfile
      Use the first extent line to get the physical offset to the file in the partition.
      Code:
      Filesystem type is: ef53
      File size of /swapfile is 19327352832 (4718592 blocks of 4096 bytes)
       ext:     logical_offset:        physical_offset: length:   expected: flags:
         0:        0..       0:  106084352.. 106084352:      1:
      Then, 106084352 is the physical offset.
    9. Edit the hibernate resume configuration:
      sudo nano /etc/initramfs-tools/conf.d/resume
      Modify/Add the "RESUME" and "RESUME_OFFSET" lines and values:
      * The "RESUME" value is from the "blkid" command for the partition containing the swap file.
      RESUME=/dev/sda1 (or similar)
      --OR--
      RESUME=UUID=<your UUID here>
      * The "RESUME_OFFSET" value is from the "filefrag" command and is the file's offset location from the beginning of the partition.
      RESUME_OFFSET=<your offset here>
    10. Edit the GRUB configuration to include the "resume" and "resume_offset" values:
      sudo nano /etc/default/grub
      Modify: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=<as above> resume_offset=<as above>"
    11. Update the initramfs:
      sudo update-initramfs -u -k all
    12. Update GRUB:
      sudo update-grub
    13. Reboot


    Enjoy!

  6. #6
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: uuid error gives extra long boot time while it counts down

    Ubuntu 18.04 is already released.

    Thread closed

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
  •