configurare multiboot lilo e grub

Aperto da trigg, Venerdì 20 Aprile 2018, 21:42:24

Discussione precedente - Discussione successiva

trigg



parto da questa discussione aperta in un'altro topic del forum per aprire una nuova discussione che mi tormenta da un'annetto

nelll'89% delle volte uso slackware e mi piacerebbe installare nell'mbr lilo oppure come seconda scelta anche il grub di slckware che ho conosciuto nella precedente discussione

lilo.conf ha avuto esito negativo in quanto non è altro che l'impostazione esatta fatta con il comando lilo config
il problema è che con la maggior parte dei sistemi operativi per esempio come linux-mint nel login non funzionano mouse e tastiera
oppure in altri casi il login va in loop

mentre con il grub non mi si è avviato calculate-linux con l'output di errore
bisogna caricare prima il kernel  :dry:
bash-4.3# grub-mkconfig -o /boot/grub/grub.cfg
Creazione di grub.cfg...
Trovata immagine linux: /boot/vmlinuz-huge-4.4.118
Trovata immagine linux: /boot/vmlinuz-huge
Trovata immagine linux: /boot/vmlinuz-generic-4.4.118
Trovata immagine linux: /boot/vmlinuz-generic
Trovato Slackware Linux (Slackware 14.2) su /dev/sda5
Trovato Zorin OS 12.3 (12) su /dev/sda7
Trovato Calculate Linux Desktop 17.12.2 KDE su /dev/sda8
/usr/sbin/grub-probe: errore: file system sconosciuto.
fatto


questo è l'output


se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

nessuno

Nella lista dei sistemi installati trovati da grub manca qualcuno all'appello?

L'errore ti dice che ha trovato un filsystem sconosciuto: appartiene al sistema che eventualmente manca all'appello?

L'hai installato (Grub) nel mbr della chiavetta oppure del HD?

guest828

Ciao Trigg,

