LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-23-2021, 03:47 AM   #1
deltasata
LQ Newbie
 
Registered: Apr 2021
Posts: 13

Rep: Reputation: Disabled
Long boot time, /etc/initramfs-tools/conf.d/resume not found


After I mount a hdd I am finding relatively long boot time on ubuntu 20.04.
On my PCI gen4 nvme, `systemd-analyze`

````
Startup finished in 10.499s (firmware) + 3.259s (loader) + 4.428s (kernel) + 8.384s (userspace) = 26.572s
graphical.target reached after 8.379s in userspace

````
which sometimes goes above 31s!

My `/etc/fstab` looks like this.
````
# /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/nvme0n1p2 during installation
UUID=db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=F40C-278D /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

###/dev/sda1 /work ext4 defaults 0 1
UUID=531b1b74-891f-4f18-a288-cba9990bd31d /work ext4 defaults 0 0
````

However following https://askubuntu.com/questions/1013...013935#1013935
I tried to edit `/etc/initramfs-tools/conf.d/resume` which I could not find. When I created a file and followed rest of the advices, nothing improved.

I am completely confused to see conflicting information in various forums. Can anyone please help?

**Edit 1:** Random Information: `sudo blkid | grep swap` gave me no output!

`sudo blkid0` gives the following output
````
/dev/nvme0n1p2: UUID="db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b" TYPE="ext4" PARTUUID="2aaf1779-74a9-4b17-adb2-e212f3627f66"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/nvme0n1p1: UUID="F40C-278D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="9008c0d4-bf69-46d7-8343-1f9429767ca2"
/dev/sda1: UUID="531b1b74-891f-4f18-a288-cba9990bd31d" TYPE="ext4" PARTUUID="80fb880a-b674-43ed-af6e-c77bd1447040"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
````
 
Old 04-23-2021, 09:52 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
deltasata, LQ does not do markdown. It's actually older than markdown.
It would be nice if you could edit your first post to use BBCode instead (at least the code tags).

Your description lacks any real information; are you having an actual problem? Or just generally slow bootup?
Have you researched what is responsible for the slowness? What leads you to believe that it should be faster? What sort of hardware is this?

Try
Code:
systemd-analyze blame
as a very first troubleshooting step, but also answer my questions.

Quote:
Originally Posted by deltasata View Post
After I mount a hdd I am finding relatively long boot time on ubuntu 20.04.
On my PCI gen4 nvme, `systemd-analyze`

````
Startup finished in 10.499s (firmware) + 3.259s (loader) + 4.428s (kernel) + 8.384s (userspace) = 26.572s
graphical.target reached after 8.379s in userspace

````
which sometimes goes above 31s!

My `/etc/fstab` looks like this.
````
# /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/nvme0n1p2 during installation
UUID=db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=F40C-278D /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

###/dev/sda1 /work ext4 defaults 0 1
UUID=531b1b74-891f-4f18-a288-cba9990bd31d /work ext4 defaults 0 0
````

However following https://askubuntu.com/questions/1013...013935#1013935
I tried to edit `/etc/initramfs-tools/conf.d/resume` which I could not find. When I created a file and followed rest of the advices, nothing improved.

I am completely confused to see conflicting information in various forums. Can anyone please help?

**Edit 1:** Random Information: `sudo blkid | grep swap` gave me no output!

`sudo blkid0` gives the following output
````
/dev/nvme0n1p2: UUID="db3bac2a-f735-4b0d-a6b4-dc99fdf1a60b" TYPE="ext4" PARTUUID="2aaf1779-74a9-4b17-adb2-e212f3627f66"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/nvme0n1p1: UUID="F40C-278D" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="9008c0d4-bf69-46d7-8343-1f9429767ca2"
/dev/sda1: UUID="531b1b74-891f-4f18-a288-cba9990bd31d" TYPE="ext4" PARTUUID="80fb880a-b674-43ed-af6e-c77bd1447040"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
````
 
  


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
Long time member, long time *nix user, about time to say hi. stuman LinuxQuestions.org Member Intro 0 10-15-2013 07:35 AM
[SOLVED] what is difference between /etc/modules and /etc/initramfs-tools/modules ? masuch Linux - Newbie 4 05-29-2013 05:50 AM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM
initrd-tools or initramfs-tools kushalkoolwal Debian 9 12-28-2006 09:11 PM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:28 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