Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ubuntu 18.04 slow start up {SOLVED}
#1
i am running UBUNTU 18.04 with KERNEL 4.15.0.34  on a i5 3rd gen cpu, with 8gb ram, 250 ssd 

i have a root partition 25gb a home partition  40gb & a swap partition 3.5gb on the SSD  (DUAL BOOT) 

the boot time is around 2+mins from Post Grub menu  {before it used to around 1 min 20 sec}

where as the Windows 10 is under 45 sec 

what should i check i have also run FSCK all okay  memory test too

in disk app i cant find the swap partition but on gparted & sys monitor its visible   

startup apps also seems to be all normal 

any other details needed
 Linux Laptop: Hp DV6 3028tx i5
 User --> Ubuntu Desktop 18.04, 16.04, 14.04.
Reply
#2
(09-22-2018, 07:57 PM)andyraman Wrote: i am running UBUNTU 18.04 with KERNEL 4.15.0.34  on a i5 3rd gen cpu, with 8gb ram, 250 ssd 

i have a root partition 25gb a home partition  40gb & a swap partition 3.5gb on the SSD  (DUAL BOOT) 

the boot time is around 2+mins from Post Grub menu  {before it used to around 1 min 20 sec}

where as the Windows 10 is under 45 sec 

what should i check i have also run FSCK all okay  memory test too

in disk app i cant find the swap partition but on gparted & sys monitor its visible   

startup apps also seems to be all normal 

any other details needed

All of your boot up times are kinda slow; I used to have better boot times on worse computers.

Have you looked through the output of 'dmesg' if there are any error or warning messages?
Code:
dmesg | grep -i err
dmesg | grep -i warn
Reply
#3
i did not understand ?? should I just format the root with a distro like ubuntu 16.04

[Image: EZJkob2.png][Image: zZeFXyK.png][Image: xO4EWKD.jpg]
 Linux Laptop: Hp DV6 3028tx i5
 User --> Ubuntu Desktop 18.04, 16.04, 14.04.
Reply
#4
(09-24-2018, 06:38 AM)andyraman Wrote: i did not understand ?? should I just format the root with a distro like ubuntu 16.04

[Image: EZJkob2.png][Image: zZeFXyK.png][Image: xO4EWKD.jpg]

Ah... I might know what is going on...

Can you please post the output of the following commands:

Code:
lsblk
cat /etc/fstab
Reply
#5
i have deleted the swap of the SSD and enabled SWAP of HDD  (new swap 24gb)

[Image: YETcV0o.png]

[Image: aebthT7.png]


[Image: qk5qrEa.png]
 Linux Laptop: Hp DV6 3028tx i5
 User --> Ubuntu Desktop 18.04, 16.04, 14.04.
Reply
#6
these are the results
 Linux Laptop: Hp DV6 3028tx i5
 User --> Ubuntu Desktop 18.04, 16.04, 14.04.
Reply
#7
(09-26-2018, 09:43 AM)andyraman Wrote: these are the results

Ok, as I expected, Linux tries to mount swap but fails, which dramatically increases your boot time.

In your /etc/fstab you declare 4 partitions o be mounted as swap, but your 'lsblk' shows that only 2 are mounted.
I believe 'sdb' is your HDD and 'sda' your SSD. In that case you are indeed using the swap from the HDD,
but I believe Linux is still trying to load the swap from the SSD, but can't since you deleted that partition.

First of all, keep it simple: Use 1 swap partition.
I am not entirely sure why your drives are formatted as they are (do you have a dual boot?),
but you are currently using a 8 GB partition (sdb2) and a 16 GB partiton (sdb5) as swap.
Decide on 1 partiton you would like as swap (sdb2 and sdb5 are already correctly formatted for that).
Then use 'lsblk -f' to get the UUID of the partition you would like to use as swap and write that down.
Now open /etc/fstab/ in your preferred text editor as root.
Delete all swap related lines, but be careful not to edit the lines for your root and home partitions.
Now add a new line to the file like the following:
Code:
UUID=00000000-0000-0000-0000-000000000000    none     swap      sw                   0         0
But replace the empty UUID I used as an example with the one you wrote down.
Save that file, close the text editor and restart.
Now only one swap partition should be mounted on boot and your startup time should be back to normal.
Reply
#8
Successfully completed the course thank you so much for your help and responses
Now swap on SSD only not on HDD
BOOT TIME from Grub menu 50 seconds.. So much improved.

YAAAY
 Linux Laptop: Hp DV6 3028tx i5
 User --> Ubuntu Desktop 18.04, 16.04, 14.04.
Reply
#9
I am glad I could help Smile
Reply
#10
Maybe you can try and make a swap file and then delete th swap partition.  My Ubuntu 18.04 comes wjth a swap file not a swap partition.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)