Linux-magazine.it Forum
Maggio 24, 2012, 06:54:38 pm *
Benvenuto! Accedi o registrati.
Hai dimenticato l'e-mail di attivazione?
 
Pagine: [1]   Vai giù
  Stampa  
Autore Discussione: configurazione lilo  (Letto 1345 volte)
0 utenti e 1 Utente non registrato stanno visualizzando questa discussione.
robs
Hero Member
*****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 730


Mostra profilo
« inserita:: Ottobre 12, 2011, 10:54:12 am »

salve a tutti!!!
come va?è un bel po che non scrivo su questo forum,ma vi assicuro che non ne avevo la possibilità visto che non avevo proprio il pc....

cmq ho un piccolo problema,ho dovuto in pratica reinstallare debian,e non si installava grub,e visto che mi dava la possiblità di scegliere ho messo lilo,cosi quantomeno potevo avviare il sistema....

tuttavia adesso al boot non riesco a vedere ne slackware,ne l'altra partizione dove faccio esperimenti con diverse distribuzioni....

qualcuno sa dirmi come come impostare lilo in modo da vedere gli altri sistemi operativi?

purtroppo lilo non lo conosco bene...


grazie per l'aiuto...
ciao
Registrato
Morfeo
Sr. Member
****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 374



Mostra profilo E-mail
« Risposta #1 inserita:: Ottobre 12, 2011, 02:21:53 pm »

Al volo ho trovato questa guida veloce per installare e configurare LILO. Mi sembra abbastanza semplice.
In pratica si configura il lilo.conf con le partizioni da 'vedere'

http://www.science.unitn.it/~fiorella/linux/Installation-HOWTO-5.html

spero ti possa essere utile.

Occhiolino

Registrato

./configure
  make
  make install
robs
Hero Member
*****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 730


Mostra profilo
« Risposta #2 inserita:: Ottobre 12, 2011, 06:14:52 pm »

mmm
ho fatto qualche prova ma non riesco...
io dovrei aggiungere due sistemi operativi,uno su /dev/sda6 slackware e un altro su /dev/sda4 backbox e poi il terzo sistema operativo è debian su /dev/sda5
e questo è il mio lilo.conf:

Codice:
# Automatically added by lilo postinst script
large-memory

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt' (if you have created it), or   |
# | install a new kernel.  The computer will most likely fail to  |
# | boot if a kernel-image post-install script or you don't       |
# | remember to run `lilo'.                                       |
# |                                                               |
# +---------------------------------------------------------------+

# Specifies the boot device.  This is where Lilo installs its boot
# case it installs in the MBR, and will overwrite the current MBR.
#
#boot=/dev/sda
boot = /dev/disk/by-id/ata-HTS541010G9SA00_MP2ZX0X0KN5EBS

# Specifies the device that should be mounted as root. (`/')
#

# root = /dev/sda5
root = "UUID=f3001dfa-9cf8-447d-877e-40be09ef8e6c"


# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
#       prompt
#       delay=100
#       timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#


# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
# If you used a serial console to install Debian, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
        label=Linux
        read-only
#       restricted
#       alias=1
    append="quiet"
        initrd=/initrd.img

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2
    append="quiet"
        initrd=/initrd.img.old


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/sda6
#       label=Slackware
#       restricted
#       alias=3


avevo provato a configurare l'ultima parte ma dando /sbin/lilo mi dava errore...

grazie
ciao
Registrato
michele.p
Global Moderator
Hero Member
*****

Karma: +49/-44
Scollegato Scollegato

Messaggi: 6741



Mostra profilo
« Risposta #3 inserita:: Ottobre 12, 2011, 11:38:13 pm »

Qual è il tipo di errore che ti viene restituito quando provi ad aggiornare LILO?

Bye  Fico
Registrato

robs
Hero Member
*****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 730


Mostra profilo
« Risposta #4 inserita:: Ottobre 12, 2011, 11:50:25 pm »

Qual è il tipo di errore che ti viene restituito quando provi ad aggiornare LILO?

Bye  Fico

