Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Boot time now 3 minutes. What happened?(Linux)


  • Please log in to reply
21 replies to this topic

#1 Viper_Security

Viper_Security

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 13 October 2016 - 09:47 PM

Okay so i decided to make a new post instead of continuing on the *Nix Boot Times thread.

before i installed parrot the boot time in mint (the only OS at the time) was what parrot reads (pretty close)

 

Okay so, 

 

I ran Parrot live, shrunk my drive by roughly 70 GB. Installed parrot (both work fine)

 

but when i boot into Mint. i get this, 

 

vip3r@vip3r-M1530 ~ $ systemd-analyze
Startup finished in 8.935s (kernel) + 3min 698ms (userspace) = 3min 9.633s       Linux Mint 18 (Sarah)
 
and parrot:

[vip3r@parrot]─[~]
└──╼ $systemd-analyze
Startup finished in 3.615s (kernel) + 2.356s (userspace) = 5.972s        ParrotSecOS

 

 

I have tried the following

 

sudo apt-get autoremove

sudo apt-get autoclean

sudo apt-get clean 

 

sudo apt-get update && apt-get dist-upgrade.

 

none of the above fixed it. (tried the same in parrot)

 

Attached is the log of systemd-analyze blame.

 

NOTHING in there takes a minute so i do not know why it's taking 3 minutes..

 

ANY ideas??

Attached Files

  • Attached File  Why.txt   2.86KB   7 downloads

Edited by Viper_Security, 13 October 2016 - 10:14 PM.

    IT Auditor & Security Professional

hQBT2G3.png


BC AdBot (Login to Remove)

 


#2 MadmanRB

MadmanRB

    Spoon!!!!


  • Members
  • 2,885 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:No time for that when there is evil afoot!
  • Local time:10:25 AM

Posted 13 October 2016 - 10:25 PM

Hrm, could be because of systemd


You know you want me baby!

Proud Linux user and dual booter.

Proud Vivaldi user.

 

ljxaqg-6.png


#3 Al1000

Al1000

  • Global Moderator
  • 7,595 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:25 PM

Posted 14 October 2016 - 01:33 AM

I would have a look through dmesg to see if it gives any clues as to what's taking so long.

#4 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 01:42 AM

hm, just did a clean install of both, and still same result. the only thing that was the same is that i installed parrot second and mint first, ill try the other way tomorrow and see if that makes a difference.


    IT Auditor & Security Professional

hQBT2G3.png


#5 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:25 AM

Posted 14 October 2016 - 03:47 AM

Hi, friend Viper

 

First question I would ask is this:

 

Does it actually take 3 mins 9 secs to get Sarah up & running/usable? If you feel it is considerably less try a stopwatch type measure to establish.

 

Next, if you haven't already, install the GUI frontend to systemd using SPM (Synaptic Package Manager) as follows:

 

87POgVG.png

 

... my cursor is near systemd-ui, that is the one you want, not the transitional.

 

Once it is installed, you will be able to find (likely) in your menu "systemadm" - mine below is from Sarah Cinnamon:

 

nxf4vET.png

 

 

You have a range of options you can choose from to see what is going on, and you can click and re-click the column headers for alphabetical &c listing. Also the dropdown "elevator" button (continued)

 

F4DqbnB.png

 

... which defaults to "All" can provide you with details on Services, Tagets, Slices, Mounts, and on and on.

 

One of the Services is likely the culprit.

 

In Manjaro, for example (& yes, I know that is Arch-based, lol), the culprit can be one you will find call updatedb.service (not in Mint, apparently), whereby the system can become usable, but updatedb.service will continue to do its voodoo until it concludes, and the systemd-analyze facility will not report a time that is accurate until the service has concluded and exited.

 

From Terminal of course you can run

systemd-analyze blame

and get a list (of services only), and for those new to this, that list may extend some "pages" of Terminal so be prepared to scroll down.

 

To cut a long story short, I would advocate comparing the services, and perhaps other units, between Sarah and Parrot, to find the guilty culprit, and if it is not needed, then eliminate it from your startup config.

 

