This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

booting takes too much after touching swap partition

pcfan5

Sat Dec 08, 2018 3:29:15 pm

Hello, I was told to enlarge my swap partition. I was able to do that from gparted from usb live, however now the booting is slow and takes to much to load the system.

I have GTP partitioned.
1mb left at the beggining 1 mb left at the end.

This is my machine

Code:
CPU~Dual core Pentium E5300 (-MCP-) speed/max~2384/2461 MHz Kernel~4.15.0-42-generic x86_64 Up~1:48 Mem~1285.3/3935.7MB HDD~585.7GB(76.1% used) Procs~218 Client~Shell inxi~2.2.35 


I tried recoering option from grub,and also run fsck* but the issue persists. (* I did this from gparted -usblive- check option)

Here is some info that may help, I don't know how to read it:

Code:

lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop1    7:1    0  42,1M  1 loop /snap/gtk-common-themes/701
loop19   7:19   0 227,3M  1 loop /snap/wine-platform-i386/23
loop17   7:17   0 102,8M  1 loop /snap/whatsdesk/10
loop8    7:8    0 104,2M  1 loop /snap/whatsdesk/14
sdb      8:16   0 232,9G  0 disk
└─sdb1   8:17   0 232,9G  0 part /media/sil/WD2500Exter
loop15   7:15   0  81,4M  1 loop /snap/pdfmixtool/283
loop6    7:6    0 144,4M  1 loop /snap/skype/63
loop13   7:13   0  87,9M  1 loop /snap/core/5742
loop4    7:4    0 237,9M  1 loop /snap/wine-platform-i386/25
loop11   7:11   0  88,2M  1 loop /snap/core/5897
sr0     11:0    1  1024M  0 rom 
loop2    7:2    0 147,3M  1 loop /snap/skype/66
loop0    7:0    0  87,1M  1 loop /snap/pdfmixtool/312
loop18   7:18   0  90,2M  1 loop /snap/scummvm/236
loop9    7:9    0 483,6M  1 loop /snap/libreoffice/90
sdc      8:32   1  14,5G  0 disk
└─sdc1   8:33   1  14,5G  0 part /media/sil/MULTIBOOT
loop16   7:16   0  34,6M  1 loop /snap/gtk-common-themes/818
loop7    7:7    0 141,8M  1 loop /snap/skype/60
sda      8:0    0 298,1G  0 disk
├─sda4   8:4    0     4G  0 part [SWAP]
├─sda2   8:2    0    23G  0 part /
├─sda3   8:3    0 271,1G  0 part /home
└─sda1   8:1    0     1M  0 part
loop14   7:14   0 227,2M  1 loop /snap/wine-platform-i386/22
loop5    7:5    0  81,4M  1 loop /snap/pdfmixtool/298
loop12   7:12   0  34,2M  1 loop /snap/gtk-common-themes/808
loop3    7:3    0 478,2M  1 loop /snap/libreoffice/86
loop20   7:20   0  87,9M  1 loop /snap/core/5662
loop10   7:10   0 102,8M  1 loop /snap/whatsdesk/11



This is my grub.cfg file

Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
else
  search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=C
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
else
  search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