decommentando le ultime 4 righe del file sopra riportato mi da:
Codice:
root@Anarchia:/home/roberto# /sbin/lilo
Warning: LBA32 addressing assumed
Added Linux  *
Skipping /vmlinuz.old
Fatal: RESTRICTED is only valid if PASSWORD is set.

mentre mantenendo il file intatto come sopra mi dice:
Codice:
Warning: LBA32 addressing assumed
Added Linux  *
Skipping /vmlinuz.old
One warning was issued.
Registrato
michele.p
Global Moderator
Hero Member
*****

Karma: +49/-44
Scollegato Scollegato

Messaggi: 6741



Mostra profilo
« Risposta #5 inserita:: Ottobre 13, 2011, 01:30:52 pm »

C'è una opzione RESTRICTED impostata? ...se si rimuovila.

Il warning non mi sembra nulla di "pericoloso". Funziona?

Bye  Fico
Registrato

robs
Hero Member
*****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 730


Mostra profilo
« Risposta #6 inserita:: Ottobre 13, 2011, 04:07:27 pm »

C'è una opzione RESTRICTED impostata? ...se si rimuovila.

Il warning non mi sembra nulla di "pericoloso". Funziona?

Bye  Fico

ho decommentato le ultime righe del file postato sopra esclusa la riga restricted e mandando il comando /sbin/lilo mi dice:
Codice:
Warning: LBA32 addressing assumed
Added Linux  *
Skipping /vmlinuz.old
Fatal: First sector of /dev/sda6 doesn't have a valid boot signature

se funziona non lo so...non ho fatto la prova perchè in caso di danni non so come ripristinare lilo....
Registrato
michele.p
Global Moderator
Hero Member
*****

Karma: +49/-44
Scollegato Scollegato

Messaggi: 6741



Mostra profilo
« Risposta #7 inserita:: Ottobre 13, 2011, 08:12:53 pm »

Iniziamo a riportare il lilo.conf che hai indicato solo con quello che serve eliminando tutti i commenti così il file è più leggibile:

Citazione
large-memory
#boot=/dev/sda
boot = /dev/disk/by-id/ata-HTS541010G9SA00_MP2ZX0X0KN5EBS

# root = /dev/sda5
root = "UUID=f3001dfa-9cf8-447d-877e-40be09ef8e6c"

map=/boot/map
delay=20

default=Linux

image=/vmlinuz
        label=Linux
        read-only
        append="quiet"
        initrd=/initrd.img

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
        append="quiet"
        initrd=/initrd.img.old

Ora ti riporto il mio lilo.conf (Slackware 13.37 - Utilizzo GAG - un boot manager - per avviare più sistemi operativi, quindi LiLO mi avvia solo la Slackware una volta che GAG gli ha passato la palla):

Citazione
boot=/dev/sda6
delay=10

image=/boot/vmlinuz
  root=/dev/sda5
  label=hsmp-2.6.37.6
  read-only

image=/boot/vmlinuz-huge-2.6.37.6
  root=/dev/sda5
  label=huge-2.6.37.6
  read-only

image=/boot/vmlinuz-generic-smp-2.6.37.6-smp
  root=/dev/sda5
  label=g-smp-2.6.37.6
  read-only

image=/boot/vmlinuz-generic-2.6.37.6
  root=/dev/sda5
  label=gen-2.6.37.6
  read-only

In più, un qualcosa di analogo al tuo lo stanno discutendo qui:

http://www.slacky.eu/forum/viewtopic.php?p=309385#p309385

Prima di tutto, il tuo lilo.conf avvia tutte le distro? ...questa è una cosa che non mi è chiara...  Occhi al cielo

Bye 8-)
Registrato

Morfeo
Sr. Member
****

Karma: +1/-1
Scollegato Scollegato

Messaggi: 374



Mostra profilo E-mail
« Risposta #8 inserita:: Ottobre 14, 2011, 12:24:04 pm »

Infatti la domanda che mi sono posto è la stessa di michele.p...ma una volta configurato anche con gli errori LILO vede le altre partizioni?...vi seguo perchè l'argomento mi interessa...
Registrato

./configure
  make
  make install
Pagine: [1]   Vai su
  Stampa  
 
Vai a:  


Powered by SMF 1.1.9 | SMF © 2006-2007, Simple Machines LLC -->