Pagina 1 di 2

Boot Loader

Inviato: lun 17 mar 2008, 17:30
da birg81
Ragazzi ho bisogno di una mano e subito
ho installato KUbuntu in un'altra partizione e quindi il mio HD sata così partizionato e'

Codice: Seleziona tutto

/dev/sda1 WinXp
/dev/sda2 partizione estesa che contiene sda6 e sda5
/dev/sda3 KUbuntu
/dev/sda4 Slackware 12
/dev/sda5 Dati [ntfs] *
/dev/sda6 swap
al momento dell'installazione di KUbuntu ho installato anche Grub, solo che poi ho fatto un casino e ora ho installato nuovamente LILO...

il casino nasce perche' con il file menu.lst (original) [così lo denoterò] perché modificando il file in modo che sia windows xp come primo sistema a partire di default e poi slackware 12 come secono e Kubuntu dopo Kubuntu non partiva

menu.lst ORIGINAL

Codice: Seleziona tutto

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

title		Ubuntu 7.10, memtest86+
root		(hd0,2)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda4.
title		Slack12 (on /dev/sda4)
root		(hd0,3)
kernel		/boot/vmlinuz root=/dev/sda4 ro vga = 791 
savedefault
boot
menu.lst MODIFICATO

Codice: Seleziona tutto

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##



### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda4.
title		Slackware 12
root		(hd0,3)
kernel		/boot/vmlinuz root=/dev/sda4 ro vga=0x31a
savedefault
boot

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd0,2)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005 ro single
initrd		/boot/initrd.img-2.6.22-14-generic

title		Ubuntu 7.10, memtest86+
root		(hd0,2)
kernel		/boot/memtest86+.bin
quiet

così sperando di essere in grado di mettere mano a lilo che mi era piu familiare ho installato lilo solo che mi sono reso conto di non essere in grado di modificare a manina lilo per far partire un kernel che stava in un'altra partizione.

ecco /etc/lilo.conf

Codice: Seleziona tutto

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
#compact # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda1
label = WinXP
table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda4
label = "Slack12"
read-only # Partitions should be mounted read-only for checking
# Linux bootable partition config ends

ORA il punto è che non importa il bootloader da usare ma l'importante è avere un bootloader che mi faccia partire sia slackware che kubuntu...

mi date una mano per favore...


PS:
il problema fondamentale sta nel fatto che se uso lilo non so come devo indicare che il kernel non sta nella partizione sda4 (segnata come bootale) ma sta nella partizione sda3
mentre per grub non capisco proprio perché mi da errore n 15 solo per aver spostato un paio di righe in su

Re: Fast HELP - Boot Loader

Inviato: lun 17 mar 2008, 18:50
da zetsu
Ciao,

in S4D, scheda 20, c'è un'esempio per aggiungere a lilo altri SO...

Re: Fast HELP - Boot Loader

Inviato: lun 17 mar 2008, 19:28
da 414N
Per quanto riguarda GRUB, dai una letta qua: http://www.linuxselfhelp.com/gnu/grub/h ... rub_2.html.
In particolare:
(hd0,4)

