Grub bien configuré ?

Bonjour,

je suis nouveau sur Debian, j’ai fait un apt-get upgrade et j’ai eu un timeout sur mon putty.

Maintenant lorsque j’essaie de re faire un upgrade: j’ai ces messages d’erreurs:

J’ai fait : dpkg --configure -a

debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
Setting up grub-pc (1.98+20100804-14+squeeze1) ...
debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
dpkg: error processing grub-pc (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Setting up update-inetd (4.38+nmu1+squeeze1) ...
debconf: DbDriver "config": could not open /var/cache/debconf/config.dat
dpkg: error processing update-inetd (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 grub-pc
 update-inetd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Comment faire pour terminer ma mise a jour ?

Question supplémentaire; ou se trouver mon menu.lst dans mon rep de boot ?
Je ne sais plus sur quel DD est installé mon grub; j’hesite entre mon sda et mon disque Raid.

Merci pour votre aide
Cordialement

Voici le contenu du résultat de: fdisk -l

J’ai un RAID 1, il semble que mon boot soit sur /dev/sda1

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 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: 0x000ae83e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3825    30718976+  fd  Linux raid autodetect
/dev/sda2            3825      182271  1433365504   fd  Linux raid autodetect
/dev/sda3          182271      182401     1047552   82  Linux swap / Solaris

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 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: 0x000cd8c2

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        3825    30718976+  fd  Linux raid autodetect
/dev/sdb2            3825      182271  1433365504   fd  Linux raid autodetect
/dev/sdb3          182271      182401     1047552   82  Linux swap / Solaris

Disk /dev/md2: 1467.8 GB, 1467766210560 bytes
2 heads, 4 sectors/track, 358341360 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 31.5 GB, 31456165888 bytes
2 heads, 4 sectors/track, 7679728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

et pour le probleme de maj, j’ai deja fait un: rm /var/lib/dpkg/lock
cela ne change rien…

J’ai recréer le fichier (touch /var/cache/debconf/config.dat)

puis apt-get install debconf

et ca refonctionne…

Par contre je ne suis pas du tout sur de ma conf grub

ou est mon menu.lst ?

Comment savoir si mon grub est bien installer ?

Merci.

Salut,

Le menu.lst , n’a plus lieu d’être.

Remise à jour de grub.

update-grub Generating grub.cfg ... Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead Found linux image: /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64 No volume groups found done

C’est OK ?

Je ne peu pas rebooter pour tester, c’est un serveur en prod.

Merci.

Non !

Et il semblerait que depuis la mise à jour (il y a deux trois jours) cette commande ne soit plus valide.

lance ceci.

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 raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set b913be28-1105-4ad2-bea2-b41393cb8b20
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_msdos
insmod part_msdos
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set b913be28-1105-4ad2-bea2-b41393cb8b20
set locale_dir=($root)/boot/grub/locale
set lang=
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_OVHkernel ###
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found linux image: /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64
menuentry "Debian GNU/Linux, OVH kernel 2.6.38.2-xxxx-grs-ipv6-64" {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod part_msdos
        insmod reiserfs
        set root='(md1)'
        search --no-floppy --fs-uuid --set b913be28-1105-4ad2-bea2-b41393cb8b20
        linux   /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64 root=/dev/md1 ro  quiet
}
### END /etc/grub.d/06_OVHkernel ###

### BEGIN /etc/grub.d/10_linux ###
### 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 ###
  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@ns211781:~# update-grub
Generating grub.cfg ...
Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found linux image: /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64
  No volume groups found
done

grub-install -v
grub-install (GRUB) 1.98+20100804-14+squeeze1

So ?

En prod, … chez ovh.

[quote]Warning: update-grub_lib is deprecated, use grub-mkconfig_lib instead
Found linux image: /boot/bzImage-2.6.38.2-xxxx-grs-ipv6-64
[/quote]

Quelques pistes … :033

forum.ovh.com/archive/index.php/t-62510.html

trac.evolix.net/infogerance/wiki/ServeurOVH

linux.koolsolutions.com/2009/10/ … 101-class/

Merci je vais jeter un oeil…