fi
insmod gfxmenu
insmod png
set theme=($root)/usr/share/grub/themes/zorin/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 2,14,18; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
   set gfxpayload="${1}"
   if [ "${1}" = "keep" ]; then
      set vt_handoff=vt.handoff=7
   else
      set vt_handoff=
   fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Zorin' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-edd29811-e5a0-4882-87dc-b9b45853ea11' {
   recordfail
   load_video
   gfxmode $linux_gfx_mode
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
   else
     search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
   fi
        linux   /boot/vmlinuz-4.15.0-42-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff
   initrd   /boot/initrd.img-4.15.0-42-generic
}
submenu 'Advanced options for Zorin' $menuentry_id_option 'gnulinux-advanced-edd29811-e5a0-4882-87dc-b9b45853ea11' {
   menuentry 'Zorin, with Linux 4.15.0-42-generic' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-advanced-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-42-generic ...'
           linux   /boot/vmlinuz-4.15.0-42-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-42-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-42-generic (upstart)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-init-upstart-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-42-generic ...'
           linux   /boot/vmlinuz-4.15.0-42-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-42-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-42-generic (recovery mode)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-recovery-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-42-generic ...'
           linux   /boot/vmlinuz-4.15.0-42-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-42-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-39-generic' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-39-generic-advanced-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-39-generic ...'
           linux   /boot/vmlinuz-4.15.0-39-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-39-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-39-generic (upstart)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-39-generic-init-upstart-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-39-generic ...'
           linux   /boot/vmlinuz-4.15.0-39-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-39-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-39-generic (recovery mode)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-39-generic-recovery-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-39-generic ...'
           linux   /boot/vmlinuz-4.15.0-39-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-39-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-38-generic' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-38-generic-advanced-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-38-generic ...'
           linux   /boot/vmlinuz-4.15.0-38-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-38-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-38-generic (upstart)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-38-generic-init-upstart-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-38-generic ...'
           linux   /boot/vmlinuz-4.15.0-38-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-38-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-38-generic (recovery mode)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-38-generic-recovery-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-38-generic ...'
           linux   /boot/vmlinuz-4.15.0-38-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-38-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-36-generic' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-36-generic-advanced-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-36-generic ...'
           linux   /boot/vmlinuz-4.15.0-36-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-36-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-36-generic (upstart)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-36-generic-init-upstart-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      gfxmode $linux_gfx_mode
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-36-generic ...'
           linux   /boot/vmlinuz-4.15.0-36-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro  quiet splash $vt_handoff init=/sbin/upstart
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-36-generic
   }
   menuentry 'Zorin, with Linux 4.15.0-36-generic (recovery mode)' --class zorin --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-36-generic-recovery-edd29811-e5a0-4882-87dc-b9b45853ea11' {
      recordfail
      load_video
      insmod gzio
      if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
      insmod part_gpt
      insmod ext2
      set root='hd0,gpt2'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
      else
        search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
      fi
      echo   'Loading Linux 4.15.0-36-generic ...'
           linux   /boot/vmlinuz-4.15.0-36-generic root=UUID=edd29811-e5a0-4882-87dc-b9b45853ea11 ro recovery nomodeset
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-4.15.0-36-generic
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
   else
     search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
   fi
   knetbsd   /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt2'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  edd29811-e5a0-4882-87dc-b9b45853ea11
   else
     search --no-floppy --fs-uuid --set=root edd29811-e5a0-4882-87dc-b9b45853ea11
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Recovery Environment (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-2CA5-5380' {
   insmod part_msdos
   insmod fat
   set root='hd1,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  2CA5-5380
   else
     search --no-floppy --fs-uuid --set=root 2CA5-5380
   fi
   parttool ${root} hidden-
   drivemap -s (hd0) ${root}
   chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###



Thanks in advanced

zorinantwerp

Sat Dec 08, 2018 3:56:26 pm

Hi pcfan5

please give us the result from this Terminal command (Ctrl+Alt+t)
systemd-analyze time

thanks :)

pcfan5

Sat Dec 08, 2018 4:11:50 pm

zorinantwerp wrote:Hi pcfan5

please give us the result from this Terminal command (Ctrl+Alt+t)
systemd-analyze time

thanks :)


Hello this is the result

Code:
Startup finished in 4.036s (kernel) + 3min 5.880s (userspace) = 3min 9.916s

zorinantwerp

Sun Dec 09, 2018 10:12:34 am

Hi pcfan5

kernel is ok the second part (userspace) is way too high for average boot up
but depends on hardware
CPU
Hard Disk (best is SSD)
RAM

and the software installed!

under terminal (Ctrl+Alt+t) systemd-analyze blame
check if there is a service that takes long to start

for instance one of mine parameters is 2.016s dev-sda1.device

kindly let know
+++

pcfan5

Sun Dec 09, 2018 12:39:18 pm

hi again , this is the result:

