Comment rendre une sauvegarde bootable ... ?

Re,

J’ai un souci !!! “30_os-prober” est vide chez moi :017

[quote][b]### BEGIN /etc/grub.d/30_os-prober ###
No volume groups found

END /etc/grub.d/30_os-prober ###[/b]

[/quote]
Une question : est il normal que grub ne soit pas installé ???

[code]pc-1-loreleil@Debian-pc-1:~$ su
Mot de passe :
root@Debian-pc-1:/home/pc-1-loreleil# apt-cache policy grub
grub:
Installé : (aucun)
Candidat : 0.97-64

[/code]

[code]root@Debian-pc-1:/home/pc-1-loreleil# grub-mkconfig

Generating grub.cfg …

DO NOT EDIT THIS FILE

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

if [ -s $prefix/grubenv ]; then
load_env
fi
set default=“0”
if [ “${prev_saved_entry}” ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)’
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
if loadfont /share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
set timeout=5

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)’
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
Found background image: /usr/share/images/desktop-base/desktop-grub.png
insmod png
if background_image /share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
menuentry ‘Debian GNU/Linux, avec Linux 2.6.32-5-amd64’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo ‘Chargement de Linux 2.6.32-5-amd64 …’
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro quiet
echo ‘Chargement du disque mémoire initial …’
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry ‘Debian GNU/Linux, avec Linux 2.6.32-5-amd64 (mode de dépannage)’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo ‘Chargement de Linux 2.6.32-5-amd64 …’
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro single
echo ‘Chargement du disque mémoire initial …’
initrd /boot/initrd.img-2.6.32-5-amd64
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/20_memtest86+

