Linux demorando para iniciar

Primeiramente, espero que seja o tópico certo.
Estou com um notebook Dell aqui, bem antigo, tem menos de 2GHz, ele ta com o win7 que inicia em cerca de 1 minuto e meio. Resolvi instalar o linuxlite e então ele demora quase 5 minutos para iniciar. Acredito eu que o LinuxLite deveria ser mais rápido que a inicialização do windows 7, certo? Mas, não é isso que acontece.

1 curtida

passe as saídas dos comandos
systemctl --failed
systemd-analyze
systemd-analyze blame
ls -lh /boot

-> systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● nmbd.service loaded failed failed Samba NMB Daemon
● vboxadd.service loaded failed failed vboxadd.service

LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use ‘systemctl list-unit-files’.

-> systemd-analyze
Startup finished in 2min 10.255s (kernel) + 2min 9.565s (userspace) = 4min 19.820s
graphical.target reached after 2min 9.549s in userspace

-> systemd-analyze blame
1min 30.210s nmbd.service
1min 11.376s vboxadd.service
1min 7.456s plymouth-quit-wait.service
20.552s ufw.service
19.556s dev-sda3.device
17.073s keyboard-setup.service
16.780s lvm2-monitor.service
15.671s systemd-journal-flush.service
15.457s systemd-sysctl.service
15.259s systemd-udevd.service
11.046s NetworkManager-wait-online.service
4.812s udisks2.service
4.798s NetworkManager.service
4.550s networkd-dispatcher.service
3.925s ModemManager.service
3.866s accounts-daemon.service
2.852s thermald.service
2.497s alsa-restore.service
2.032s apparmor.service
1.629s wpa_supplicant.service
1.304s lightdm.service
1.244s systemd-remount-fs.service
1.237s systemd-modules-load.service
1.229s upower.service
1.172s dev-hugepages.mount
1.160s sys-kernel-debug.mount
1.097s avahi-daemon.service
1.019s dev-mqueue.mount
964ms grub-common.service
909ms networking.service
876ms systemd-random-seed.service
829ms rsyslog.service
777ms gpu-manager.service
759ms systemd-udev-trigger.service
725ms polkit.service
719ms plymouth-start.service
lines 1-36

-> ls -lh /boot
total 83M
-rw-r–r-- 1 root root 1,5M out 10 2018 abi-4.15.0-38-generic
-rw-r–r-- 1 root root 212K out 10 2018 config-4.15.0-38-generic
-rw-r–r-- 1 root root 212K jan 29 2019 config-4.15.0-45-generic
drwxrwxr-x 5 root root 4,0K ago 27 17:26 grub
-rw-r–r-- 1 root root 16K abr 15 2018 grub_linux_lite.png
-rw-r–r-- 1 root root 57M ago 27 17:25 initrd.img-4.15.0-45-generic
-rw-r–r-- 1 root root 179K jan 28 2016 memtest86+.bin
-rw-r–r-- 1 root root 181K jan 28 2016 memtest86+.elf
-rw-r–r-- 1 root root 181K jan 28 2016 memtest86+_multiboot.bin
-rw-r–r-- 1 root root 0 out 10 2018 retpoline-4.15.0-38-generic
-rw------- 1 root root 3,9M out 10 2018 System.map-4.15.0-38-generic
-rw------- 1 root root 3,9M jan 29 2019 System.map-4.15.0-45-generic
-rw------- 1 root root 7,9M out 10 2018 vmlinuz-4.15.0-38-generic
-rw-r–r-- 1 root root 7,9M ago 27 13:48 vmlinuz-4.15.0-45-generic

qual a saída dos comandos

systemctl -l status nmbd.service
journalctl -b -u nmbd.service

e
este para ser do virtualbox
systemctl -l status vboxadd.service
journalctl -b -u vboxadd.service

adiciona o resultado com a terminal maximizada.

os textos estão cortados

Ah, verdade. Um momento.

se vc está rodando como host não instale o guest. O guest é para usar num sistema dentro do virtualbox

Aparentemente está cortando mesmo com o terminal maximizado.