Code:
systemd-analyze blame
    1min 15.590s apt-daily.service
         30.199s nmbd.service
         29.391s samba-ad-dc.service
         15.373s dev-sda2.device
         11.754s teamviewerd.service
          9.949s snapd.service
          9.181s SACSrv.service
          8.803s NetworkManager-wait-online.service
          7.891s keyboard-setup.service
          7.633s systemd-tmpfiles-setup-dev.service
          7.404s apt-daily-upgrade.service
          6.086s accounts-daemon.service
          5.237s systemd-sysctl.service
          4.836s ondemand.service
          4.616s qemu-kvm.service
          4.261s gpu-manager.service
          4.191s systemd-logind.service
          4.164s apport.service
          4.159s alsa-restore.service
          4.131s pppd-dns.service
          4.128s vboxdrv.service
          4.121s systemd-user-sessions.service
          4.118s iio-sensor-proxy.service
          3.827s thermald.service
          3.822s avahi-daemon.service
          3.466s dev-loop5.device
          3.466s dev-loop8.device
          3.465s dev-loop9.device
          3.465s dev-loop7.device
          3.464s dev-loop12.device
          3.464s dev-loop11.device
          3.464s dev-loop4.device
          3.395s dev-loop3.device
          3.346s dev-loop13.device
          3.329s dev-loop10.device
          3.319s dev-loop6.device
          3.278s dev-loop16.device
          3.257s dev-loop15.device
          3.211s dev-loop14.device
          3.041s dev-loop17.device
          3.013s dev-loop18.device
          2.942s dev-loop19.device
          2.790s NetworkManager.service
          2.515s systemd-modules-load.service
          2.498s dev-loop20.device
          2.109s lightdm.service
          1.641s udisks2.service
          1.544s systemd-udevd.service
          1.541s colord.service
          1.336s rtkit-daemon.service
          1.290s rsyslog.service
          1.260s snap-skype-63.mount
          1.233s snap-core-5662.mount
          1.231s snap-gtk\x2dcommon\x2dthemes-808.mount
          1.174s dev-loop2.device
          1.169s apparmor.service
          1.110s resolvconf.service
           972ms snap-whatsdesk-10.mount
           926ms snap-skype-66.mount
           896ms snap-gtk\x2dcommon\x2dthemes-701.mount
           889ms systemd-journald.service
           884ms snap-pdfmixtool-298.mount
           859ms snap-pdfmixtool-283.mount
           829ms snap-wine\x2dplatform\x2di386-23.mount
           827ms snap-whatsdesk-14.mount
           760ms snap-core-5742.mount
           744ms systemd-udev-trigger.service
           739ms snap-skype-60.mount
           730ms grub-common.service
           700ms systemd-random-seed.service
           697ms snap-wine\x2dplatform\x2di386-25.mount
           683ms snap-wine\x2dplatform\x2di386-22.mount
           650ms irqbalance.service
           639ms console-setup.service
           619ms systemd-journal-flush.service
           536ms smbd.service
           511ms snap-scummvm-236.mount
           487ms binfmt-support.service
           486ms snap-libreoffice-86.mount
           481ms systemd-remount-fs.service
           479ms snap-pdfmixtool-312.mount
           473ms snap-libreoffice-90.mount
           424ms dev-mqueue.mount
           422ms dev-hugepages.mount
           420ms sys-kernel-debug.mount
           406ms snap-gtk\x2dcommon\x2dthemes-818.mount
           392ms systemd-timesyncd.service
           372ms systemd-update-utmp.service
           345ms upower.service
           312ms snap-whatsdesk-11.mount
           291ms polkitd.service
           274ms snap-core-5897.mount
           272ms setvtrgb.service
           252ms hddtemp.service
           240ms speech-dispatcher.service
           227ms dev-loop1.device
           221ms lm-sensors.service
           221ms systemd-fsck@dev-disk-by\x2duuid-478fe241\x2da45e\x2d4112\x2d9a
           180ms networking.service
           159ms user@1000.service
           148ms wpa_supplicant.service
           131ms kmod-static-nodes.service
           115ms systemd-tmpfiles-setup.service
            92ms rc-local.service
            76ms dev-loop0.device
            66ms snapd.seeded.service
            62ms home.mount
            48ms plymouth-read-write.service
            32ms ufw.service
            25ms dev-sda4.swap
            17ms plymouth-start.service
            13ms vboxautostart-service.service
            13ms vboxballoonctrl-service.service
            12ms vboxweb-service.service
            10ms proc-sys-fs-binfmt_misc.mount
             9ms snapd.socket
             8ms ureadahead-stop.service
             7ms sys-kernel-config.mount
             6ms sys-fs-fuse-connections.mount
             5ms systemd-update-utmp-runlevel.service
             3ms plymouth-quit-wait.service


Ps: I am sorry I don't know how to understand or introduce the parameter you suggested neither I know how this came to be: "3min 5.880s (userspace)"

This changing in booting came up apfter I enlarged the swap partition. For that I removed it first and shortened my "data" (/home) partition

Swarfendor437

Sun Dec 09, 2018 3:43:59 pm

Hi pcfan5,

Please read this thread very carefully:

https://ubuntu-mate.community/t/help-wi ... 04/5622/11

and this:

https://askubuntu.com/questions/1065739 ... -slow-boot - do you need to connect to a windows computer? You won't need nmbd.service if not.

It appears that system.d is one of the biggest culprits (Now seeing why there was a big split in the Debian community over implementing system.d! :o

zorinantwerp

Sun Dec 09, 2018 4:00:38 pm

Hi

looking at your file some observations (no solutions as yet)

apt-daily.service shouldn't be run during boot, but only some time afterwards.

never used samba so must 'skip' on results. sorry for that. Swarfendor437 may shed light
nmbd.service nmbd - NetBIOS name server to provide NetBIOS over IP naming services to clients.
samba-ad-dc.service looks you can enable/disable when system boosts.

the loop devices come from snap packages that you installed, one loop device for each snap package that is installed.
3.466s dev-loop5.device
3.466s dev-loop8.device
3.465s dev-loop9.device
3.465s dev-loop7.device
3.464s dev-loop12.device
3.464s dev-loop11.device
3.464s dev-loop4.device
3.395s dev-loop3.device
3.346s dev-loop13.device
3.329s dev-loop10.device
3.319s dev-loop6.device
3.278s dev-loop16.device
3.257s dev-loop15.device
3.211s dev-loop14.device
3.041s dev-loop17.device
3.013s dev-loop18.device
2.942s dev-loop19.device

you run a complicated setup for sure :)

Swarfendor437

Sun Dec 09, 2018 4:03:52 pm

Hi zorinantwerp,

Those links I provided to other threads include information about sorting out the apt-daily service and the second nmbd. ;)

pcfan5

Sun Dec 09, 2018 10:46:19 pm

apt - daily service can be unclick from the apps that are loaded at the beggining, I think th eother "nmbd" don't kow what it is.

Swarfendor437

Sun Dec 09, 2018 11:03:51 pm

nmbd is to do with samba I think - you need to connect to Windows computers? ;)

zorinantwerp

Mon Dec 10, 2018 1:35:01 pm

Hi again

the saga continues....

Clean up your OS. the command does not delete any app on yr system
Code:
sudo apt-get clean


To clear unwanted dependencies
Code:
sudo apt-get autoremove


Your icon Statup Application Preferences. Startup applications take huge resource while the system boots up so trim out the list. (important)

Swap partition
If you have less RAM on your machine, then you should make a swap partition during initial OS installation. Normally Swap partition is made double in according to your actual RAM. If you have 2 GB RAM then the Swap Partition will be 4 GB.
This partition will use your HDD as RAM to speed up application launching and background system process.
Since you know how to increase the swapfile please check size again.

Finally I use magic (does it work?)
Code:
sudo apt-get install preload

It loads an application very fast depending on how often the user is using the application

Good luck

pcfan5

Tue Dec 11, 2018 10:01:00 pm

Hi , thank you very much for your reply .

I did this sudo apt-get autoremove and got this: (it is in english but you will understand... "hecho" means "done" ,

Code:
"ELIMINARAN" means "delete"
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
  libuser1 linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic
  linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic
  linux-modules-extra-4.15.0-38-generic python-glade2 python-libuser
0 actualizados, 0 nuevos se instalarán, 8 para eliminar y 18 no actualizados.
Se liberarán 337 MB después de esta operación.
....

at the end it said this :

(....) DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-38-generic
/etc/kernel/postrm.d/zz-update-grub:
Generando archivo de configuración grub...
Encontrado tema: /usr/share/grub/themes/zorin/theme.txt
Aviso: Ya no se permite establecer GRUB_TIMEOUT a un valor distinto de cero cuando GRUB_HIDDEN_TIMEOUT está activado.
Encontrada imagen de linux: /boot/vmlinuz-4.15.0-42-generic
Encontrada imagen de memoria inicial: /boot/initrd.img-4.15.0-42-generic
Encontrada imagen de linux: /boot/vmlinuz-4.15.0-39-generic
Encontrada imagen de memoria inicial: /boot/initrd.img-4.15.0-39-generic
Encontrada imagen de linux: /boot/vmlinuz-4.15.0-36-generic
Encontrada imagen de memoria inicial: /boot/initrd.img-4.15.0-36-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
hecho
Desinstalando linux-modules-4.15.0-38-generic (4.15.0-38.41~16.04.1) ...
Desinstalando python-glade2 (2.24.0-4ubuntu1) ...
Procesando disparadores para libc-bin (2.23-0ubuntu10) ...



Didn't know what to do do with this you said "Your icon Statup Application Preferences. Startup applications take huge resource while the system boots up so trim out the list. (important)" (Iguess this is note a "must do" just an explanation, isn't it? )


Then I did

Code:
sudo apt-get install preload
(not much happened after rebooting)

said this: (this is in spanish but you can see the results in english)
Code:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes NUEVOS:
  preload
