[RÉSOLU] que veut dire cette alerte :

démarrage du chargement noyau puis stop assez rapide avec :

ensuite une invite :
/#
mais qui ne reconnait aucune commande.
obligé reset
Ça peut se mettre “on” ce truc ?
:bulb: :bulb: :bulb:

non, j’ai eu ça récemment, je crois lors de tatonnement dans des configs de disques déplacés.
Mais impossible de me souvenir quand c’est arrivé.
sinon, tu n’as pas eu un e2fsck avant ?
tu en es ou avec ton disque déplacé ?

C’est justement de ça qu’il s’agit mais je n’y comprends pas grand chose .
J’ai fais pas mal de bidouilles sur mes menu.lst.
Quand je choisis, à parir de mon HDA, mon nouveau ETCH, qui est sur HDC, 3 ou 4 fois sur 5, j’ai ce plantage avec ce msg. mais :
1 fois sur 5, ça "accroche et je me connecte normallement vaec mes deux user (ricardo et un autre créé pour essai) sans aucun problèmes et tt fonctionne ???

as tu réussi à chainer tes deux grub ?
quelle est ton entrée de grub sinon ?

Non, le chaîage ne donne rien comme tu me l’as conseillé et je n’ai pas essayé ta deuxième soluce car je suis sûr qu’on est proche du but.
Actuellement, d’ailleurs, je tape depuis ma nvelle Etch avec le choix sur grub de hda alors que je suis sur hdc.
Il faut vraiment que je trouve qq chose de complet sur Grub que je puisse comprendre et en FR. En Anglais, trop de termes techniques me bloquent et les traductions sont affreuses.
Connais-tu un site grub FR bien expliqué ?
Ds une répopnse à suivre, je te mets les grubs, les fstab et les /boot des deux partoches concernées.

premier msg avec infos Nvelle Etch

[code]Sur HDC3 :

ricardo@etch:~$ sudo ls /boot
System.map-2.6.15-1-486 grub
vmlinuz-2.6.15-1-486
config-2.6.15-1-486
initrd.img-2.6.15-1-486
ricardo@etch:~$

ricardo@etch:~$ sudo ls /boot/grub
default fat_stage1_5 menu.lst~ stage1
device.map jfs_stage1_5 minix_stage1_5 stage2
e2fs_stage1_5 menu.lst reiserfs_stage1_5 xfs_stage1_5
ricardo@etch:~$

ricardo@etch:~$ sudo ls /boot/grub/menu.lst
/boot/grub/menu.lst
ricardo@etch:~$ sudo cat /boot/grub/menu.lst

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 change this entry to ‘saved’ 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 15

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=/dev/hdc3 ro

chang�� ligne pr��c��dente.avant= hda3

default grub root device

e.g. groot=(hd0,0)

groot=(hd1,2)

