LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-14-2020, 05:57 PM   #1
no-windose
Member
 
Registered: Jun 2018
Posts: 98
Blog Entries: 2

Rep: Reputation: Disabled
wrong UUID assumed during boot


My boot time is a bit long and it gives me the following message:

W: initramfs-tools configuration sets RESUME=UUID=long-alpha-numerical-string
W: but no matching swap device is available.

I get the same message after boot if I type at the command line:

# update initramfs -u

Moreover, if I display the block device attribute with

# blkid

I get a list of UUIDs, none of which matches the one showing up on the long string in the warning message. Obviously, the UUID called by initramfs is wrong. Apart from that, my Ubuntu 18.04 installation works well but I may not have a working swap space.

Could anyone help me set up the correct UUID at boot time?

Last edited by no-windose; 05-14-2020 at 05:59 PM.
 
Old 05-15-2020, 10:53 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Edit /etc/initramfs-tools/conf.d/resume and replace the wrong UUID there with that of your swap partition. Then
Code:
update initramfs -u
update-grub
 
Old 05-15-2020, 03:21 PM   #3
no-windose
Member
 
Registered: Jun 2018
Posts: 98

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks shruggy but I have already tried what you suggest and I still get the same warning message with the same wrong UUID...
 
Old 05-15-2020, 05:50 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Might have been easier to just adjust the UUID of the swap to match rather than chase where it is referenced - see "man mkswap".
Else check that grub doesn't also pass the same resume to the kernel - the update initramfs probably picks that up.
 
Old 05-16-2020, 03:58 PM   #5
no-windose
Member
 
Registered: Jun 2018
Posts: 98

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks syg00. Should I type something like

Quote:
# mkswap --uuid UUID /dev/sdx
with UUID as it appears on the warning message?

Last edited by no-windose; 05-16-2020 at 04:00 PM.
 
Old 05-16-2020, 04:46 PM   #6
sp331yi
Member
 
Registered: Mar 2020
Location: NM
Distribution: antiX 19.2 | Slacko pup | Miyo
Posts: 104

Rep: Reputation: Disabled
Why not mcedit your fstab to show identical UUID from the blkid command?
Wouldn't this be enough?
 
Old 05-16-2020, 04:49 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Yep I’d just fix the fstab to have the correct uuid done deal.
 
Old 05-17-2020, 03:17 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Quote:
Originally Posted by no-windose View Post
Thanks syg00. Should I type something like
Close - it will (probably) be a partition, not a disk; lsblk will indicate that.

As for the fstab comments, this failure is in the initramfs - way before the fstab is processed.
 
Old 05-17-2020, 09:53 AM   #9
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,005
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
no-windose,

Obtain the correct UUID (for example, 948396b3-f329-4b5a-9771-1464ff25eca9) for the swap partition using the blkid command.

Then add that UUID to this file:

/etc/initramfs-tools/conf.d/resume

using the following command:

Code:
echo "RESUME=UUID=948396b3-f329-4b5a-9771-1464ff25eca9" | sudo tee /etc/initramfs-tools/conf.d/resume
Then update the kernels on the system:

Code:
sudo update-initramfs -u -k all
Reboot the system:

Code:
reboot
 
Old 05-17-2020, 01:11 PM   #10
no-windose
Member
 
Registered: Jun 2018
Posts: 98

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thank you all but neither modifying fstab not resume makes any difference...
 
Old 05-18-2020, 01:40 AM   #11
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,005
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
no-windose,

Open /etc/initramfs-tools/conf.d/resume and either delete that particular line or put a comment (#) in front of it.

Then reboot and run:

Code:
sudo apt update && sudo apt upgrade
 
Old 05-18-2020, 11:38 AM   #12
no-windose
Member
 
Registered: Jun 2018
Posts: 98

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
beachboy2,

If I comment or delete this particular line, it then takes ages to boot and I still get the same warning message.
 
Old 05-18-2020, 11:59 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Drop it, and try a different disto. mO
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] UUID booting: tune2fs cannot set uuid of flash thumb? creates virtual box issue X-LFS-2010 Linux - Newbie 6 06-20-2018 09:28 PM
[SOLVED] /dev/disk/by-uuid/<uuid here> does not exist and initramfs shell Mitt Green Linux - Kernel 4 08-03-2015 11:56 AM
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 07:39 PM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration