Bon, il me semble que j’ai quelques soucis avec mon live-cd “Debian-live-5.0.8 amd64 KDE”
Une fois sur deux j’obtiens le résultat voulu.
Il me refuse pas mal de commandes, et d’autres fois
elles passent 
exemple : grub-install: command not found et j’en passe … 
[code]debian:~# mkdir /mnt/chroot
debian:~# mount /dev/sda5 /mnt/chroot
debian:~# mount --bind /proc /mnt/chroot/sauvegardesystem/proc
mount: mount point /mnt/chroot/sauvegardesystem/proc does not exist
debian:~#
debian:~# mount --bind /proc /mnt/chroot/proc
debian:~# mount --bind /dev /mnt/chroot/dev
debian:~# mount --bind /sys /mnt/chroot/sys
debian:~#
debian:~#
debian:~# chroot /mnt/chroot
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/# update-grub
bash: update-grub: command not found
root@debian:/#
root@debian:/#
root@debian:/# grub-install /dev/sda
bash: grub-install: command not found
root@debian:/#
root@debian:/# [/code]
[code]root@debian:/# 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=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
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, 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+
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:/#[/code]
Un autre essai …
[code]debian:~# mount /dev/sdb5 /mnt/chroot
debian:~#
debian:~# mount --bind /dev/ /mnt/chroot/dev
mount: mount point /mnt/chroot/dev does not exist
debian:~#
debian:~# mount --bind /dev /mnt/chroot/dev
mount: mount point /mnt/chroot/dev does not exist
debian:~#
debian:~# mount --bind /dev /mnt/chroot/dev
mount: mount point /mnt/chroot/dev does not exist
debian:~#
debian:~# mount --bind /proc /mnt/chroot/proc
mount: mount point /mnt/chroot/proc does not exist
debian:~#
debian:~#
debian:~# mount --bind /proc /mnt/chroot/sauvegardesystem/proc
debian:~# mount --bind /dev /mnt/chroot/sauvegardesystem/dev
debian:~# mount --bind /sys /mnt/chroot/sauvegardesystem/sys
debian:~#
debian:~#
debian:~# chroot /mnt/chroot
chroot: cannot run command `/bin/bash’: No such file or directory
debian:~#
debian:~# chroot /mnt/chroot /bin/bash
chroot: cannot run command `/bin/bash’: No such file or directory
debian:~#
debian:~#
debian:~# chroot /mnt/chroot/sauvegardesystem
root@debian:/#
root@debian:/#
root@debian:/#
root@debian:/# update-grub
Generating grub.cfg …
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
No volume groups found
Found Debian GNU/Linux (6.0.2) on /dev/sda5
done
root@debian:/#
root@debian:/# grub-install /dev/sda
Installation finished. No error reported.
root@debian:/#
[/code]
Serait ce l’origine du souci ?
Je retourne sur OS maître, et vais me procurer une version plus récente …