chang�� ligne pr��c��dente.avant=(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=

should update-grub lock old automagic boot options

e.g. lockold=false

lockold=true

lockold=false

altoption boot targets option

multiple altoptions lines are allowed

e.g. altoptions=(extra menu suffix) extra boot options

altoptions=(single-user) single

altoptions=(single-user 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

## End Default Options

POUR FAIRE DES ESSAIS, J’AI MIS DEUX ENTRÉES : UNE = HDC ET L’AUTRE = HDA

A NOTER QUE CETTE NVELLE ETCH EST SUR LA PART.3 (LA 1 ET LA 2 ÉTANT DES PARTS DE SAUVEGARDES)

LA /HOME EST SUR LA PART 6 ET LA SWAP SUR LA PART 5

title Debian GNU/Linux, kernel 2.6.15-1-486 (comme hdc)
root (hd1,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc3 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 (comme hda)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 (single-user mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

END DEBIAN AUTOMAGIC KERNELS LIST

ricardo@etch:~$

ricardo@etch:~$ sudo cat /etc/fstab

NOTER QU’À L’INSTALLATTION, J’ÉTAIS SUR HDA ET J’AI MODIFIÉ MANU EN HDC

/etc/fstab: static file system information.

proc /proc proc defaults 0 0
/dev/hdc3 / ext3 defaults,errors=remount-ro 0 1
/dev/hdc6 /home ext3 defaults 0 2
/dev/hdc5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

ricardo@etch:~$

[/code]

Suite : voici le grub fonctionnel avec les deux DD branchés.
Je sais, je suis à peine compliqué :laughing:

[code]A PARTIR DU GRUB FONCTIONNEL QUI S’OUVRE AU BOOT …

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’.

default 5

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 15

Pretty colours

color cyan/blue yellow/red

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=/dev/hda7 ro

default grub root device

e.g. groot=(hd0,0)

groot=(hd0,6)

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=

should update-grub lock old automagic boot options

e.g. lockold=false

lockold=true

lockold=false

altoption boot targets option

multiple altoptions lines are allowed

e.g. altoptions=(extra menu suffix) extra boot options

altoptions=(single-user) 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

## End Default Options

title Debian GNU/Linux, kernel 2.6.12-1-686
root (hd0,6)
kernel /boot/vmlinuz-2.6.12-1-686 root=/dev/hda7 ro
initrd /boot/initrd.img-2.6.12-1-686
savedefault
boot

title Debian GNU/Linux, kernel 2.6.12-1-686 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.12-1-686 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.12-1-686
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,6)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda7 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

END DEBIAN AUTOMAGIC KERNELS LIST

title Autres versions Debian sur hda :
root

title Debian GNU/Linux, kernel 2.6.8-2-386 ( SARGE hda1 )
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 ( ETCH hda8 )
root (hd0,7)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda8 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 ( SID hda9 )
root (hd0,8)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda9 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title AUTRES VERSIONS SUR HDC :

IL NE S’AGIT PAS DU DD DONT ON PARLE MAIS D’UN 3ÈME DONC NE PAS EN TENIR COMPTE M^ S’IL EST EN HDC

root

UNE SID QUI ME SERT D’ESSAIS POUR CONFIGURER LE NOYAU

title Debian GNU/Linux, kernel 2.6.16-ricardo-110406 (Sid hdc5 avec /home sur hdc2)
root (hd1,4)
kernel /boot/vmlinuz-2.6.16-ricardo-110406 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.16-ricardo-110406
savedefault
boot

title Debian GNU/Linux, kernel 2.6.16-1-686 (Sid hdc5 avec /home sur hdc2)
root (hd1,4)
kernel /boot/vmlinuz-2.6.16-1-686 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.16-1-686
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (Sid hdc5 avec /home sur hdc2)
root (hd1,4)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hdc5 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title FÉDORA Core (2.6.11-1.1369_FC4) (hdc1 avec /home sur hdc6)
root (hd1,0)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

VOILÀ L’ENTRÉE QUE JE TAPE POUR ACCÉDER À MA NVELLE ETCH

title Debian GNU/Linux, kernel 2.6.15-1-486 (DERNIER ETCH)
root (hd1,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hdc3 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

ajout pour chainer selon Matt

title boot sur le second DD partition 0 active
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,2)
makeactive
chainloader +1

###################################################

LE FSTAB CORRESPONDANT À L’ENTRÉE DE DESSUS

proc /proc proc defaults 0 0
/dev/hda8 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 /home ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
/dev/hdb /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /media/cleusb auto rw,user,noauto 0 0
/dev/hda6 /mnt/rab ext3 defaults 0 2
/dev/hdc1 /mnt/sauve1 ext2 rw,user,noauto 0 0
/dev/hdc2 /mnt/sauve2 ext2 rw,user,noauto 0 0

############################

Y AURAIT-IL LIEU D’Y AJOUTER LES PARTOCHES HDC3 5 ET 6 ???
JE NE LE PENSE PAS CAR LE GRUB VA CHERCHER LE FSTAB DE LA PART QU’ON LUI A INDIQUÉ, NON ?

[/code]

bon, je viens de tester, ce n’est pas un chainloader qu’il faut charger, il faut changer de fichier de config pour grub:title boot sur le second menu.lst map (hd0) (hd1) map (hd1) (hd0) configfile (hd1,2)/boot/grub/menu.lst boot
il y a juste un truc: une fois que tu es sur le deuxiême grub, la ligne “savedefault” gène. il faut choisir ton noyau de boot, faire ‘e’ pour l’editer, puis ‘d’ sur la ligne savedefault pour la supprimmer, et finalement ‘b’ pour booter le tout.
Dis mois si déjà ça va au moins jusqu’a l’erreur “trying to kill init”.

Pour ce qui est d’arriver ds le second menu.lst, c’est OK, pas de problème.
1er test sans rien faire d’autre et en envoyant sur hdc3 = comme avant = m^ msg.
2ème test, je recommence et cette fois ça fonctionne.
Je reteste plusieurs autres fois et je reviens.

Pas d’amélioration, m^ en supprimant la ligne
savedefault
en l’éditant ou en la supprimant définitivement du menu :
j’arrive à “accrocher” le hdc de tps en tps mais le plus souvent c’est le retour au msg :
/bin/sh: can’t acces tty; job controlturned off
puis
/#
impuissant avec reset obligé.

Dernier essai pour ce soir (2.15 du mat :wink: )
J’ai vérifié qu’il ne s’agissait pas du port puisqu’avec un 3ème DD, je n’ai aucun problème de connexion.
J’ai tenté avec Une Fedora 4 qui a m^ l’avantage, elle, de démarrer du hda comme du hdc. Je me souviens qu’il en était de m^pour Win XP.
Une indication de plus :
après ce msg qui bloque, il y a une entrée help et je te recopie ça à la volée car je n’y comprends rien du tout :

on
string sttyswapoff swapon sync tail tar tee telnet telnetd
test tftp time top touch tr traceroute true tty udhcpc udhcpd
umount uname uncompress uniq unix2dos unzip uptime uudecode
uuencode vi watch watchdog wc wget who whoami xargs yes 
zcat

aprés ton plantage, tu es sous busybox, manifestement, et la plupart des commandes sont dispo (mount, ls, etc) sauf que rien n’est monté.
Qu’est ce que ça fait si à ce moment la, tu fais un ctrl+D ?

Ctrl/D =
/# ALERT ! /dev/hdc3 does not exist. Drapping to a shell !
et le clavier en qw :cry:
En effet, jen’avais pas tt lu et sur la ligne au dessus de la ligne d’alerte, il est bien indiqué
Busybox V1.01 (Debian …

parceque tu as encore dans les lignes kernel de ton deuxiême boot un argument ‘root=/dev/hdc3’, qui est la version tripatouillée de ton menu.lst.
Je t’ai dit que ça allait faire booter ton disque hdc COMME SI IL ETAIT EN HDA A quoi tu crois que servent les deux ligne “map () ()”.
Donc, tu modifies hdc3 en hda3 partout (y compris dans le kopt) dans le menu.lst du hdc3, enfin bref, tu reviens au menu.lst que tu avais à l’origine sur ton hdc, tu repootes normal sur le hda, tu passes sur le grub du hdc, tu verifies que tu va bien booter avec root= hda3, et roule. ce coup çi ça devrait marcher.

J’essaie et je reviens :laughing:

Niet Sir !
J’ai fais 4 entrées différentes pour tester ts les cas de figure :

[code]# kopt=root=/dev/hda3 ro

groot=(hd0,2)

title Debian GNU/Linux, kernel 2.6.15-1-486 [(hd1,2)hda3 SANS 'savedefault
root (hd1,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.15-1-486
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 [(hd0,2)hda3 SANS 'savedefault’
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.15-1-486
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 [(hd1,2)hda3 AVEC savedefault
root (hd1,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

title Debian GNU/Linux, kernel 2.6.15-1-486 [(hd0,2)hda3 AVEC savedefault
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-1-486 root=/dev/hda3 ro
initrd /boot/initrd.img-2.6.15-1-486
savedefault
boot

/etc/fstab: static file system information.

proc /proc proc defaults 0 0
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 /home ext3 defaults 0 2
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

[/code][/quote]

Je suppose que tu as déjà du regarder mais au cas ou forum.debian-fr.org/viewtopic.ph … light=grub

C’était lors de mon probleme de transfert de debian sur un autre disque dur ca pourra peut etre t’aider

:open_mouth:

sur ton hdc, tu as bien sûr remis le fstab d’origine avec hda3, hda5 et hda6 ?
puisque comme je disais tout se passe comme si le disque etait le premier…

[quote]e suppose que tu as déjà du regarder mais au cas ou[/quote]Oui merci Ash et j’ai tt relu, j’avais m^ bien participé à ce fil. Bien sûr, tt ça je sais faire mais ça ne règle pas mon problème.

[quote]sur ton hdc, tu as bien sûr remis le fstab d’origine avec hda3, hda5 et hda6 ?
puisque comme je disais tout se passe comme si le disque etait le premier…[/quote]
Oui Matt d’ailleurs je te donne plus haut ce fstab du hdc qui n’est bien sûr pas logique

[code]# /etc/fstab: static file system information.

proc /proc proc defaults 0 0
/dev/hda3 / ext3 defaults,errors=remount-ro 0 1
/dev/hda6 /home ext3 defaults 0 2
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdb /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 [/code]

N’y aurait-il pas qq chose à chercher vers les :

kopt=root=/dev/hdxy ro

groot=(hdx,y)

:question:
Que ce soit à partir du premier menu ou du second ?