#1 Le 18/06/2011, à 03:58
- random
Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Salut a tous,
Je suis oblige de reinstaller mon grub2 tres regulierement - environ 2 a 3 fois par mois. La question de ce post est de trouver une solution pour pouvoir regler une bonne fois pour toute ce probleme et ne plus avoir a faire regulierement des reinstallations de grub.
Le PC est un portable ASUS K42N (achete en asie) et l'installation s'est passe a merveille, en fait tout fonctionne a 100% avec Ubuntu 10.04TLS des l'installation. Seul souci: 2 a 3 fois par mois il me faut booter avec mon dongle USB pour reinstaller GRUB car le systeme ne demarre pas - j'ai un message du type "No operating system is present, insert a bootable disk and press any key"
Precision: il n'y a qu'un Ubuntu d'installe sur ce PC - pas de multiboot.
1- Donc la je suis sur le LiveCD, je verifie ma version de Grub:
root@ubuntu:~# mount /dev/sda1 /mnt/
root@ubuntu:~# ll /mnt/boot/grub/menu.lst /mnt/boot/grub/grub.cfg
ls: cannot access /mnt/boot/grub/menu.lst: No such file or directory
-r--r--r-- 1 root root 5110 2011-05-23 11:02 /mnt/boot/grub/grub.cfg
root@ubuntu:~# grub-install --version
grub-install (GNU GRUB 1.98-1ubuntu7)
Resultat: j'utilise bien GRUB2 version 1.98
2- Reinstallation de Grub
root@ubuntu:~# grub-install --root-directory=/mnt /dev/sda
Installation finished. No error reported.
3- Voila ca fonctionne, je vais pouvoir booter normalement a partir de mon hard drive. MAIS dans une a deux semaines il va faloir recommencer cette operation.
4- Je umount /dev/sda1, reboot, et retire le dongle USB. Je travaille maintenant sur mon installation principale
5- Informations complementaires sur mon install:
[root@benj-laptop]~# uname -a
Linux benj-laptop 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:24:35 UTC 2011 i686 GNU/Linux
[root@benj-laptop]~# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x000c5c65
Device Boot Start End Blocks Id System
/dev/sda1 * 1 8511 68358144 83 Linux
/dev/sda2 8511 19453 87890944 83 Linux
/dev/sda3 19453 19514 488448 83 Linux
/dev/sda4 19514 38914 155831297 5 Extended
/dev/sda5 19514 20000 3905536 82 Linux swap / Solaris
/dev/sda6 20000 38914 151924736 83 Linux
[root@benj-laptop]~# grub-install --version
grub-install (GNU GRUB 1.98-1ubuntu10)
[root@benj-laptop]~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda3 during installation
#UUID=e3702bc2-d68a-46a4-913b-cd9d5bcdb346 /boot ext4 defaults 0 2
# /home was on /dev/sda6 during installation
UUID=d4fa52fd-0414-40ee-a5b3-a5ab97441b79 /home ext4 defaults 0 2
/dev/sda2 /var ext4 defaults 0 2
/dev/sda5 none swap sw 0 0
Merci d'avance
Dernière modification par random (Le 18/06/2011, à 04:09)
Hors ligne
#2 Le 18/06/2011, à 04:28
- bishop.sad.clown
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Ce qui serait interessant c'est d'étudier les logs juste après avoir constaté le message "No operating system is present, insert a bootable disk and press any key" ... Ca pourrait nous indiquer ce qui perturbe grub de manière si régulière...
@++ , Rob'
→ Trusty x64
Je n'ai pas toujours les réponses mais je les cherche en même temps que vous... =· þ
Hors ligne
#3 Le 18/06/2011, à 08:54
- malbo
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Il y a une ligne du fstab qui me fait peur :
#UUID=e3702bc2-d68a-46a4-913b-cd9d5bcdb346 /boot ext4 defaults 0 2
Il y a le caractère # en tête de la ligne qui fait qu'elle n'est pas prise en compte. Cela veut dire que tu as bidouillé dans ton installation, précisément quelque chose qui concerne le démarrage puisque c'est de /boot qu'il s'agit.
Peux-tu démarrer ton PC normalement sur Ubuntu du disque dur et donner le résultat de cette commande passée dans un terminal :
sudo debconf-show grub-pc
Ensuite, en démarrant cette fois ton PC sur le live-CD, peux-tu répondre à cette demande : http://forum.ubuntu-fr.org/viewtopic.php?pid=3534285
Dernière modification par malbo (Le 18/06/2011, à 08:59)
Hors ligne
#4 Le 18/06/2011, à 14:19
- bishop.sad.clown
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
bah y a pas à avoir peur ( si je ne me trompe pas ) ... ancienne partition de boot inutilisée il à déjà reinstallé son grub, avec la partition inutilisé... il boote le système correctement pendant plusieurs jours ce qui implique que son /boot à bien été copier avant l'inutilisation de l'ancienne partition de boot...
2 à trois fois par mois ca correspont grosso merdo à une fois tous les dix jours...
Tu fais quelque chose de particulier une fois par semaine ou décade ? du style jouer avec tes partitions ?
= /
tu peux nous retourner le resultat de
sudo update-grub
@malbo: j'ai testé la commande "debconf-show grub-pc" et elle me retourne des valeurs différentes de celles du paramétrage de mon grub... = / normal ou pas normal ? = /
@++ , Rob'
→ Trusty x64
Je n'ai pas toujours les réponses mais je les cherche en même temps que vous... =· þ
Hors ligne
#5 Le 18/06/2011, à 15:04
- malbo
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
@malbo: j'ai testé la commande "debconf-show grub-pc" et elle me retourne des valeurs différentes de celles du paramétrage de mon grub... = / normal ou pas normal ? = /
Pas normal. Il faut remettre d'aplomb en t'inspirant de ce lien : http://forum.ubuntu-fr.org/viewtopic.ph … 0#p3970260
Hors ligne
#6 Le 18/06/2011, à 15:44
- bishop.sad.clown
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
@Malbo : Pour le moment j'vais rien remettre d'applomb vu que je n'ai aucun pb sur mon systeme ^_^ ... Mais je vais bien bien étudier la question... = þ Missi m'sieur pour l'info
= )
@++ , Rob'
→ Trusty x64
Je n'ai pas toujours les réponses mais je les cherche en même temps que vous... =· þ
Hors ligne
#7 Le 24/06/2011, à 01:41
- random
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Salut,
Merci pour vos conseils.
Voila on est le 24 au matin et ca vient d'arriver a nouveau, heureusement que je me suis leve tot aujourd'hui
Salut Bishop,
Tu fais quelque chose de particulier une fois par semaine ou décade ? du style jouer avec tes partitions ?
Je vais me poser la question. Hier j'ai du mettre le PC en veille et le transporter par exemple.
Ce qui serait interessant c'est d'étudier les logs juste après avoir constaté le message "No operating system is present, insert a bootable disk and press any key" ... Ca pourrait nous indiquer ce qui perturbe grub de manière si régulière...
Ok, mais je sais pas trop ou regarder. Je viens donc de mounter mon /var et trier par date le dossier log, manque de bol il semblerait que j'ai aussi un soucis avec l'horloge interne puisque j'ai des logs qui date du 26 Juin (on est le 24) => aurais-je un probleme de BIOS?
En regardant de plus pret, il semble bien que le systeme perde l'horloge. Exemple, hier (le 23) j'ai du mettre le portable en veille pour le reveiller une heure plus tards, et mon pm-suspend.log me donne:
Thu Jun 23 13:43:22 PHT 2011: performing suspend
Sun Jun 26 10:58:43 PHT 2011: Awake.
Au reveil l'horloge avancait de 3 jours.
Bon je sais pas si c'est un indice ou une fausse piste, mais du haut de mes faibles connaissances il semble que le BIOS peut avoir une influence sur la stabilite des partitions disque.
J'ai un peu continue a cherche les logs mais n'ai rien trouve de suspect. Je fais une copie des logs en preservant les timestamps pour etudier ca plus tard.
tu peux nous retourner le resultat de
sudo update-grub
Voici:
[benj@benj-laptop]~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-31-generic
Found initrd image: /boot/initrd.img-2.6.32-31-generic
Found linux image: /boot/vmlinuz-2.6.32-30-generic
Found initrd image: /boot/initrd.img-2.6.32-30-generic
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Salut Malbo,
Effectivement, j'avais au debut mon /boot sur /dev/sda3 et en esperant corriger le probleme qui nous preoccupe je l'ai deplace sur /dev/sda1, mais sans succes.
donner le résultat de cette commande passée dans un terminal :
sudo debconf-show grub-pc
Voici:
grub2/kfreebsd_cmdline:
grub2/linux_cmdline:
grub-pc/install_devices_empty: false
grub-pc/install_devices_failed: false
grub-pc/chainload_from_menu.lst: true
grub-pc/hidden_timeout: true
grub-pc/timeout: 10
grub-pc/kopt_extracted: false
* grub-pc/install_devices: /dev/disk/by-id/ata-WDC_WD3200BEVT-80A0RT0_WD-WX11AA0K5678
grub-pc/postrm_purge_boot_grub: false
grub-pc/disk_description:
grub2/kfreebsd_cmdline_default: quiet
grub-pc/partition_description:
grub-pc/install_devices_disks_changed:
grub2/linux_cmdline_default: quiet splash
Et juste pour verification:
[benj@benj-laptop]~$ ll /dev/disk/by-id/ata-WDC_WD3200BEVT-80A0RT0_WD-WX11AA0K5678
lrwxrwxrwx 1 root root 9 2011-06-24 07:43 /dev/disk/by-id/ata-WDC_WD3200BEVT-80A0RT0_WD-WX11AA0K5678 -> ../../sda
Tres sympa ton scrypt dis moi! Voici son resultat:
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 1 for /boot/grub.
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 1 for /boot/grub.
sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdb1 starts
at sector 0. But according to the info from fdisk,
sdb1 starts at sector 63.
Operating System:
Boot files: /boot/grub/grub.cfg /boot/grub/core.img
sdb2: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sdb2 starts
at sector 0. But according to the info from fdisk,
sdb2 starts at sector 6811560.
Operating System:
Boot files:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 2,048 136,718,335 136,716,288 83 Linux
/dev/sda2 136,718,336 312,500,223 175,781,888 83 Linux
/dev/sda3 312,500,224 313,477,119 976,896 83 Linux
/dev/sda4 313,479,166 625,141,759 311,662,594 5 Extended
/dev/sda5 313,479,168 321,290,239 7,811,072 82 Linux swap / Solaris
/dev/sda6 321,292,288 625,141,759 303,849,472 83 Linux
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 4007 MB, 4007657472 bytes
255 heads, 63 sectors/track, 487 cylinders, total 7827456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 63 6,811,559 6,811,497 b W95 FAT32
/dev/sdb2 6,811,560 7,823,654 1,012,095 b W95 FAT32
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 iso9660 Ubuntu 10.04.1 LTS i386
/dev/loop1 squashfs
/dev/sda1 24b4c462-d5ad-44f2-be75-fac9c365d5e1 ext4
/dev/sda2 5c5e8f2d-248a-47f6-b90a-c0013b802167 ext4
/dev/sda3 e3702bc2-d68a-46a4-913b-cd9d5bcdb346 ext4
/dev/sda5 ab860350-8909-46c7-9cba-575de686d64f swap
/dev/sda6 d4fa52fd-0414-40ee-a5b3-a5ab97441b79 ext4
/dev/sdb1 8CED-3CD2 vfat RESCUE
/dev/sdb2 8D24-261C vfat DATA
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /cdrom iso9660 (ro,noatime)
/dev/loop1 /rofs squashfs (ro,noatime)
/dev/sda1 /mnt/root ext4 (rw)
/dev/sda2 /mnt/var ext4 (rw)
/dev/sdb1 /isodevice vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb2 /media/DATA vfat (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,flush)
=========================== sda1/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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 recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro quiet splash
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
echo 'Loading Linux 2.6.32-31-generic ...'
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-30-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
linux /boot/vmlinuz-2.6.32-30-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro quiet splash
initrd /boot/initrd.img-2.6.32-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-30-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
echo 'Loading Linux 2.6.32-30-generic ...'
linux /boot/vmlinuz-2.6.32-30-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-30-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=24b4c462-d5ad-44f2-be75-fac9c365d5e1 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 24b4c462-d5ad-44f2-be75-fac9c365d5e1
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------
=============================== sda1/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda3 during installation
#UUID=e3702bc2-d68a-46a4-913b-cd9d5bcdb346 /boot ext4 defaults 0 2
# /home was on /dev/sda6 during installation
UUID=d4fa52fd-0414-40ee-a5b3-a5ab97441b79 /home ext4 defaults 0 2
/dev/sda2 /var ext4 defaults 0 2
/dev/sda5 none swap sw 0 0
--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
34.182857513 = 36.703563776 boot/grub/core.img 1
44.138374329 = 47.393218560 boot/grub/grub.cfg 1
34.258396149 = 36.784672768 boot/initrd.img-2.6.32-24-generic 1
34.265819550 = 36.792643584 boot/initrd.img-2.6.32-30-generic 1
36.539649963 = 39.234150400 boot/initrd.img-2.6.32-31-generic 1
34.231468201 = 36.755759104 boot/vmlinuz-2.6.32-24-generic 1
34.235237122 = 36.759805952 boot/vmlinuz-2.6.32-30-generic 1
34.269588470 = 36.796690432 boot/vmlinuz-2.6.32-31-generic 1
36.539649963 = 39.234150400 initrd.img 1
34.265819550 = 36.792643584 initrd.img.old 1
34.269588470 = 36.796690432 vmlinuz 1
34.235237122 = 36.759805952 vmlinuz.old 1
=========================== sdb1/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
menuentry "Ubuntu Live 10.04 32bit" {
loopback loop /boot/iso/ubuntu-10.04.1-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-10.04.1-desktop-i386.iso noeject noprompt --
initrd (loop)/casper/initrd.lz
}
menuentry "System Rescue CD 2.1.0" {
loopback loop /boot/iso/systemrescuecd-x86-2.1.0.iso
linux (loop)/isolinux/rescuecd isoloop=/boot/iso/systemrescuecd-x86-2.1.0.iso
initrd (loop)/isolinux/initram.igz
}
menuentry "NT Password Editor" {
loopback loop /book/iso/systemrescuecd-x86-2.1.0.iso
linux (loop)/ntpasswd/vmlinuz
initrd (loop)/ntpasswd/initrd.cgz
}
menuentry "Hardware Detection Tool" {
loopback loop /book/iso/systemrescuecd-x86-2.1.0.iso
linux (loop)/isolinux/memdisk
initrd (loop)/bootdisk/hdt.img
}
menuentry "Memory Test (memtest86+ 4.20)" {
linux16 /boot/img/memtest86+-4.20.bin
}
menuentry "Hard Drives Nuke (dban 2.2.6)"
{
loopback loop /boot/iso/dban-2.2.6_i586.iso
linux (loop)/DBAN.BZI nuke="dwipe" iso-scan/filename=/boot/iso/dban-2.2.6_i586.iso silent --
}
menuentry "NOT WORKING System Test (inquisitor 3.0)" {
loopback loop /boot/iso/inq-live-3.0-x86.iso
linux16 (loop)/isolinux/alt0/vmlinuz live fastboot stagename=/altlinux/livecd showopts
initrd16 (loop)/isolinux/alt0/full.cz
}
--------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
?? = ?? boot/grub/core.img 1
?? = ?? boot/grub/grub.cfg 1
Merci de votre aide
Dernière modification par random (Le 24/06/2011, à 01:53)
Hors ligne
#8 Le 24/06/2011, à 06:35
- malbo
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
random,
Je ne sais pointer ce qui pourrait expliquer ton problème dans ce résultat.
On voit que ça a été bricolé par tes mimines (pas d'UUID dans le fstab pour le montage de /var et de la swap) mais bon....
Hors ligne
#9 Le 24/06/2011, à 07:17
- random
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Je suppose que "mais bon..." est une maniere subtile et sous-entendue pour me conseiller de mettre des UUID dans le fstab?
Merci de ton aide, je vais essayer ca.
Meme si le probleme existait deja lorsque le fstab etait genere par l'installation d'ubuntu, mais tu as raison: autant suivre les regles de l'art.
Hors ligne
#10 Le 24/06/2011, à 09:15
- malbo
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Je vais être plus clair et éviter les sous-entendus : c'est le bordel et il faudrait tout réinstaller à neuf.
Hors ligne
#11 Le 24/06/2011, à 09:47
- Compte anonymisé
Re : Reinstallation de GRUB2 regulierement (2 a 3 fois par mois)
Salut
Le message de type : "No operating system is present, insert a bootable disk and press any key" est typiquement un message du bios qui lors du boot tente de trouver un disque bootable et ne le trouve pas!!!!
Je ne suis pas sûr qu'une réinstallation de linux va change qq chose.
Quand à régénérer le MBR régulièrement, ça me laisse un peu sceptique :
La prochaine fois que tu as ce problème, et que tu redémarres en LiveUSB, pourrais-tu donner le résultat des commandes :
sudo fdisk -l
sudo dd if=/dev/sda bs=512 count=1 | od -Ax -tx1z -v
Ainsi que le résultat du script utilisé post #7.
As-tu envisagé une mise à jour du bios de ton PC ?
@+