Found memtest86+ image: /boot/memtest86+.bin
menuentry “Memory test (memtest86+)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
menuentry “Memory test (memtest86+, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin
}
menuentry “Memory test (memtest86+, serial console 115200, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_os-prober

No volume groups found

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

done
root@Debian-pc-1:/home/pc-1-loreleil#
[/code]

ps: le clone sdb est connecté.

Il est ptet connecté mais il n’apparaît pas.
On ne voit que ton OS fonctionnel
Je pense que ton grub est très mal installé.
Refais un

grub-install /dev/sda

Retour ce soir vers 24:00

N’étant pas sur, je préfère te le demander, grub-install en live-cd où à partir de os maître ?

-edit-

J’ai lancé à partir de l’OS … mais

root@Debian-pc-1:/home/pc-1-loreleil# grub-install /dev/sda Installation finished. No error reported. root@Debian-pc-1:/home/pc-1-loreleil#

puis relancé grub-mkconfig.

[code]root@Debian-pc-1:/home/pc-1-loreleil# grub-mkconfig

(…)

BEGIN /etc/grub.d/30_os-prober

No volume groups found

END /etc/grub.d/30_os-prober

(…)
[/code]

-edit-

Info du clone.

root@debian:/boot# ls -l total 15960 -rw-r--r-- 1 root root 1662199 Jun 14 14:59 System.map-2.6.32-5-amd64 -rw-r--r-- 1 root root 106153 Jun 14 14:59 config-2.6.32-5-amd64 drwxr-xr-x 3 root root 4096 Sep 4 17:35 grub -rw-r--r-- 1 root root 11774128 Jul 28 23:03 initrd.img-2.6.32-5-amd64 -rw-r--r-- 1 root root 165084 Oct 21 2010 memtest86+.bin -rw-r--r-- 1 root root 167264 Oct 21 2010 memtest86+_multiboot.bin -rw-r--r-- 1 root root 2420000 Jun 14 14:57 vmlinuz-2.6.32-5-amd64 root@debian:/boot#

Peux-tu envoyer ici

fdisk -l

Bien sûr, tout ce que je te demande, c’est avec les deux DD branchés

Salut,

Merci. :wink:

[code]pc-1-loreleil@Debian-pc-1:~$ su
Mot de passe :
root@Debian-pc-1:/home/pc-1-loreleil# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00025ee5

Device Boot Start End Blocks Id System
/dev/sda2 1 51316 412192769 5 Extended
/dev/sda5 * 1 5042 40497152 83 Linux
/dev/sda6 5043 6606 12556288 83 Linux
/dev/sda7 6606 8935 18707456 83 Linux
/dev/sda8 8935 9185 2004992 82 Linux swap / Solaris
/dev/sda9 9185 11893 21750784 83 Linux
/dev/sda10 11893 29895 144606208 83 Linux
/dev/sda11 29895 44076 113906688 83 Linux

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002a690

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 117 937984 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 117 19458 155351040 5 Extended
/dev/sdb5 118 19458 155350016 83 Linux
root@Debian-pc-1:/home/pc-1-loreleil#
[/code]

Je ne comprends pas :017
Ton disque sdb est bien reconnu et le Grub n’en tient pas compte :017
Je crois que c’est du côté de Grub que tout déconne, non ?
Confirme-moi que quand tu fais un
grub-mkconfig
1/ tu le fais bien à partir de ton OS sur sda5 ?
2/ Pas d’histoire de chroot ou autres exotismes ?
3/ Pourquoi l’*’ sur sda5 ? tu as bien installé Grub sur le MBR : ‘sda’, sans chiffre ?

3 questions : 3 réponses succinctes, merci.

Saluts,

Bonjour ricardo,

1° Oui, je lance à partir de OS maître sda.

2° Non.

3° Là, je sais pas trop ! sda est un clone réalisé avec dcfldd, son disque source fût installé en LVM et partitions séparées.

Je crois que le souci est là ! :confused:

à ton avis … un nouveau fil ??

Non, pas d’autre fil, on continue ici.
tes deux premières réponses vont dans le bon sens mais ta troisième ne m’inspire pas confiance, c’est là que tout doit déconner.
Si vraiment tu ne peux pas réinstaller, on essaiera de fouiller partout mais je crois que ça va prendre du temps car Grub n’est pas bien installé.
Essaie une dernière chose :
désinstaller complètement Grub et, SANS avoir rebouté, réinstalle-le
donc :

apt-get remove --purge grub

apt-get install grub

Tout ça bien sûr avec les deux DD fonctionnels et à partir de ton OS en sdAAAAAA 55555555 :wink:
Mais je ne garantie rien.

Ok! je te fait confiance :083

je pense à truc, il serait peut être intéressant que je re-connecte le disque source (qui est toujours fonctionnel, certes pas à jour mais fonctionnel)

non ?

Pour l’instant, envoie le grub.cfg

Je vais à la soupe retour vers 14 H

Re,

cat /boot/grub/grub.cfg de l’OS maître sda

Complet.

[code]root@Debian-pc-1:~# cat /boot/grub/grub.cfg

DO NOT EDIT THIS FILE

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

if [ -s $prefix/grubenv ]; then
load_env
fi
set default=“0”
if [ “${prev_saved_entry}” ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)’
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
if loadfont /share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)’
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
insmod png
if background_image /share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-amd64’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo ‘Loading Linux 2.6.32-5-amd64 …’
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro quiet
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo ‘Loading Linux 2.6.32-5-amd64 …’
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-5-amd64
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/20_memtest86+

menuentry “Memory test (memtest86+)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry “Memory test (memtest86+, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin
}
menuentry “Memory test (memtest86+, serial console 115200, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_os-prober

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

root@Debian-pc-1:~#
[/code]

-edit-

Dans la mesure ou tu me demandais le retour suivant # cat /boot/grub/grub.cfg
comme tu dis, c’est pas sans risque, :118 je suis passé en standbye, je laisse en attente les commandes suivantes …

[code]# apt-get remove --purge grub

apt-get install grub

[/code]

… jusqu’à ton aval :wink:

Si, vraiment il y a risque !!! :116

Je préférerai que nous jouions avec sdb … tant qu’a faire … :think:

Ton grub ne reconnait que ton OS maitre et j’avoue ne rien comprendre car fdisk voit bien le second DD et Grub ne le détecte pas :017
Je pense à une chose bête, ton second DD est-il dans le fstab ?
Sinon, monte-le :

mount -t ext3 /dev/sdb5 /mnt

et refais un grub-mkconfig
puis envoie grub.cfg

EDIT : pas DD mais partition :blush:

c’est parti …

sdb n’est pas dans le fstab de l’os maître.

[code]root@Debian-pc-1:/home/pc-1-loreleil# mount -t ext3 /dev/sdb5 /mnt
root@Debian-pc-1:/home/pc-1-loreleil#

root@Debian-pc-1:/home/pc-1-loreleil# grub-mkconfig
Generating grub.cfg …

BEGIN /etc/grub.d/30_os-prober

No volume groups found

END /etc/grub.d/30_os-prober

[/code]

[code]root@Debian-pc-1:/home/pc-1-loreleil# cat /boot/grub/grub.cfg

DO NOT EDIT THIS FILE

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

if [ -s $prefix/grubenv ]; then
load_env
fi
set default=“0"
if [ “${prev_saved_entry}” ]; then
set saved_entry=”${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)‘
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
if loadfont /share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5

END /etc/grub.d/00_header

BEGIN /etc/grub.d/05_debian_theme

insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
insmod png
if background_image /share/images/desktop-base/spacefun-grub.png; then
set color_normal=light-gray/black
set color_highlight=white/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi

END /etc/grub.d/05_debian_theme

BEGIN /etc/grub.d/10_linux

menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-amd64’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo 'Loading Linux 2.6.32-5-amd64 …'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro quiet
echo 'Loading initial ramdisk …‘
initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
echo 'Loading Linux 2.6.32-5-amd64 …'
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro single
echo 'Loading initial ramdisk …'
initrd /boot/initrd.img-2.6.32-5-amd64
}

END /etc/grub.d/10_linux

BEGIN /etc/grub.d/20_linux_xen

END /etc/grub.d/20_linux_xen

BEGIN /etc/grub.d/20_memtest86+

menuentry “Memory test (memtest86+)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)‘
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)‘
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry “Memory test (memtest86+, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)‘
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin
}
menuentry “Memory test (memtest86+, serial console 115200, experimental multiboot)” {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}

END /etc/grub.d/20_memtest86+

BEGIN /etc/grub.d/30_os-prober

END /etc/grub.d/30_os-prober

BEGIN /etc/grub.d/40_custom

This file provides an easy way to add custom menu entries. Simply type the

menu entries you want to add after this comment. Be careful not to change

the ‘exec tail’ line above.

END /etc/grub.d/40_custom

BEGIN /etc/grub.d/41_custom

if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi

END /etc/grub.d/41_custom

root@Debian-pc-1:/home/pc-1-loreleil#
[/code]

:017 :017 :017

Je dois sortir mais je serai de retour vers 17 H
peux-tu voir si dans le clone il y a un grub.cfg (du clone, pas de l’OS)
si tu peux le récupérer, copie la 1ère partie, l’équivalent de

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(/dev/sda,msdos5)' search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69 echo 'Loading Linux 2.6.32-5-amd64 ...' linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-amd64 }
si tu peux récupérer ça, tu te rebranches classiquement sur ton OS, tu ajoutes “a la mano” cette partie à la fin, dans /etc/grubd/40_custom, comme je te l’avais proposé plus haut.
Puis, rebelote : grub-mkconfig
et vérification de grub.cfg

:023 ça roule, je m’y colle … :wink:

Avec retard, j’ai mis du temps à comprendre qu’il me fallait intervenir dans le fichier /boot/grub/grub.cfg à la section /etc/grub.d/40_custom … ayant le même fichier dans (la racine) /etc dossier grub.d fichier 40_custom

Bon, je crois avoir compris … sauf erreur :083 (?)

Retour à nos moutons …

Dans le grub.cfg du clone (sdb), il me semble avoir trouvé l’équivalent que tu cites.

Dans /etc/grub.d/10_linux chez moi.

root@Debian-pc-1:/home/pc-1-loreleil# mount -t ext3 /dev/sdb5 /mnt/clone


root@Debian-pc-1:/home/pc-1-loreleil# cat /mnt/clone/sauvegardesystem/boot/grub/grub.cfg

(...)
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set f86e8bcb-1597-4124-99a9-b723a6e01210
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=f86e8bcb-1597-4124-99a9-b723a6e01210 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-amd64
}

que j’ai intégré dans le fichier (de l’os maître) “/boot/grub/grub.cfg” dans la section “/etc/grub.d/40_custom” comme suit :

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'MON CLONE de sda' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set f86e8bcb-1597-4124-99a9-b723a6e01210
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=f86e8bcb-1597-4124-99a9-b723a6e01210 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/40_custom ###