0 actualizados, 1 nuevos se instalarán, 0 para eliminar y 18 no actualizados.
Se necesita descargar 36,3 kB de archivos.
Se utilizarán 139 kB de espacio de disco adicional después de esta operación.
Des:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 preload amd64 0.6.4-2 [36,3 kB]
Descargados 36,3 kB en 0s (43,4 kB/s)
Seleccionando el paquete preload previamente no seleccionado.
(Leyendo la base de datos ... 378610 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../preload_0.6.4-2_amd64.deb ...
Desempaquetando preload (0.6.4-2) ...
Procesando disparadores para man-db (2.7.5-1) ...
Procesando disparadores para systemd (229-4ubuntu21.10) ...
Procesando disparadores para ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Configurando preload (0.6.4-2) ...
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script SACSrv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
insserv: Script Srv is broken: incomplete LSB comment.
insserv: missing `Required-Stop:'  entry: please add even if empty.
Procesando disparadores para systemd (229-4ubuntu21.10) ...
Procesando disparadores para ureadahead (0.100.0-19) ...


So I boot in live mode - gparted - resized swap partition to 8 gb Rebooted but .....as I imagined , by doing this, I broke my system... ah jajajajaj. The only think I see is the mouse arrow over a black screen :/ , However it is not a problem I will re install the OS ,( I am on live usb now ) but I reply with this info in order to let you know , how the procedure went, because I cannot understand completly what the command above ment. Don't worry , I assumed for the first time I got this bootin errors that my system got broken after I used gparted for enlarging the swap for thef irst tieme, I wonder if it is totatly necesary to give it a double size of my memory RAM , because when I run a lot of programs and check on the task mannager the Swap in use most of the times says 0 % o 3% , is there another app to check its use.?

MBMz10

Wed Dec 12, 2018 4:56:27 am

HI pcfan5,
Looking at your recent posts it looks to me like your HDD maybe on the way out, memory or bug issue, drive errors on another post, etc etc. Having lost a drive recently I feel your pain and thought I would share some ideas. My drive started to vibrate at times, crash the PC when watching a video from it and other strange things. Linux and home was on another drive in my case.

If you are reinstalling and have no other data on the drive, from the live system open up disks utility and format with the 'slow' option that overwrites the disk with 'O' (zeros). I did this and got a few extra months out of the drive (no critical data on it). Bear in mind that this may also overwork the drive or fail as mine did before I got it to complete! This may take a long time, several hours or more for a 320GB drive but might be worth a shot.

pcfan5

Wed Dec 12, 2018 12:00:24 pm

Hi thank you for your kind reply , I know the HDD had some errors, but so far it passed the SMART test and I have already done what you said. I will try again, taking in mind your suggestion and the fact the HDD must be in its end.

By the way, I have my files backed up, so I entered into the mode of trying new things out. While trying to reinstall again I selected LVM option*, without reading first about it, and to sum up, I have lost my partitions but haven format yet ( I know I might to open another toppic about this but as you are reading me now I wanted to ask If TESTDISK can be run from liveUSB session, I have a guide to use it but cannot make it run from console).

Gparted doesn't do the tick , when I do "attempt to rescue" it ask for gpart instalation, have searched all over in ubuntu forums, but it is and endless path, since the "gpart" features isn't in repositories.


*I didn't know I was like automatic, and that I wouldn't have the chance to manage my partitions as in "other options" .. I intended to keep my GPT partition table.

Swarfendor437

Wed Dec 12, 2018 1:36:59 pm

HI pcfan5,

Sorry to hear of your issues. If you can access another machine, download Gparted Live edition from here:

https://gparted.org/livecd.php

pcfan5

Wed Dec 12, 2018 2:01:18 pm

Hi I can access to Zorin Live USB, installed testdisk from console, because the file dowloaded from test disk web site didn't work form me, run testdisk from consol but didn't read my HDD, (don't know if this was because I have already created a new partition, or because testdisk seems to be only for MBR partitions, please correct me if I am brong)

So Now I am formating my HDD as suggested by MBMz10 and then I will install with LVM as you suggested before. There is something I don't understand LVM seems to use a MBR partition table instead of GPT, however I wonder if GPT (with all this advantages is realy useful to me , when I have a 320 GB HDD and no UEFI) ????

Swarfendor437

Thu Dec 13, 2018 1:17:54 pm

GPT is really for EFI and SSD? ;) :D

pcfan5

Thu Dec 13, 2018 11:06:26 pm

oh thank you!. I have formated in GPT once again, installed zorin lite 12.4 , but I will take it in mind to do it in MBR for next time, which I think is going to be soon since, booting is taking quite long again and before I see the Zorin logo I get this screen (which is not common to see)

https://imgur.com/a/Nn1P8B7