View Full Version : LILO on Debian Unstable
ciao a tutti... come sapete sto usando debian unstable.. cauasa cambiamento partizione (HD2 --> HD1) ho cancellato Linux per poi rimetterlo. Tutto funzionava perfettamente installando dalla MiniISO di Debian Woody. Ho poi messo i sources di Unstable e ho fatto [ dopo apt-get update ] apt-get dist-upgrade && apt-get upgrade... al riavvio il lilo si blocca scrivendo LI :mc: ho dovuto ripristinare l'mbr con quello di windows :eek:
La cfg è la stessa, dite che mi conviene cambiare reposities (se sì me li conisgliereste?), disinstallare LILO e rimetterlo o altro??
Grazie mille
marcello81
24-05-2003, 12:03
Io non ho la Debian, ma mi sa che se hai cambiato posto al disco (tipo da primario a secondario, o da master a slave) e non hai cambiato la configurazione di LILO (/etc/lilo.conf), LILO ha ragione a lamentarsi: non trova il disco! Dai un'occhiata, e se è il caso posta la tua configurazione e il file /etc/lilo.conf. Ciao!
alla formattazione e reinstallazione PRIMA dell'upgrade ad Unstable tutto FUNZIONAVA e la Configurazione sia del file che di HD, partizioni DOPO la nuova installazione [ che funzionava ] è rimasta tale. ;)
Credo che sia bacato sto LILO o non so... che dice chi usa deb unstable?
xfulviox
24-05-2003, 12:07
controlla che /etc/lilo.conf sia ben editato e poi lanci 'lilo' e 'lilo -q'. di solito si ha una situazione come la tua quando lilo non trova l'immagine del kernel da lanciare. le immagini del kernel si trovano in /boot... controlla che il percorso sia giusto! ecco un esempio:
default=2.4.20
image=/boot/vmlinuz-2.4.18-bf2.4
label=2.4.18
read-only
# restricted
# alias=1
image=/boot/vmlinuz-2.4.20
label=2.4.20
read-only
e poi controlla che lilo sia caricato nella partizione corretta! ecco la mia situazione:
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda
il comando 'lilo' va eseguito ogni volta che modifichi il file lilo.conf per caricare lilo sulla partizione da te desiderata :)
maxithron
24-05-2003, 12:17
io uso debian unstable ma che centra col fatto che non parte lilo?
in genere quando rimane fermo su LI(nux) e non carica LO(ader)
significa che o (come ti hanno già suggerito) non trova l'hd o parte da un'immagine errata.
ok grazie reinstallerò per bene la distro e controllerò il lilo.conf.. ;)
xfulviox
24-05-2003, 12:33
fermoooo! non devi reinstallare la distro!!!
non fare come un utente microcozz!! ;)
Ormai è tardi, cmq non ti serviva reinstallare
partivi con un live cd tipo knoppix, da root facevi "cp -a <sorgente> <destinazione>" dove sorgente era l'hd vecchio e destinazione il nuovo e ti trovavi il sistema TALE E QUALE nell'altro hd (stessi attibuti dei file ecc ecc)
boot con un cd di rescue, sistemavi lilo, e fine.
ecco all'upgrade del LILO mi si e' ripresentato il problema.. mi aiutate ad aggiustare sto lilo.conf please??
Ve lo metto sotto CODE qui.. grazie mille ;)
# /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', 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'. |
# | |
# +---------------------------------------------------------------+
# Support LBA for large hard disks.
#
lba32
# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81
#disk=/dev/sda
# bios=0x80
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda
# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdb2
# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact
# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b
# 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
timeout=150
# prompt
# single-key
# delay=100
# timeout=100
# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal
# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
# Boot up Linux by default.
#
default=Linux
image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1
#image=/vmlinuz.old
# label=LinuxOLD
# read-only
# optional
# restricted
# alias=2
# 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/hda4
# label=HURD
# restricted
# alias=3
other=/dev/hda1
label="Win2K(hda1)"
other=/dev/hda2
label="Win2K-OLD(hda2)"
other=/dev/hdb1
label="WinXP(hdb1)"
(l'ho editato con l'EDIT del DOS è uguale vero? Cmq mi da sempre il solito errore che riporto:
codardo:~# lilo -v
LILO version 22.5.3.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2003 John Coffman
Released 12-May-2003, and compiled at 10:40:30 on May 16 2003.
Error: /dev/hda1 and /dev/hdb1 have duplicate volume IDs (serial numbers)
Fatal: Duplicated volume IDs must be resolved before installation can proceed.
Use the '-z' and '-M <dev>' switches to erase the conflicts.
codardo:~#
Any idea? please aiutatatemi è urgente ... grazie ;)
ecco ho fatto la frittata.. per sbaglio ho annientao il LILO.. mi potreste dire gentilmente che lilo.conf mettere per avviare in modo corretto e che comando dare avviando da floppy di ripristino per reinstallare??
Ve ne sarei eternamente grati grazie mille :cry:
Timewolf
24-05-2003, 20:33
Originally posted by "Maestro"
ecco ho fatto la frittata.. per sbaglio ho annientao il LILO.. mi potreste dire gentilmente che lilo.conf mettere per avviare in modo corretto e che comando dare avviando da floppy di ripristino per reinstallare??
Ve ne sarei eternamente grati grazie mille :cry:
Fai esattamente quello che ti dico...non ti servono live-cd o rescue-floppy per risolvere il tuo problema :)
1) copiati questo lilo.conf su un floppy
lba32
boot=/dev/hda
root=/dev/hdb2
install=/boot/boot-menu.b
map=/boot/map
delay=20
prompt
timeout=150
vga=normal
default=Linux
image=/vmlinuz
label=Linux
read-only
other=/dev/hda1
label="Win2K(hda1)"
other=/dev/hda2
label="Win2K-OLD(hda2)"
other=/dev/hdb1
label="WinXP(hdb1)"
Che e' il tuo, a me e' capitato di recente che una sid impallasse il LILO come a te...rilanciando LILO e' tutto tornato a funziare....misteri della SID
Per sicurezza scrivitelo anche da qualche parte, il floppy potrebbe non essere accessibile.
Metti ora il cd della debian (il mini-iso va benissimo) e fallo partire, scegli la lingua e la tastiera e FERMATI QUA.
Premi ALT+F2, dai invio e scrivi
mount /dev/hdb2 /mnt
chroot /mnt /bin/bash
Ora sei nel tuo ambiente Linux... scrivi cosi'
cd /etc
mv lilo.conf lilo.conf.old
Metti il floppy con il lilo.conf e fai
mcopy a:lilo.conf .
lilo
Et voilat!
Se mcopy non funziona devi riscriverti il lilo.conf a mano, per cui vi lilo.conf
e lanci lilo
Fai un reboot e dovrebbe funzionare tutto :)
grazie ... però ho un piccolo problema... gia' quando faccio
mount /dev/hdb2 /mnt
mi da invalid argument.. qualche idea?? grazie ancora ;)
maxithron
25-05-2003, 09:50
controlla che il file venga montato in auto nel file fstab.
Se non ho letto male la tua directory /root si trova in /dev/hdb2
Se puoi, postaci anche il contenuto del file fstab.
ANDY CAPS
25-05-2003, 09:59
al limite se non vuoi stare a smanettare eccessivamente fai ripartire l'installazione della debian e fai il mount della swap gia' inizializzata e della partizione di / gia inizializzata cosi rifai semplicemente la configurazione di lilo
poi riavvii il sistema ed hai il tuo sitema perfettamente configurato
ho avuto anchio il tuo stesso problema smanettando con i sorgenti del kernel-source-2.5.69 che hanno messo disponibile sulle repository ed ho risolto cosi'
:rolleyes:
grazie a tutti per l'interessamento e per i contributi.. ho poi risolto come detto da ANDY CAPS... ma grazie anche a tutti gli altri ;)
Ciao
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.