Good luck

 

:wizardball: Wizard



#6 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 11:20 AM

I will try that,

 

i have installed in this order.

 

Linux mint 18 then parrot.

 

this morning i wrote over the lm18 install and now parrot is actin up. odd. i may have to use another distro.

 

i have some testing to do later. i will get back asap.


    IT Auditor & Security Professional

hQBT2G3.png


#7 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 01:52 PM

Okay so it seems "fixed. 
 
 
I got a crazy idea and installed Parrot first. and THEN linux Mint 18, and the times are about the same now. 
 
for LM18 
vip3r@vip3r-M1530 ~ $ systemd-analyze
Startup finished in 3.981s (kernel) + 2.413s (userspace) = 6.395s
 
for Parrot
[vip3r@parrot]─[~]
└──╼ $systemd-analyze
Startup finished in 3.620s (kernel) + 2.291s (userspace) = 5.912s

 

 

EDIT: for some reason (and I've tried 3 times) my machine does NOT like mint installed first then parrot. it likes parrot then mint. 

 

I kept my .config files for Vivaldi so everything is where i left it. (flash was a hassle to install though haha, kept saying it couldn't; mv stat/***/***/***/libpepflash.so)

i just made a folder called "PepperFlash" under opt/vivaldi/ and now it works.

 

 

not sure why it didn't like parrot being installed second. but i will keep in mind what Wiz had said about the services for next time (knocks on wood) 

 

Thanks all for your time!


Edited by Viper_Security, 14 October 2016 - 03:23 PM.

    IT Auditor & Security Professional

hQBT2G3.png


#8 Al1000

Al1000

  • Global Moderator
  • 7,595 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:03:25 PM

Posted 14 October 2016 - 04:43 PM

If you install Grub when you install each operating system, that might be the difference, since it's the last operating system you install that Grub is used from.

#9 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 05:11 PM

When i installed parrot it asked if wanted to install grub (yes) but in linux mint it did not ask me. 
 
and im using the same 4GB partition for SWAP on both OS's
 
parrot is on a 60gb partition, and lm18 is on the rest (minus the 4gb swap-file) and i thought it was weird that mint did not ask me if i wanted to install grub, it should have detected my other Os but it did not. 
 
Once mint was installed the grub screen changed from the parrot one(green and fancy) to the linux mint 18 one. (black and white).
 
when i shrunk the drive i used the same space as swap as well, but the only differences (atm) is that i installed parrot first. and swap is in between the two partitions.
 
this is how it's set up now.
 

http://imgur.com/IREgNrR
 
Before the SWAP was above and the second time it was below, this one is in the middle, could that have made a difference?


Edited by Viper_Security, 14 October 2016 - 05:12 PM.

    IT Auditor & Security Professional

hQBT2G3.png


#10 pcpunk

pcpunk

  • Members
  • 5,758 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:10:25 AM

Posted 14 October 2016 - 05:25 PM

Once mint was installed the grub screen changed from the parrot one(green and fancy) to the linux mint 18 one. (black and white).
 

Before the SWAP was above and the second time it was below, this one is in the middle, could that have made a difference?

I was thinking the Mint Grub is Simpler/Better and faster to Boot to, and not where SWAP was placed.  Just a logical guess of course.


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#11 wizardfromoz

wizardfromoz

  • Banned
  • 2,799 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:12:25 AM

Posted 14 October 2016 - 05:31 PM

Hi Viper (& Punk & Al), a couple of diagnostic tests if you will:

 

  1. In Gparted, right-click your swap partition, select info and note down the UUID for the swap (or copy and paste to a text file, it may prove handy)
  2. In each of Mint & Parrot, open (just as user for now) /etc/fstab and note down the UUIDs they each have swap pointing to
  3. Report back the results

Cheers

 

:wizardball: Wizard



#12 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 05:43 PM

@WizardFromOZ Should i copy/paste raw data or upload somewhere? 

 

@pcpunk I thought so too. 

 

if copy/paste then:

 

SWAP from Mint: 51e04b38-1720-42ff-89be-2dfd3112160f
 
Fstab from Mint: # /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/sda2 during installation
UUID=4d52db5e-0a2c-4251-a27c-acc60c0c9e94 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda3 during installation
UUID=51e04b38-1720-42ff-89be-2dfd3112160f none            swap    sw              0       0
 
 
--------------------------------------------------------------------------------
 
SWAP from Parrot: 51e04b38-1720-42ff-89be-2dfd3112160f
 
Fstab from Parrot: # /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/sda1 during installation
UUID=8b0d4d27-76fe-4bef-a403-26c75078a649 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda3 during installation
UUID=51e04b38-1720-42ff-89be-2dfd3112160f none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

Edited by Viper_Security, 14 October 2016 - 06:01 PM.

    IT Auditor & Security Professional

hQBT2G3.png


#13 NickAu

NickAu

    Bleepin' Fish Doctor


  • Moderator
  • 13,100 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1 Australia
  • Local time:12:25 AM

Posted 14 October 2016 - 06:12 PM

 

I was thinking the Mint Grub is Simpler/Better and faster to Boot to,

Why would it be?

 

When installing multi linux distros you install grub with the first distro, Then when you install the secind and third you install them without installing grub.


Edited by NickAu, 14 October 2016 - 06:19 PM.

Arch Linux .
 
 Come join the fun, chat to Bleeping computer members and staff in real time on Discord.
 
The BleepingComputer Official Discord Chat Server!


#14 Viper_Security

Viper_Security
  • Topic Starter

  • Members
  • 826 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:127.0.0.1
  • Local time:07:25 AM

Posted 14 October 2016 - 06:19 PM

@NickAu     i just assumed it could be faster because parrot and mint are two different types of OS.

Parrot is a Security Distro and mint is a "casual?" distro. 

 

that's why i assumed. 


Edited by Viper_Security, 14 October 2016 - 06:20 PM.

    IT Auditor & Security Professional

hQBT2G3.png


#15 Mike_Walsh

Mike_Walsh

    Bleepin' 'Puppy' nut..!!


  • Members
  • 1,316 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:King's Lynn, UK
  • Local time:03:25 PM

Posted 14 October 2016 - 06:29 PM

I kept my .config files for Vivaldi so everything is where i left it. (flash was a hassle to install though haha, kept saying it couldn't; mv stat/***/***/***/libpepflash.so)

i just made a folder called "PepperFlash" under opt/vivaldi/ and now it works.

 

 

 Which is exactly what I would have done in the first place. That's where it should live; most of the Chromium/Blink-based browsers tend to have Pepper in its own sub-folder, inside the browser directory. It's honestly quicker to create it manually, than it is to mess about with trying to do that one via the terminal. Just make sure you've also got the accompanying 'manifest.json' file inside the 'PepperFlash' directory along with libpepflashplayer.so. This is where the browser reads the Pepper version from when you query it.

 

Sorry for the 'side-track'; another personal interest of mine.....the Chromium-based browsers.

 

 

Mike.  :P  :wink:


Edited by Mike_Walsh, 14 October 2016 - 06:51 PM.

Distros:- Multiple 'Puppies'..... and Anti-X 16.1

My Puppy BLOG ~~~  My Puppy PACKAGES

Compaq Presario SR1916UK; Athlon64 X2 3800+, 3 GB RAM, WD 500GB Caviar 'Blue', 32GB Kingspec PATA SSD, 3 TB Seagate 'Expansion' external HDD, ATI Radeon Xpress 200 graphics, Dell 15.1" pNp monitor (1024 x 768), TP-Link PCI-e USB 3.0 card, Logitech c920 HD Pro webcam, self-powered 7-port USB 2.0 hub

Dell Inspiron 1100; 2.6 GHz 400FSB P4, 1.5 GB RAM, 64GB KingSpec IDE SSD, Intel 'Extreme' graphics, 1 TB Seagate 'Expansion' external HDD, M$ HD-3000 'Lifecam'.

 

KXhaWqy.gifFQ8nrJ3.gif

 

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users