Pagina 1 di 1
[risolto] velocizzare l'avvio
Inviato: mer 6 lug 2011, 20:29
da provaslack
Spero di non aver sbagliato sezione, ho installato Slack 13.37 su virtualbox, e quando clicco su avvia (la macchina virtuale), visualizza la schermata nera di Slackware e parte un countdown di 2 minuti, se premo invio salta il conteggio, ma non si puo' escludere in qualche modo? Premetto che sono super newbie, ma cercando su google credevo che modificando /etc/lilo.conf sarei riuscito a risolvere, ma.... mi sbagliavo

, sicuro della vostra bravura e disponibilita', vi ringrazio anticipatamente e prometto solennemente di continuare a stressarvi, perche' dopo averla provata in virtualbox, e' mia intenzione di installarla definitivamente

Re: velocizzare l'avvio
Inviato: mer 6 lug 2011, 21:37
da ilmich
ma hai solo editato il file di configurazione!?!? perche se dopo non lanci almeno
i cambiamenti fatti non li vedi.
Re: velocizzare l'avvio
Inviato: mer 6 lug 2011, 21:39
da ilmich
comunque per escludere quella schermata, mi pare che dentro lilo.conf devi commentare (con un # all'inizio) la riga dove e' contenuta la parola
Re: velocizzare l'avvio
Inviato: mer 6 lug 2011, 23:44
da darkstaring
Offtopic: Scusate se mi intrometto
, ma togliere da rc.M per aggiungere a rc.local è meglio?, io ho tolto qualcosa, così carica prima kde..
Codice: Seleziona tutto
bash-4.1# cat /etc/rc.d/rc.M
...
...
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
time . /etc/rc.d/rc.local &
fi
bash-4.1# cat /etc/rc.d/rc.local
#!/bin/sh
#
# Start wicd:
if [ -x /etc/rc.d/rc.wicd ]; then
sh /etc/rc.d/rc.wicd start &
fi
# Load ALSA (sound) defaults:
if [ -x /etc/rc.d/rc.alsa ]; then
. /etc/rc.d/rc.alsa &
fi
sleep 60
######################################################################
echo Start the MySQL database:
if [ -x /etc/rc.d/rc.mysqld ]; then
. /etc/rc.d/rc.mysqld start
fi
echo Start Apache web server:
if [ -x /etc/rc.d/rc.httpd ]; then
. /etc/rc.d/rc.httpd start
fi
# Start Samba (a file/print server for Win95/NT machines).
echo Samba can be started in /etc/inetd.conf instead.
if [ -x /etc/rc.d/rc.samba ]; then
. /etc/rc.d/rc.samba start
fi
######################################################################
sleep 10
# VirtualBox driver
# To disable VirtualBox driver, chmod rc.vboxdrv to 644
if [ -x /etc/rc.d/rc.vboxdrv ]; then
sh /etc/rc.d/rc.vboxdrv start &
fi
# VirtualBox network
# To disable VirtualBox network, chmod rc.vboxnet to 644
if [ -x /etc/rc.d/rc.vboxnet ]; then
sh /etc/rc.d/rc.vboxnet start &
fi
# VirtualBox bridge
# To enable VirtualBox bridged networking, chmod rc.vboxbridge to 755
if [ -x /etc/rc.d/rc.vboxbridge ]; then
sh /etc/rc.d/rc.vboxbridge start 1 user &
fi
######################################################################
# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# Start CUPS:
/etc/rc.d/rc.cups start
elif [ -x /etc/rc.d/rc.lprng ]; then
# Start LPRng (lpd):
. /etc/rc.d/rc.lprng start
fi
######################################################################
######################################################################
# esegue agg (icone, gtk) ecc
# rc.iconegtk
######################################################################
bash-4.1# cat /etc/rc.d/rc.iconegtk
# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
/usr/bin/update-gtk-immodules --verbose
fi
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
/usr/bin/update-gdk-pixbuf-loaders --verbose
fi
if [ -x /usr/bin/update-pango-querymodules ]; then
/usr/bin/update-pango-querymodules --verbose
fi
##################################################################
# Update any existing icon cache files:
if find /usr/share/icons 2> /dev/null | grep -q icon-theme.cache ; then
for theme_dir in /usr/share/icons/* ; do
if [ -r ${theme_dir}/icon-theme.cache ]; then
echo "Updating icon-theme.cache in ${theme_dir}..."
/usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null &
fi
done
# This would be a large file and probably shouldn't be there.
if [ -r /usr/share/icons/icon-theme.cache ]; then
echo "Deleting icon-theme.cache in /usr/share/icons..."
#/usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null &
rm -f /usr/share/icons/icon-theme.cache
fi
fi
# Update mime database:
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
echo "Updating MIME database: /usr/bin/update-mime-database /usr/share/mime &"
/usr/bin/update-mime-database /usr/share/mime 1> /dev/null 2> /dev/null &
fi
# If we're using udev, make /dev/cdrom and any other optical drive symlinks
# if some udev rule hasn't made them already:
if grep -wq sysfs /proc/mounts && grep -q tmpfs /proc/filesystems; then
if ! grep -wq nohotplug /proc/cmdline ; then
if [ -x /lib/udev/rc.optical-symlinks -a -x /etc/rc.d/rc.udev ]; then
/bin/sh /lib/udev/rc.optical-symlinks
fi
fi
fi
# #######################################################
Sapete cosa posso postare da rc.M in rc.local???

Questo è il mio rc.M:
Codice: Seleziona tutto
bash-4.1# cat /etc/rc.d/rc.M
#!/bin/sh
#
# rc.M This file is executed by init(8) when the system is being
# initialized for one of the "multi user" run levels (i.e.
# levels 1 through 6). It usually does mounting of file
# systems et al.
#
# Version: @(#)/etc/rc.d/rc.M 2.23 Wed Feb 26 19:20:58 PST 2003
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Heavily modified by Patrick Volkerding <volkerdi@slackware.com>
#
# Tell the viewers what's going to happen.
echo "Going multiuser..."
# Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
echo "Updating shared library links: /sbin/ldconfig &"
/sbin/ldconfig &
fi
# Screen blanks after 15 minutes idle time, and powers down in one hour
# if the kernel supports APM or ACPI power management:
/bin/setterm -blank 15 -powersave powerdown -powerdown 60
# Set the hostname.
if [ -r /etc/HOSTNAME ]; then
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
else
# fall back on this old default:
echo "power.it" > /etc/HOSTNAME
/bin/hostname darkstar
fi
# Set the permissions on /var/log/dmesg according to whether the kernel
# permits non-root users to access kernel dmesg information:
if [ -r /proc/sys/kernel/dmesg_restrict ]; then
if [ $(cat /proc/sys/kernel/dmesg_restrict) = 1 ]; then
touch /var/log/dmesg
chmod 640 /var/log/dmesg
fi
else
touch /var/log/dmesg
chmod 644 /var/log/dmesg
fi
# Save the contents of 'dmesg':
/bin/dmesg -s 65536 > /var/log/dmesg
# Start the system logger.
if [ -x /etc/rc.d/rc.syslog -a -x /usr/sbin/syslogd -a -d /var/log ]; then
. /etc/rc.d/rc.syslog start
fi
# Update the X font indexes:
if [ -x /usr/bin/fc-cache ]; then
echo "Updating X font indexes: /usr/bin/fc-cache -f &"
/usr/bin/fc-cache -f &
fi
# If we are returning from single-user mode we will need to restart
# udevd on systems that use udev:
if grep -wq sysfs /proc/mounts && grep -q tmpfs /proc/filesystems ; then
if ! grep -wq nohotplug /proc/cmdline ; then
if [ -x /etc/rc.d/rc.udev ]; then
/bin/sh /etc/rc.d/rc.udev start
fi
fi
fi
#######################################################################
# Initialize the networking hardware.
if [ -x /etc/rc.d/rc.inet1 ]; then
. /etc/rc.d/rc.inet1
fi
# Start networking daemons:
if [ -x /etc/rc.d/rc.inet2 ]; then
. /etc/rc.d/rc.inet2 &
fi
# Start the Network Time Protocol daemon:
if [ -x /etc/rc.d/rc.ntpd ]; then
sh /etc/rc.d/rc.ntpd start &
fi
#######################################################################
# Look for additional USB/SCSI/IEEE1394/etc devices on multiple LUNs:
if [ -x /etc/rc.d/rc.scanluns ]; then
. /etc/rc.d/rc.scanluns &
fi
# Start the Control Script for automounter:
if [ -x /etc/rc.d/rc.autofs ]; then
sh /etc/rc.d/rc.autofs start
fi
# Check quotas and then turn quota system on:
if grep -q quota /etc/fstab ; then
for quotafs in $(awk '/quota/ {print $2}' /etc/fstab) ; do
/bin/rm -f $quotafs/{a,}quota.{group,user}.new
done
if [ -x /sbin/quotacheck ]; then
echo "Checking filesystem quotas: /sbin/quotacheck -avugm"
/sbin/quotacheck -avugm
fi
if [ -x /sbin/quotaon ]; then
echo "Activating filesystem quotas: /sbin/quotaon -avug"
/sbin/quotaon -avug
fi
fi
# Start APM or ACPI daemon.
# If APM is enabled in the kernel, start apmd:
if [ -e /proc/apm ]; then
if [ -x /usr/sbin/apmd ]; then
echo "Starting APM daemon: /usr/sbin/apmd"
/usr/sbin/apmd &
fi
elif [ -x /etc/rc.d/rc.acpid ]; then # otherwise, start acpid:
. /etc/rc.d/rc.acpid start &
fi
# Start D-Bus:
if [ -x /etc/rc.d/rc.messagebus ]; then
sh /etc/rc.d/rc.messagebus start
fi
if [ -x /etc/rc.d/rc.pcmcia ]; then
. /etc/rc.d/rc.pcmcia start &
# The cards might need a little extra time here to initialize.
# sleep 1
fi
# Start crond (Dillon's crond):
# If you want cron to actually log activity to /var/log/cron, then change
# -l notice to -l info to increase the logging level.
if [ -x /usr/sbin/crond ]; then
/usr/sbin/crond -l notice
fi
# Start atd (manages jobs scheduled with 'at'):
if [ -x /usr/sbin/atd ]; then
/usr/sbin/atd -b 15 -l 1
fi
# Load a custom screen font if the user has an rc.font script.
if [ -x /etc/rc.d/rc.font ]; then
. /etc/rc.d/rc.font
fi
# Load a custom keymap if the user has an rc.keymap script.
if [ -x /etc/rc.d/rc.keymap ]; then
. /etc/rc.d/rc.keymap
fi
# If there are SystemV init scripts for this runlevel, run them.
if [ -x /etc/rc.d/rc.sysvinit ]; then
. /etc/rc.d/rc.sysvinit
fi
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
time . /etc/rc.d/rc.local &
fi
[/offtopic]
Re: velocizzare l'avvio
Inviato: gio 7 lug 2011, 1:21
da targzeta
L'opzione "prompt" nel lilo.conf serve nel caso in cui tu abbia due o più immagini tra cui scegliere. Se ne hai solo una la puoi anche disabilitare (basta commentarla). Se invece ne hai più di una, il countdown è regolato dall'opzione "timeout", sempre nel lilo.conf. Questa opzione è espresse in decine di secondi, quindi ad esempio:
indica che lilo deve aspettare 20 secondi prima di avviare l'immagine selezionata. Se tu dici che il tuo countdown dura 2 minuti, dovresti avere questa opzione settata a 1200.
Emanuele
P.S. Come ricordato anche da miklos, dopo che hai modificato il lilo.conf devi anche eseguire il comando lilo, altrimenti le modifiche non saranno applicate.
Re: velocizzare l'avvio
Inviato: gio 7 lug 2011, 2:06
da ilmich
darkstaring ha scritto: Scusate se mi intrometto

, ma togliere da rc.M per aggiungere a rc.local è meglio?, io ho tolto qualcosa, così carica prima kde..
l'unica differenza che vedo nello spostare pezzi di rc.M in rc.local sta nell'ordine di esecuzione.
non sono un gran fanatico della velocita'.. pero' mi piace risparmiare qualche secondo percio' ti dico come ci provo ad ottenere il risultato(anche con consigli scontati):
1) ricompilo il kernel eliminando cose che non mi servono, e compilando staticamente driver e filesystem che uso
2) disattivo la maggioranza dei servizi (inetd, ssh e tutte le cose che come sistema desktop non uso mai)
3) disattivo il controllo del filesystem ad ogni avvio(e' facile, basta che negli script di shutdown crei un file vuoto che si chiama /etc/fastboot... ti vedo pratico con gli script e non ti sara' difficile trovare il pezzo dentro rc.S che fa questo controllo). Questo sistema e sicuro e ti garantisce che in caso di crash della macchina il controllo venga fatto.
comunque se cerchi sul forum puoi trovare qualcosa in piu'.
Ti posso dire che in questo mio
post se ne e' parlato
Re: [risolto] velocizzare l'avvio
Inviato: gio 7 lug 2011, 7:54
da provaslack
ringrazio tutti per la disponibilita', avevo aggiornato il file giusto, ma non sapevo che se non davo il comando lilo
non aggiornava il file. Grazie ancora.