This specifies the first extended partition of the first hard disk drive. Note that the partition numbers for extended partitions are counted from `4', regardless of the actual number of primary partitions on your hard disk.
GRUB usa una convenzione diversa da quella del kernel Linux per numerare le partizioni dei dischi rigidi.
Percui, come indicato sopra, per indicare la partizione estesa del tuo disco /dev/sda2 devi usare (hd0,4) (se è il tuo primo hard disk) e (hd0,5) per la prima partizione contenuta (/dev/sda5).
Inoltre ricorda che la numerazione di GRUB parte da 0, non da 1.
Appena avrò tempo controllerò LILO.

Se ho detto vaccate correggetemi, please #-o

Re: Fast HELP - Boot Loader

Inviato: lun 17 mar 2008, 19:45
da urka58
Perdona la franchezza, ma dal tuo post non è che si capisca un granchè. Mi pare comunque di capire che dopo aver installato lilo sei in grado di caricare windows e slackware, ma sei in difficoltà nell'aggiungere una sezione in /etc/lilo.conf che ti consenta di avviare Kubuntu.
Se così è procederei come segue:
- Crea un punto di montaggio, diciamo /kubuntu e su quel punto monti la partizione Kubuntu (/dev/sda3 come riferisci). In realtà puoi usare un punto di montaggio esistente, nel caso adatta la sezione di /etc/lilo.conf di conseguenza.
- Crea una sezione in /etc/lilo.conf tipo

Codice: Seleziona tutto

image = /kubuntu/boot/vmlinuz-2.6.22-14-generic
initrd = /kubuntu/boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
read only
Verifica che il kernel e l'immagine RAM di Kubuntu siano corretti, li ho presi dal menu.lst che hai postato.
Lancia lilo -v -t e se non ci sono errori
lilo -v
Dovresti essere a posto
Ciao

PS E' possibile che Kubuntu riconosca la partizione root solo come UUID=xxxx-xxx-xxx-
Nel caso la sezione di /etc/lilo.conf dovrebbe diventare:

Codice: Seleziona tutto

image = /kubuntu/boot/vmlinuz-2.6.22-14-generic
initrd = /kubuntu/boot/initrd.img-2.6.22-14-generic
label = "Kubuntu"
append = "root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005"
read only
Riciao

Re: Fast HELP - Boot Loader

Inviato: mar 18 mar 2008, 9:44
da birg81
no le opzioni erano due o mi spiegavate come reistallare grub e dove modificare menu.lst per far avviare kubuntu, o come giustamente avete fatto aiutarmi a modificare lilo.conf per inserire kubuntu...
piu tardi entro con linux e vi faccio sapere se lilo è ok...

GRAZIE

LILO ancora non va!

Inviato: mar 18 mar 2008, 10:37
da birg81
urka58 ha scritto:- Crea un punto di montaggio, diciamo /kubuntu
Lilo non va.

Il mio punto di montaggio è /mnt/LinX/
il punto è che all'avvio di lilo, io penso che non avendo montato ancora sda4 (partizione che contine Slackware) lilo non può risalire al percorso relativo del punto di montaggio di sda3 (partizione di kubuntu) quindi credo che tu ti sia un attimino confuso

comunque l'errore che mi da è qst:

Codice: Seleziona tutto

Unrecognized token "read" at or above line 52 in file '/etc/lilo.conf'
MODIFICA
alla fine era read-only con il trattino corretto quell'errrore per così dire grammaticale l'errore resta questo

Codice: Seleziona tutto

Boot image: /mnt/LinX/boot/vmlinuz-2.6.22-14-generic
Mapping RAM disk /mnt/LinX/boot/initrd.img-2.6.22-14-generic
Fatal: open /mnt/LinX/boot/initrd.img-2.6.22-14-generic: No such file or directory
che come ti dicevo penso sia dovuto al fatto che non riesce a risalire al percorso relativo di sda3 a partire della directory root di sda4

Re: AIUTO VELOCE PLEASE!! - Boot Loader

Inviato: mar 18 mar 2008, 10:58
da 414N
Sei sicuro della numerazione delle partizioni?
Mi suona strana la partizione estesa /dev/sda2...
Controlla con un fdisk -l /dev/sda

Re: AIUTO VELOCE PLEASE!! - Boot Loader

Inviato: mar 18 mar 2008, 11:33
da urka58
A parte controllare se le partizioni sono indicate correttamente, come giustamente suggerito da 414N, quando monti /dev/sda3 su /mnt/LinX ricevi qualche segnalazione di errore? Se nel montaggio, non ci sono errori in /mnt/LinX/boot ci sono i files "vmlinuz-2.6.22-14-generic" e "initrd.img-2.6.22-14-generic"?
Ciao

Re: AIUTO VELOCE PLEASE!! - Boot Loader

Inviato: mar 18 mar 2008, 13:53
da birg81
urka58 ha scritto:A parte controllare se le partizioni sono indicate correttamente, come giustamente suggerito da 414N, quando monti /dev/sda3 su /mnt/LinX ricevi qualche segnalazione di errore? Se nel montaggio, non ci sono errori in /mnt/LinX/boot ci sono i files "vmlinuz-2.6.22-14-generic" e "initrd.img-2.6.22-14-generic"?
Ciao
Le numerazioni sono proprio quelle... garantito, se la numerazione è stra è colpa di Windows...

i file ci sono...

Ma siete proprio sicuri che appena parte lilo legga subito le partizioni? io non ne sono sicuro! e cio' mi è confermato dal fatto dei messaggi di errore

Re: Fast HELP - Boot Loader

Inviato: mar 18 mar 2008, 15:07
da 414N
urka58 ha scritto:

Codice: Seleziona tutto

image = /kubuntu/boot/vmlinuz-2.6.22-14-generic
initrd = /kubuntu/boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
read only
Mah... hai provato con:

Codice: Seleziona tutto

image = /boot/vmlinuz-2.6.22-14-generic
initrd = /boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
read only

Re: Fast HELP - Boot Loader

Inviato: mar 18 mar 2008, 17:30
da birg81
414N ha scritto:Mah... hai provato con:

Codice: Seleziona tutto

image = /boot/vmlinuz-2.6.22-14-generic
initrd = /boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
read only
no appena qui a casa mi lasceranno il pc ci provero'... comunque l'ultimo rigo ti dico a priori che è sbagliato perché è read-only con il trannino

Re: AIUTO VELOCE PLEASE!! - Boot Loader

Inviato: mar 18 mar 2008, 17:51
da aschenaz
Anche le virgolette della label non sono strettamente necessarie.

Penso funzioni lo stesso e si limiti a visualizzarle nelle opzioni di scelta... Di sicuro, senza, funziona.

Re: Boot Loader

Inviato: mar 18 mar 2008, 19:08
da birg81
ancora non va
questo è la parte di lilo conf per kubuntu

Codice: Seleziona tutto

# Linux bootable partition config begins
image =  /boot/vmlinuz-2.6.22-14-generic
initrd = /boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
#append = "root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005"
read-only
# Linux bootable partition config ends
ho provato pure con

Codice: Seleziona tutto

# Linux bootable partition config begins
image =  /boot/vmlinuz-2.6.22-14-generic
initrd = /boot/initrd.img-2.6.22-14-generic
#root = /dev/sda3
label = "Kubuntu"
append = "root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005"
read-only
# Linux bootable partition config ends
ma ugualmente non va l'errore e'

Codice: Seleziona tutto

Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data

Boot other: /dev/sda1, on /dev/sda, loader CHAIN
Added WinXP *

Boot image: /boot/vmlinuz -> vmlinuz-huge-smp-2.6.21.5-smp
Added Slack12

Boot image: /boot/vmlinuz-2.6.22-14-generic
Fatal: open /boot/vmlinuz-2.6.22-14-generic: No such file or directory

Re: Boot Loader

Inviato: mar 18 mar 2008, 22:02
da makbell
ho provato pure con

Codice: Seleziona tutto
# Linux bootable partition config begins
image = /boot/vmlinuz-2.6.22-14-generic
initrd = /boot/initrd.img-2.6.22-14-generic
#root = /dev/sda3
label = "Kubuntu"
append = "root=UUID=b1962890-3bdc-4e1d-b26e-ac22f0bf4005"
read-only
# Linux bootable partition config ends



ma ugualmente non va l'errore e'

Codice: Seleziona tutto
Reading boot sector from /dev/sda
Using MENU secondary loader
Calling map_insert_data

Boot other: /dev/sda1, on /dev/sda, loader CHAIN
Added WinXP *

Boot image: /boot/vmlinuz -> vmlinuz-huge-smp-2.6.21.5-smp
Added Slack12

Boot image: /boot/vmlinuz-2.6.22-14-generic
Fatal: open /boot/vmlinuz-2.6.22-14-generic: No such file or directory
Per forza: in /boot della partizione di Slackware non hai quel vmlinuz... e initrd...;
prova a creare un link simbolico ai 2 file in /boot e rilanciare lilo.
Buona Fortuna!

Re: Boot Loader

Inviato: mar 18 mar 2008, 22:06
da urka58
Se la partizione di kubuntu (sda3?) non viene montata, lilo non può trovare ne il kernel ne il file dell'immagine RAM.
Se indichi in lilo.conf /boot/vmlinuz-2.6.22-14-generic e /boot/initrd.img-2.6.22-14-generic lilo cerca i file nella dir /boot di Slackware.
Devi indicare il percorso completo /tuo/mount/point/boot/vmlinuz-2.6.22-14-generic.
Inoltre, se fai caso, con

Codice: Seleziona tutto

image = /mnt/LinX/boot/vmlinuz-2.6.22-14-generic
initrd = /mnt/linX/boot/initrd.img-2.6.22-14-generic
root = /dev/sda3
label = "Kubuntu"
read only
lilo trova il kernel /mnt /LinX/boot/vmlinuz-2.6.22-14-generic ma non l'immagine RAM /mnt/LinX/boot/initrd.img-2.6.22-14-generic.
Infatti, lanciando lilo ricevi come errore

Codice: Seleziona tutto

Boot image: /mnt/LinX/boot/vmlinuz-2.6.22-14-generic
Mapping RAM disk /mnt/LinX/boot/initrd.img-2.6.22-14-generic
Fatal: open /mnt/LinX/boot/initrd.img-2.6.22-14-generic: No such file or directory
Verifica che /mnt/LinX/boot/initrd.img-2.6.22-14-generic non sia un link che punta ad un altro file, magari in una diversa directory.
Ciao
PS Vedo che mi hanno preceduto +/- con la stessa risposta