systemctl -l status nmbd.service
● nmbd.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Tue 2019-08-27 23:19:03 -03; 14min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1762 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM)
Main PID: 1762 (code=killed, signal=TERM)
Status: “nmbd: No local IPv4 non-loopback interfaces available, waiting for interface …”

ago 27 23:17:33 dell-Inspiron-1525 systemd[1]: Starting Samba NMB Daemon…
ago 27 23:17:34 dell-Inspiron-1525 nmbd[1762]: [2019/08/27 23:17:34.034905, 0] …/lib/util/become_daemon.c:135(daemon_status)
ago 27 23:17:34 dell-Inspiron-1525 nmbd[1762]: STATUS=daemon ‘nmbd’ : No local IPv4 non-loopback interfaces available, waiting
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: nmbd.service: Start operation timed out. Terminating.
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: nmbd.service: Failed with result ‘timeout’.
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: Failed to start Samba NMB Daemon.

journalctl -b -u nmbd.service
– Logs begin at Tue 2019-08-27 14:29:59 -03, end at Wed 2019-08-28 01:48:30 -03. –
ago 27 23:17:33 dell-Inspiron-1525 systemd[1]: Starting Samba NMB Daemon…
ago 27 23:17:34 dell-Inspiron-1525 nmbd[1762]: [2019/08/27 23:17:34.034905, 0] …/lib/util/become_daemon.c:135(daemon_status)
ago 27 23:17:34 dell-Inspiron-1525 nmbd[1762]: STATUS=daemon ‘nmbd’ : No local IPv4 non-loopback interfaces available, waiting
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: nmbd.service: Start operation timed out. Terminating.
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: nmbd.service: Failed with result ‘timeout’.
ago 27 23:19:03 dell-Inspiron-1525 systemd[1]: Failed to start Samba NMB Daemon.
lines 1-7/7 (END)

