Choose style:

Author Topic: Slow boot with SSD Apparmor[Solved]  (Read 1853 times)

0 Members and 1 Guest are viewing this topic.

Offline acer

  • Member
  • ***
  • Posts: 240
  • Karma: 28
    • View Profile
  • Peppermint version(s): Peppermint 8 64bit
Slow boot with SSD Apparmor[Solved]
« on: September 19, 2016, 01:42:47 pm »
Code: [Select]
System:    Host: HP-Laptop Kernel: 4.4.0-36-generic i686 (32 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   System: Hewlett-Packard product: HP G60 Notebook PC v: PCID
           Mobo: Hewlett-Packard model: 3617 v: 09.67
           Bios: Hewlett-Packard v: F.65 date: 12/15/2010
CPU:       Dual core Intel Core2 Duo T5800 (-MCP-) cache: 2048 KB
           clock speeds: max: 2000 MHz 1: 1600 MHz 2: 1200 MHz
Graphics:  Card: NVIDIA G98M [GeForce 9200M GS]
           Display Server: X.Org 1.18.3 driver: nvidia
           Resolution: 1366x768@60.11hz
           GLX Renderer: GeForce 9200M GE/PCIe/SSE2
           GLX Version: 3.3.0 NVIDIA 340.96
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-36-generic
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
           Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express)
           driver: ath5k
           IF: wlp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 60.0GB (15.6% used)
           ID-1: /dev/sda model: Corsair_Force_LS size: 60.0GB
Partition: ID-1: / size: 51G used: 5.0G (11%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.26GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 48.0C mobo: 45.0C gpu: 52C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 168 Uptime: 24 min Memory: 471.2/4009.5MB
           Client: Shell (bash) inxi: 2.2.35

Ok after reading other topics regarding slow boot times, I wish to stop apparmor at boot.
I have found another thread regarding disabling it at boot and wish to do that (at least I can revert back) without removing it.

https://forum.peppermintos.com/index.php/topic,4094.0.html

When reading about it elsewhere I ran this in the Terminal:
Code: [Select]
sudo apparmor_status
which, in turn produced this:
Code: [Select]
apparmor module is loaded.
18 profiles are loaded.
18 profiles are in enforce mode.
   /sbin/dhclient
   /usr/bin/evince
   /usr/bin/evince-previewer
   /usr/bin/evince-previewer//sanitized_helper
   /usr/bin/evince-thumbnailer
   /usr/bin/evince-thumbnailer//sanitized_helper
   /usr/bin/evince//sanitized_helper
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/NetworkManager/nm-dhcp-helper
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/cups/backend/cups-pdf
   /usr/lib/lightdm/lightdm-guest-session
   /usr/lib/lightdm/lightdm-guest-session//chromium
   /usr/sbin/cups-browsed
   /usr/sbin/cupsd
   /usr/sbin/cupsd//third_party
   /usr/sbin/ntpd
   /usr/sbin/tcpdump
0 profiles are in complain mode.
2 processes have profiles defined.
2 processes are in enforce mode.
   /sbin/dhclient (1346)
   /usr/sbin/cups-browsed (899)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

So my question is; Is it safe to disable apparmor in my case to speed up my boot time?  ???

TIA
« Last Edit: September 19, 2016, 02:28:40 pm by acer »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Slow boot with SSD Apparmor
« Reply #1 on: September 19, 2016, 01:42:47 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fz
then copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 240
  • Karma: 28
    • View Profile
  • Peppermint version(s): Peppermint 8 64bit
Re: Slow boot with SSD Apparmor
« Reply #2 on: September 19, 2016, 01:43:38 pm »
already done  :D

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3043
  • Karma: 563
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Slow boot with SSD Apparmor
« Reply #3 on: September 19, 2016, 01:53:12 pm »
Hi acer

I have it disabled and have felt no ill effect.  I did mine via the grub menu rather than physically removing it from the system.

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9/10 @ P9 x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline acer

  • Member
  • ***
  • Posts: 240
  • Karma: 28
    • View Profile
  • Peppermint version(s): Peppermint 8 64bit
Re: Slow boot with SSD Apparmor
« Reply #4 on: September 19, 2016, 02:08:13 pm »
Hi Zeb  ;D

So in order to do this I make a backup of existing grub text, then insert in the Terminal:
Code: [Select]
sudo gedit /etc/default/grub

Edit as per VinDSL code
Then insert in the Terminal:
Code: [Select]
sudo update-grub

and reboot?

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3043
  • Karma: 563
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Slow boot with SSD Apparmor
« Reply #5 on: September 19, 2016, 02:18:47 pm »
Hi acer

yes

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9/10 @ P9 x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline acer

  • Member
  • ***
  • Posts: 240
  • Karma: 28
    • View Profile
  • Peppermint version(s): Peppermint 8 64bit
Re: Slow boot with SSD Apparmor
« Reply #6 on: September 19, 2016, 02:28:08 pm »
Took the plunge and shaved 7 seconds off bootime  ;)  :D

I couldn't get the pre login splash to work with nvidia drivers so decided to shave the boot time instead.

oh, I found a way to disable the bloody annoying nvidia bootsplash which will save time in rendering that may come in useful:

To remove nvidia bootsplash:

Code: [Select]
sudo nvidia-xconfig --no-logo

thanks Zeb  ;D