Ieri sera andavo di fretta e mi sono dimenticato di dire che dopo aver modificato /etc/lilo.conf aggiungendo le righe
other = /dev/sda4
label = nome>della>distro
occorre dare il comando di aggiornamento, cioe`:
# lilo
oppure
# lilo -v
oppure
# /sbin/lilo
Inoltre, il nome scelto nella "label" deve essere costituito da un'unica parola; cioe`, se la distro da aggiungere e` per esempio Linux Mint, occorre scrivere:
label = Linux-Mint
Questa procedura ha sempre funzionato per me, senza creare alcun disservizio come quelli che stai sperimentando tu, mi rimane un unico dubbio, cioe` non ricordo se e` necessario che le distro che si vogliono aggiungere a Lilo abbiano Grub installato sulla loro partizione "/".
Ti passo un paio di indirizzi, nell'ipotesi che possano  esserti utili:
https://docs.salixos.org/wiki/LILO_bootloader_-_fix,_configure_and_customize
(questo piu` che altro e` un promemoria nel caso tu voglia cambiare l'immagine di sfondo)
http://www.control-escape.com/linux/lilo-cfg.html
(questa e` una presentazione ben articolata)
https://www.linuxquestions.org/questions/slackware-14/want-to-add-second-distribution-to-lilo-4175495803/
(qui c'e` una procedura che non ho mai sperimentato ma che pare dia il desiderato risultato finale).

Con Grub non mi avventuro perche` se lo scegli/installi al posto di Lilo sicuramente non hai problemi, pero` leggendo il suggerimento di Nessuno, un dubbio mi e` venuto: se lo hai installato in una chiavetta ed hai il disco UEFI, secondo me, quello e` il motivo per cui ti da "file system sconosciuto" a proposito di CLD.
:ciao:

trigg

provo prima a far partire lilo
ho letto i link
prima di iniziare ho trovato in /etc un foglio di testo che si chiama lilo.conf_example

ho appena preso il caffè ed ho il cervello mezzo addormentato  :coffee:

più tardi lo confronterò con i link
# /etc/lilo.conf  -   systemwide LILO configuration (LILO 24)
# details see in manpages: lilo(8) and lilo.conf(5)

# +-------------------------------------------------------------+
# |                        !! Reminder !!                       |
# |                                                             |
# | Don't forget to run 'lilo' after you make changes to this   |
# | conffile or you have installed a new kernel.                |
# +-------------------------------------------------------------+


# #################### LILO global section ######################

# With all newer systems (until year 2004) you can use the RAM
# above 15 MB. This option allows the use of this range of RAM.
#large-memory

# With all newer systems you can boot from any partition on disks
# with more than 1024 cylinders. This option allows the use of
# partitions above 1024 cylinders.
lba32

# Defines 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.
# With newer kernel you should use the ID of the boot device, which
# can be found here: /dev/disks/by-id/ata*.
boot = /dev/sda

# Defines the partition which is the root partition. This partition
# will be mounted at first from the kernel. With newer kernel you
# should use the UUID (UUID="...") of the root device, which can be
# found here: /dev/disks/by-uuid/*.
root = /dev/sda1

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

# Enable map compaction.  This 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

# Set the verbose level for bootloader installation. Value range:
# 0 to 5. Default value is 0.
#verbose = 1

# Specifies the location of the map file. Lilo creates the (sector)
# map file of direct sector addresses which are independent of any
# filesystem.
map = /boot/map

# ---------------------------------------------------------------

# Specifies the menu interface. You have the choice between:
#   text: simple text menu with black background and white text
#   menu: configurable text menu with background and text colors.
#   bmp:  graphical menu with 640x480 bitmap background.
install = menu

# A) Customized boot message for choice 'text'.
# For the simple text menu you can set an extra message in the
# created file. Its text will be displayed before boot prompt.
#message = /boot/message.txt

# B) Configuration of the scheme for choice 'menu'.
# Use following coding: <text>:<highlight>:<border>:<title>
# The first character of each part sets the text frontcolor,
# the second character of earch part sets the text backcolor,
# an upper-case character sets bold face text (frontcolor).
#
# E.g. 'menu-scheme=wm:rw:wm:Wm'. Possible colors:
# k=black, b=blue, g=green, c=cyan, r=red, m=magenta, y=yellow, w=white.
menu-scheme = Wb:Yr:Wb:Wb
#menu-title = " DESDEMONA Boot-Manager "

# C) Configuration of the image for choice 'bmp'.
# For the graphical menu you need a bitmap file, which needs a special
# menu configuration in the file header (see: lilo -E). Ideally you
# use one of the delivered images of the lilo package.
#   with 16 colors:    onlyblue, tuxlogo, inside
#   with 256 colors:   coffee
#   for Debian:        debianlilo, debian, debian-de
#bitmap = /boot/tuxlogo.bmp

# ---------------------------------------------------------------

# Specifies the number of deciseconds (0.1 seconds) how long LILO
# should wait before booting the first image.  LILO doesn't wait if
# 'delay' is omitted or set to zero. You do not see the defined menu.
#delay = 20

# Prompt to start one certain kernel from the displayed menu.
# It is very recommeded to also set 'timeout'. Without timeout boot
# will not take place unless you hit return. Timeout is the number
# of deciseconds (0.1 seconds) after there the default image will
# be started. With 'single-key' alias numbers for each menu line can
# be used.
prompt
timeout = 100
#single-key

# ---------------------------------------------------------------

# Specifying the VGA text mode that should be selected when booting.
# The following values are recognized (case is ignored):
#   vga=normal    80x25 text mode (default)
#   vga=extended  80x50 text mode (abbreviated to 'ext')
#   vga=ask       stop and ask for user input: choice of text mode
#   vga=<mode>    use the corresponding text mode number. A list of 
#                   available modes can be obtained by booting with 
#                   'vga=ask' and then pressing [Enter].
#
# Another way is the use of frame buffer mode. Then the kernel
# will switch from the normal vga text mode (80x25) to the frame
# buffer <mode> (if frame buffer support is in the kernel):
#                   16bit:    32bit:
#     640x480 :     0x311     0x312
#     800x600 :     0x314     0x315
#    1024x768 :     0x317     0x318
#    1280x960 :     0x365     0x366
#    1280x1024:     0x31A     0x31B
#    1400x1050:     0x345     0x346
#    1600x1200:     0x333     0x334
#    1680x1050:     0x3D2     0x3D4
#    1920x1440:     0x337     0x338
#vga = ask
vga = normal
#vga = 0x317

# ---------------------------------------------------------------

# Set a password here and uncomment the 'restricted' lines in
# the image definitions below. Then 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 this lilo.conf, the password is required, but
# a standard default boot will not require one.
#
# If anyone have access to the console, with this password and
# the 'restricted' option you prevent booting with something
# like 'Linux init=/bin/sh' and thus becoming `root' without
# proper authorization.
#password = count4this

# Kernel command line options that apply to all installed images go
# here.  See 'kernel-parameters.txt' in the Linux kernel 'Documentation'
# directory. I.g. for start into 'init 5' write:  append="5"
#append = ""

# If you used a serial console to install Debian, this option should be
# enabled by default.
#serial = 0,9600

# Set the image which should be started after delay or timeout.
# If not set, the first defined image will be started.
#default = Linux


# ################### LILO per-image section ####################

# Each image is configured with the linux kernel (=image) and
# usually with the initrd file. Configure all GNU/Linux systems
# on other partitions, too.

# Warning: labels must be less than 16 characters long.

# first example (default)
image = /boot/vmlinuz-3.12-1-generic
label = "Linux"
# root = /dev/sda2
read-only
# restricted
# alias = 1
# optional
initrd = /boot/initrd.img-3.12-1-generic

# second example
image = /boot/vmlinuz-2.6.32-1-generic
label = "Linux OLD"
# root = /dev/sdb1
read-only
# restricted
# alias = 2
optional
initrd = /boot/initrd.img-2.6.32-1-generic

# third example
image = /mnt/testsystem/boot/vmlinuz-2.6.26-1-custom
label = "Testsystem"
# root = /dev/sda3
read-only
# restricted
# alias = 3
optional
initrd = /mnt/testsystem/boot/initrd.img-2.6.26-1-custom

# other examples
# Booting other OS on this machine must set with 'other'. Changing
# the device name on the `other' line to the partition of your other
# system.

other = /dev/sda1
label = "MS-Windows"
# restricted
# alias = 4

other = /dev/sdb2
label = "GNU/Hurd"
# restricted
# alias = 5

other = /dev/sdb3
label = "FreeBSD"
# restricted
# alias = 6
boot-as = 0x80


buona giornata  :ciao:
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

trigg


ho provato a seguire i passaggi del link
https://www.linuxquestions.org/questions/slackware-14/want-to-add-second-distribution-to-lilo-4175495803/

bash-4.3$ su
Password:
bash-4.3# mkdir /mnt/calculate
bash-4.3# mount /dev/sda8 /mnt/calculate
bash-4.3# umount /dev/sda8 /mnt/calculate
umount: /mnt/calculate: not mounted
bash-4.3# rm -r /mnt/calculate
bash-4.3# lilo
Warning: LBA32 addressing assumed
Added Slackware  *
Fatal: open /mnt/calculate/boot/vmlinuz: No such file or directory
bash-4.3#  /sbin/lilo
Warning: LBA32 addressing assumed
Added Slackware  *
Fatal: open /mnt/calculate/boot/vmlinuz: No such file or directory
bash-4.3# lilo -v
LILO version 24.2 (released 22-November-2015)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2015 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software
distributed under the BSD License (3-clause). Details can be found in
the file COPYING, which is distributed with this software.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/vmlinuz -> vmlinuz-huge-4.4.118
Added Slackware  *

Boot image: /mnt/calculate/boot/vmlinuz
Fatal: open /mnt/calculate/boot/vmlinuz: No such file or directory


quindi per risolvere il problema dovrò capire come fare tramite questo link , solo che non capisco bene come fare perchè cita arch e non slackware
https://www.linuxquestions.org/questions/slackware-14/kernel-update-vmlinuz-2-6-6-no-such-file-or-directory-181082/

:help:

se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

guest828

Ciao Trigg,

Secondo me hai sbagliato la sequenza, cioe`, tu hai fatto:
bash-4.3# mkdir /mnt/calculate
bash-4.3# mount /dev/sda8 /mnt/calculate
bash-4.3# umount /dev/sda8 /mnt/calculate
umount: /mnt/calculate: not mounted
bash-4.3# rm -r /mnt/calculate
bash-4.3# lilo
per come la capisco io deve essere:
mkdir /mnt/calculate
mount /dev/sda8 /mnt/calculate
/sbin/lilo
umount /dev/sda8 /mnt/calculate
rm -r /mnt/calculate




trigg

nulla da fare con lilo

mentre con grub ho sostituito il file grub.cfg slackware con quello  di zorin (perchè con zorin si avviano tutti e 3 i sistemni)

il risultato è identico a file grub.cfg di slackware , calculate non si avvia

ci deve essere una specie di conflitto tra slackware e calculate  :hmm:
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

nessuno

#7
Io non credo che ci sia incompatibilità tra Slackware e Calculate. Visto il messaggio di errore che ottieni mi sembra più probabile che l'identificativo univoco relativo al disco alla parizione in cui si trova la root di Calculate non coincida con quello riportato nella configurazione di Grub...


trigg

non so proprio che dire
ho controllare e ricontrollato ma a me sembra tutto ok
è davvero un gran bel rompicapo  :cool:
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

nessuno

Ti faccio qualche domanda; se invece di ignorarmi, come hai fatto prima, mi rispondi puntualmente forse posso darti una mano...

Qual'è il grub che comanda in quella macchina?

La macchina è Uefi?

Hai provato a installare grub su una USB?

E' davvero necesario tenere tre sistemi, non potresti fare a meno (Per esempio) di Zorin che tra Slackware e Calculate ci sta proprio come un cavolo a merenda?

Attualmente quali sistemi riesci a caricare, e come?

trigg

#10
ma non ti sto ignorando nick
ho solo dato priorità a lilo

ora rispondo punto per punto

il grub che comanda la macchina attualmente è quello di slackware

la macchina non è uefi

non ho provato ad installare il grub su una usb , attualmente è su dev/sda


per i sistemi operativi ho
slackware che uso sempre
calculate kde che mi affascina e mi piace imparare e sperimentare temi kde
zorin l'ho voluto provare ma di solito in quella partizione c'è mint cinnamon che uso davvero di rado per provare i temi cinnamon


i sistemi che carico sono
slackware e zorin
con calculate c'è l'errore che ho postato prima  :boh:

come
          se ti riferisci a lilo o grub, li carico con grub

perchè con lilo
a zorin non funziona mouse e tastiera nel login
mentre con calculate il login va in loop , la schermata lampeggia e non funzionano mouse e tastiera   
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

nessuno

#11
Se per il momento non ti occorre elimina zorin (formatta la sua partizione). Avevi detto di aver sostituito il grub.cfg di slackware con quello di zorin. Sarebbe meglio evitare questa ibridazione.

Per generare una nuova configurazione di grub, su slackware, dai questo comando da root:

grub-mkconfig -o /boot/grub/grub.cfg

poi riavvia la macchina e prova a caricare calculate.


Poi dimmi com'è andata...

EDIT:
naturalmente so che questa operazione potrebbe non sortire gli effetti che speri (calculate continua a non avviarsi), tuttavia è indispensabile per i tentativi che dovrai fare dopo, quando cercherai di creare una voce personalizzata, nel grub di slackware, per calculate;  editando, in slackware, il file /etc/grub.d/40_custom e aiutandoti per questo con il file grub.cfg nella directory /boot di calculate (se esiste).

Fai un passo alla volta però, completa prima le istruzioni di questo post...

trigg

#12
allora ho formattato la partizione di zorin

questo è l'output del grub di slackware
bash-4.3# grub-mkconfig -o /boot/grub/grub.cfg
Creazione di grub.cfg...
Trovata immagine linux: /boot/vmlinuz-huge-4.4.118
Trovata immagine linux: /boot/vmlinuz-huge
Trovata immagine linux: /boot/vmlinuz-generic-4.4.118
Trovata immagine linux: /boot/vmlinuz-generic
Trovata immagine linux: /boot/vmlinuz-4.14.19-calculate
Trovata immagine linux: /boot/vmlinuz-4.4.0-47-generic
Trovato Slackware Linux (Slackware 14.2) su /dev/sda5
Trovato Calculate Linux Desktop 17.12.2 KDE su /dev/sda8
/usr/sbin/grub-probe: errore: file system sconosciuto.
fatto
bash-4.3#   


al riavvio ho questa shermata quando seleziono calculate
se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...

nessuno

Con calculate, quando riuscivi ad avviarlo usavi lilo o grub?

trigg

#14
usavo il grub con zorin

in allegato il grub.cfg di calculate

se hai paura di far domande...
                                             ...hai paura d'imparare
     ... non si finisce mai d'imparare...