sdb démonter, j’ai lancé :

# grub-mkconfig

j’avais fait des bak que j’ai déplacés, au vu de ceci :

### BEGIN /etc/grub.d/40_custom_05082011_15h42.bak ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom_05082011_15h42.bak ###

à présent grub.cfg (de l’os maître)

root@Debian-pc-1:~# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
if loadfont /share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set 21b1aa02-0531-48e5-9606-65fdbfaf319d
insmod png
if background_image /share/images/desktop-base/spacefun-grub.png; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=ee1fa486-1f91-4dac-8a91-9b11173a0a69 ro single
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        multiboot       /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set ee1fa486-1f91-4dac-8a91-9b11173a0a69
        multiboot       /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'MON CLONE de sda' --class debian --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos5)'
        search --no-floppy --fs-uuid --set f86e8bcb-1597-4124-99a9-b723a6e01210
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /boot/vmlinuz-2.6.32-5-amd64 root=UUID=f86e8bcb-1597-4124-99a9-b723a6e01210 ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
root@Debian-pc-1:~#

Je n’ai pas encore redémarré.

en attente de ton feu vert … :wink:

Merci ricardo !!!

J’ai pris le taureau par les cornes …

J’ai repris la procédure, plus haut, je n’ai pas eu d’accès possible au grub (“e”)

Re-boot.

Bios. > Sélection ordre démarrage : sdb

Welcome to GRUB!
error : file not found.
Entering rescue mode ...
grub rescue > 

grub rescue > ls
(hd0) (hd0,msdos5) (hd0,msdos1) (hd1) (hd1,msdos11) (hd1,msdos10) (hd1,msdos9) (hd1,msdos8) (hd1,msdos7) (hd1,msdso6) (hd1,msdso5)
grub rescue > _

live-cd > chroot > grub-install /dev/sdb … ?
lvm ?

On finira bien par y arriver … à cœur vaillant … :wink:

Pas le temps maintenant mais en lisant vite fait, ton résultat me satisfait et ça devrait fonctionner.
Je reprends ce soir vers 24:00
:006

Re,

Merci ricardo :023 !

[quote=“ricardo”]
(…)

ton résultat me satisfait et ça devrait fonctionner.

(…)[/quote]

Cool ! Une Bonne nouvelle !! Très très cool !!! :smiley: Car je n’ai plus le droit à l’erreur. (sda, secteurs défectueux :mrgreen: )

[quote=“ricardo”]
(…)

Je reprends ce soir vers 24:00[/quote]

J’essayerai, … sinon demain … :wink:

Bon, je reprends tout point par point :
Quand tu as fait le grub-mkconfig, il aurait mieux valu laisser le clone monté mais on va garder ça en réserve, sans ne rien changer.
Pour l’alerte, ne t’inquiète pas, c’est normal, juste une mise en garde de bien laisser l’entête et la dernière ligne, ce que tu as donc c’est bon.
On ne parle plus (pour l’instant) que du Grub de ton OS fonctionnel.
Ton bios et l’ordre de démarrage, on s’en cogne,
Tu démarres sur ton OS, donc sur sda.
Arrivé à Grub, tu descends sur la dernière entrée :
‘MON CLONE de sda’
Là, tu tapes ‘e’ et tu devrais avoir ça :

[quote]‘MON CLONE de sda’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(/dev/sda,msdos5)’
search --no-floppy --fs-uuid --set f86e8bcb-1597-4124-99a9-b723a6e01210
echo ‘Loading Linux 2.6.32-5-amd64 …’
linux /boot/vmlinuz-2.6.32-5-amd64 root=UUID=f86e8bcb-1597-4124-99a9-b723a6e01210 ro quiet
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-5-amd64[/quote]
Si oui, tu tapes Ctrl x (vérifie quand même car je suis sous Sid et c’est ptet ‘b’ sous Squeeze)
Si tu arrives sur ton clone, c’est bon.
Si tu as une erreur, reprends et modifie le ‘a’ par ‘b’ dans le ligne
set root=’(/dev/sda,msdos5)’
refait un essai.
Si ça ne fonctionne toujours pas, raconte et on essaiera autre chose.
:006