systemctl -l status vboxadd.service
● vboxadd.service
Loaded: loaded (/opt/VBoxGuestAdditions-5.2.8/init/vboxadd; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2019-08-27 23:18:27 -03; 15min ago
Process: 700 ExecStart=/opt/VBoxGuestAdditions-5.2.8/init/vboxadd start (code=exited, status=1/FAILURE)
Main PID: 700 (code=exited, status=1/FAILURE)

ago 27 23:17:17 dell-Inspiron-1525 systemd[1]: Starting vboxadd.service…
ago 27 23:17:17 dell-Inspiron-1525 vboxadd[700]: VirtualBox Guest Additions: Starting.
ago 27 23:17:18 dell-Inspiron-1525 vboxadd[700]: VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel mo
ago 27 23:18:27 dell-Inspiron-1525 useradd[5705]: failed adding user ‘vboxadd’, data deleted
ago 27 23:18:27 dell-Inspiron-1525 useradd[5706]: failed adding user ‘vboxadd’, data deleted
ago 27 23:18:27 dell-Inspiron-1525 vboxadd[700]: modprobe vboxguest failed
ago 27 23:18:27 dell-Inspiron-1525 vboxadd[700]: The log file /var/log/vboxadd-setup.log may contain further information.
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: vboxadd.service: Main process exited, code=exited, status=1/FAILURE
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: vboxadd.service: Failed with result ‘exit-code’.
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: Failed to start vboxadd.service.
lines 1-16/16 (END)

journalctl -b -u vboxadd.service
– Logs begin at Tue 2019-08-27 14:29:59 -03, end at Wed 2019-08-28 01:48:30 -03. –
ago 27 23:17:17 dell-Inspiron-1525 systemd[1]: Starting vboxadd.service…
ago 27 23:17:17 dell-Inspiron-1525 vboxadd[700]: VirtualBox Guest Additions: Starting.
ago 27 23:17:18 dell-Inspiron-1525 vboxadd[700]: VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel mo
ago 27 23:18:27 dell-Inspiron-1525 useradd[5705]: failed adding user ‘vboxadd’, data deleted
ago 27 23:18:27 dell-Inspiron-1525 useradd[5706]: failed adding user ‘vboxadd’, data deleted
ago 27 23:18:27 dell-Inspiron-1525 vboxadd[700]: modprobe vboxguest failed
ago 27 23:18:27 dell-Inspiron-1525 vboxadd[700]: The log file /var/log/vboxadd-setup.log may contain further information.
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: vboxadd.service: Main process exited, code=exited, status=1/FAILURE
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: vboxadd.service: Failed with result ‘exit-code’.
ago 27 23:18:27 dell-Inspiron-1525 systemd[1]: Failed to start vboxadd.service.
lines 1-11/11 (END)

Como assim? Eu não instalei nada, só “instalei” o linux lite, sem adicionais e sem internet

vamos ver um de cada vez

qual a saída do comando

ls -l /etc/samba

ls -l /etc/samba
total 16
-rw-r–r-- 1 root root 8 abr 12 2016 gdbcommands
-rw-r–r-- 1 root root 593 fev 17 2019 smb.conf
-rw-r–r-- 1 root root 19 mai 4 2016 smbusers
drwxr-xr-x 2 root root 4096 abr 12 2016 tls

o linux lite é baseado no debian?

Debian e Ubuntu LTS.

Eu to usando ele porque é o que eu ja tinha aqui baixado, e porque aparenta ser um dos recomendados para minha configuração.

cat /etc/samba/smb.conf

e também a saída do comando

systemctl list-unit-files --state enabled

tente remover o pacote virtualbox-guest-additions , se este for o nome do pacote

apt remove virtualbox-guest-additions

cat /etc/samba/smb.conf
#======================= Global Settings ====================================
[global]
workgroup = WORKGROUP
server string = Linux Lite Shares
netbios name = linux
security = user
encrypt passwords = true
username map = /etc/samba/smbusers
map to guest = bad user
guest account = nobody
dns proxy = no
#======================= Share Definitions ===================================
[liteshare]
path = /home/%U/linux_share
available = yes
valid users = %U %G
write list = %U
browsable = yes
public = no
writable = yes
guest ok = no
read only = no
printable = no
locking = no
strict locking = no

ystemctl list-unit-files --state enabled
UNIT FILE STATE
acpid.path enabled
apport-autoreport.path enabled
cups.path enabled
ntp-systemd-netif.path enabled
resolvconf-pull-resolved.path enabled
accounts-daemon.service enabled
apparmor.service enabled
autovt@.service enabled
avahi-daemon.service enabled
blk-availability.service enabled
bluetooth.service enabled
casper.service enabled
console-setup.service enabled
cron.service enabled
cups-browsed.service enabled
cups.service enabled
dbus-fi.w1.wpa_supplicant1.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
dbus-org.freedesktop.resolve1.service enabled
dbus-org.freedesktop.thermald.service enabled
dns-clean.service enabled
getty@.service enabled
gpu-manager.service enabled
irqbalance.service enabled
keyboard-setup.service enabled
lm-sensors.service enabled
lvm2-monitor.service enabled
ModemManager.service enabled
network-manager.service enabled
networkd-dispatcher.service enabled
networking.service enabled
NetworkManager-dispatcher.service enabled
lines 1-36

sudo apt remove virtualbox-guest-additions
[sudo] password for dell:
Lendo listas de pacotes… Pronto
Construindo árvore de dependências
Lendo informação de estado… Pronto
E: Impossível encontrar o pacote virtualbox-guest-additions

dei um apt search virtual e achei esses 3 que tem haver com o virtualbox
virtualbox-guest-dkms/now 5.2.18-dfsg-2~ubuntu18.04.3 all [installed,local]
x86 virtualization solution - guest addition module source for dkms

virtualbox-guest-utils/now 5.2.18-dfsg-2~ubuntu18.04.3 amd64 [installed,local]
x86 virtualization solution - non-X11 guest utilities

virtualbox-guest-x11/now 5.2.18-dfsg-2~ubuntu18.04.3 amd64 [installed,local]
x86 virtualization solution - X11 guest utilities

isso
remove estes pacotes

parece que o samba não está funcionando

não sei se vem com ele instalado

teste

sudo systemctl enable smbd
sudo systemctl start smbd
sudo systemctl enable nmbd
sudo systemctl restart smbd