je suis donc en sessionliveUsb oubountou.
J’ai copié les fichiers des noyaux dans la partition /boot (sda3).
Pour rappel voici le résultat d’un ‘fdisk -l’
[code]Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2a0f6a2f
Device Boot Start End Blocks Id System
/dev/sda1 208896 3280895 1536000 82 Linux swap / Solaris
/dev/sda2 40904702 312580095 135837697 f W95 Ext’d (LBA)
/dev/sda3 * 63 208844 104391 83 Linux
/dev/sda4 3280896 40900607 18809856 83 Linux
/dev/sda5 40904704 123185151 41140224 83 Linux
/dev/sda6 123187200 296292351 86552576 b W95 FAT32
/dev/sda7 296294400 312580095 8142848 b W95 FAT32
[/code]
où l’on peut remarquer que /dev/sda3 est ma partition /boot de 100Mo et /dev/sda4 ma partition /
Ci-dessous le contenu du fichier /etc/fstab avec les UUID des différentes partitions :
[code]# /etc/fstab: static file system information.
Use ‘blkid’ to print the universally unique identifier for a
device; this may be used with UUID= as a more robust way to name devices
that works even if disks are added and removed. See fstab(5).
proc /proc proc defaults 0 0
/boot was on /dev/sda3 during installation
#UUID=“53ab908a-a570-4d17-945b-8a372ea655b4” /boot ext3 defaults 0 2
/ was on /dev/sda4 during installation
UUID=7e406713-3ff4-44ca-846d-e997f022ccb9 / ext3 errors=remount-ro 0 1
/home was on /dev/sda5 during installation
UUID=9b542e94-ae92-428f-b23b-525b976470cb /home ext3 defaults 0 2
archives was on /dev/sda6
UUID=41FD-7D55 /media/arch vfat defauts 0 2
swap was on /dev/sda13 during installation
UUID=e174dd72-0270-46b0-99be-9c765e935fd0 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
#/dev/sdf1 /media/usb0 auto rw,user,noauto 0 0
UUID=53ab908a-a570-4d17-945b-8a372ea655b4 /boot ext3 defaults 0 2[/code]
Voici ce que j’envisage de faire :
sudo mkdir /mnt/sda4
sudo mount /dev/sda4 /mnt/sda4
cd /mnt/sda4
sudo mount --bind /dev dev
sudo mount --bind /sys sys
sudo mount --bind /proc proc
sudo chroot .
#mount /dev/sda3 /boot
puis #update-grub
#grub-install /dev/sda
et enfin #umount /dev/sda3
exit
sudo umount proc
sudo umount dev
sudo umount sys
cd ..
sudo umount /dev/sda4
Voilà, si vous avez des commentaires 
EDIT : Voici le contenu du fichier /boot/grub/grub-cfg ainsi généré
[code]#
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=’(hd0,msdos4)‘
search --no-floppy --fs-uuid --set 7e406713-3ff4-44ca-846d-e997f022ccb9
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root=’(hd0,msdos3)'
search --no-floppy --fs-uuid --set 53ab908a-a570-4d17-945b-8a372ea655b4
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
set timeout=10
END /etc/grub.d/00_header
BEGIN /etc/grub.d/05_debian_theme
insmod part_msdos
insmod ext2
set root=’(hd0,msdos4)'
search --no-floppy --fs-uuid --set 7e406713-3ff4-44ca-846d-e997f022ccb9
insmod png
if background_image /usr/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-686’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(hd0,msdos3)'
search --no-floppy --fs-uuid --set 53ab908a-a570-4d17-945b-8a372ea655b4
echo 'Loading Linux 2.6.32-5-686 …'
linux /vmlinuz-2.6.32-5-686 root=UUID=7e406713-3ff4-44ca-846d-e997f022ccb9 ro /dev/sda3 quiet
echo 'Loading initial ramdisk …‘
initrd /initrd.img-2.6.32-5-686
}
menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(hd0,msdos3)'
search --no-floppy --fs-uuid --set 53ab908a-a570-4d17-945b-8a372ea655b4
echo 'Loading Linux 2.6.32-5-686 …'
linux /vmlinuz-2.6.32-5-686 root=UUID=7e406713-3ff4-44ca-846d-e997f022ccb9 ro single /dev/sda3
echo 'Loading initial ramdisk …‘
initrd /initrd.img-2.6.32-5-686
}
menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-486’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(hd0,msdos3)'
search --no-floppy --fs-uuid --set 53ab908a-a570-4d17-945b-8a372ea655b4
echo 'Loading Linux 2.6.32-5-486 …'
linux /vmlinuz-2.6.32-5-486 root=UUID=7e406713-3ff4-44ca-846d-e997f022ccb9 ro /dev/sda3 quiet
echo 'Loading initial ramdisk …‘
initrd /initrd.img-2.6.32-5-486
}
menuentry ‘Debian GNU/Linux, with Linux 2.6.32-5-486 (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root=’(hd0,msdos3)'
search --no-floppy --fs-uuid --set 53ab908a-a570-4d17-945b-8a372ea655b4
echo 'Loading Linux 2.6.32-5-486 …'
linux /vmlinuz-2.6.32-5-486 root=UUID=7e406713-3ff4-44ca-846d-e997f022ccb9 ro single /dev/sda3
echo 'Loading initial ramdisk …'
initrd /initrd.img-2.6.32-5-486
}
END /etc/grub.d/10_linux
BEGIN /etc/grub.d/20_linux_xen
END /etc/grub.d/20_linux_xen
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 ###[/code]