Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3645 connectés 

 


Dernière réponse
Sujet : [LILO] booter sur une autre partition contenant un autre linux
Tetedeiench En quoi la première facon diffère de ce que j'ai fait ?
 
j'ai essayé en mountant le filesystem dans /debian, et en mettant le lien ... pas compil.
 
J'ai mis le mot linear => Passé.
 
mais quand je voulais booter sur la debian, , il plantait au nivo du kernel...
 
je suis bon pour la seconde solution... mais pas ce soir, on verra demaing :sol:

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
Tetedeiench En quoi la première facon diffère de ce que j'ai fait ?
 
j'ai essayé en mountant le filesystem dans /debian, et en mettant le lien ... pas compil.
 
J'ai mis le mot linear => Passé.
 
mais quand je voulais booter sur la debian, , il plantait au nivo du kernel...
 
je suis bon pour la seconde solution... mais pas ce soir, on verra demaing :sol:
Tetedeiench

minusplus a écrit a écrit :

c sport ! :D  




 
Bordel de merde :eek2:
 
Linux, Cai l'ami du aprticulier j'voo di ! :D

minusplus c sport ! :D
minusplus Ah ouais, merde...
 
http://www.heise.de/ct/english/99/12/166/
 

Citation :


For booting different complete Linux installations - each kernel has its own root file system -, the first thing to do is to mount the root partitions of all installations with the Linux version used for starting Lilo. A constellation like the one shown in our illustration below first requires to start the Debian distribution in /dev/sda1 and to mount /dev/sdb1 as well as /dev/sdb2 for example in /mnt/slack and /mnt/deb_alt.
Now, the various kernel images can be added to /etc/lilo.conf:
 
image = /boot/vmlinuz
root = /dev/sda1
label = Debian
image = /mnt/slack/boot/vmlinuz
root = /dev/sdb1
label = Slackware
image = /mnt/deb_alt/boot/vmlinuz
root = /dev/sdb2
label = Alt
Calling /sbin/lilo now results in a choice of booting one of three Linux installations. However, this solution has a drawback: Every kernel compilation requires Lilo re-installation. Say you have installed a new kernel under Slackware, Debian must be re-booted, the other installations' root directories must be re-mounted and /sbin/lilo.conf must be called again. Only then can Slackware be started with the new kernel.
 
 
In the Debian distribution, Lilo is installed on /dev/sda1 but is meant to be able to boot all three Linux versions.
(Click on thumbnail for enlarged view)
As one central Lilo in MBR can start additional Lilos in the boot sectors of other partitions, there is a more comfortable option: A 'master' installation puts its Lilo in MBR, the remaining Linux installations boot with their own Lilos in the boot sectors of their own partitions. Only the 'local' Lilo must be re-written in case of alterations, the Lilo in MBR remains unchanged. It is not necessary to re-boot the 'master' installation.
/sbin/lilo of the Slackware installation in our example can then be started using this /etc/lilo.conf:
 
boot=/dev/sdb1
image = /vmlinuz
root = /dev/sdb1
/sbin/lilo will complain that an installation onto the second disk does not make sense. In principle, this warning is justified since a BIOS cannot detect the boot code in /dev/sdb1 - the Lilo in MBR installed under Debian, however, can. For this purpose,
 
other = /dev/sdb1
label = Slackware
must be added to /etc/lilo.conf under Debian. If the choice is Slackware, the Lilo in MBR will start the boot sector of /dev/sdb1; the Lilo installed there will then boot the Slackware kernel.

Tetedeiench

minusplus a écrit a écrit :

heinke ?
comprends rien...
 
s'il boote sur une partoche, il loade l'arbo de cette partoche. pareil pour l'autre !
comprends pas ton pb....
 
sur chaque partoche t'as une arbo et un noyo...  




 
je m'explique.
 
J'ia installé ma SuSe avec un noyau et un lilo. Classique quoi.
 
Lilo dans la MBR.
 
jusque la tout va bien.
 
Il boote sur /dev/hda3 .
 
Ensuite j'ai installé la debian.
 
Sachant que j'avais deja un lilo (dans ma MBR) j'ai pas installé (en toute logique) le Lilo de la debian.
 
Donc je configure lilo comme au dessus
 

Citation :


# LILO configuration file
# Start LILO global Section
# If you want to prevent console users to boot with init=/bin/bash,
#  restrict usage of boot params by setting a passwd and using the option
#  restricted.
#password=bootpwd
#restricted
append="vga=0x0301"
boot=/dev/hda
#compact       # faster, but won't work on all systems.
vga = normal    # force sane state
read-only
prompt
timeout=30
# End LILO global Section
#
image = /boot/vmlinux-2.4.9
 root = /dev/hda3
 label = linux
image = /boot/vmlinuz
 root = /dev/hda3
 label = test
 
image = /boot/vmlinuz-2.2.19
 root = /dev/hda4
 label = debian


 
Et il me dit qu'il ne toruve pas le lien /vmlinuz sur la aprtoche courante.
 
ben vi, il est sur une autre partoche !
 
Donc je fais comment moi ? :(

 

[edtdd]--Message édité par Tetedeiench--[/edtdd]

minusplus heinke ?
comprends rien...
 
s'il boote sur une partoche, il loade l'arbo de cette partoche. pareil pour l'autre !
comprends pas ton pb....
 
sur chaque partoche t'as une arbo et un noyo...
Tetedeiench Ben vi !
 
Mais comment faire comprendre a Lilo que C pas l'arbo de la aprtoche sur laquelle j'ai booté qui m'intéresse mais celle de l'autre aprtoche ? :(
minusplus ben si t'as tout bien installé, t'as une arbo sur une partoche et une autre sur l'autre... :??:
Tetedeiench Vi, oky, mais en fait, si je lui dit que le kernel est dans /debian/vmlinuz par exemple...
 
Ben il le prendra pas vu que le rep sur l'autre aprtoche est aps /debian...
 
Comment on peut  faire passer ca ? :(
Dark_Schneider on fait sauter la limite des 1024 cylindre avec lba32
genre avant prompt tu ajoutes : lba32
 
il faut une version récente de lilo > 21.4 je crois.
Tetedeiench J'arrive pas a config lilo pour pouvoir booter sur /dev/hda4 au lieu de hda3, et prendre un kernel différent :(
 
VOila mon .conf :
 
# LILO configuration file
# Start LILO global Section
# If you want to prevent console users to boot with init=/bin/bash,
#  restrict usage of boot params by setting a passwd and using the option
#  restricted.
#password=bootpwd
#restricted
append="vga=0x0301"
boot=/dev/hda
#compact       # faster, but won't work on all systems.
vga = normal    # force sane state
read-only
prompt
timeout=30
# End LILO global Section
#
image = /boot/vmlinux-2.4.9
  root = /dev/hda3
  label = linux
image = /boot/vmlinuz
  root = /dev/hda3
  label = test
 
image = /boot/vmlinuz-2.2.19
  root = /dev/hda4
  label = debian
 
il hurle (sic) que le /boot/vmlinuz-2.2.19 existe pas... ben vi, je veux bieng, mais forcément, C une autre partition :o
 
Et quand je mounte la partition dans un rep et lui balance le lien, il hurle que C au dela des 1024 cylindres...
 
Une ide (j'ai trouvé qu'un Mini howto, expliquant pas du tout cepoint :( )

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)