Pages : 1
#1 Le 24/06/2011, à 18:12
- usky
Grub2 boude ....
Hello,
Voila mon soucis, j'ai fait un update-grub et je ne vois plus qu'un seul OS ...
J'ai plusieurs distrib linux et un windows, ils ont tous disparus.
Ci dessous mon fdsik -l
Disque /dev/sda: 60.0 Go, 60022480896 octets
255 têtes, 63 secteurs/piste, 7297 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x000ae900Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 1 1946 15624192 83 LinuxDisque /dev/sdb: 1000.2 Go, 1000204886016 octets
255 têtes, 63 secteurs/piste, 121601 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x000e3908Périphérique Amorce Début Fin Blocs Id Système
/dev/sdb1 1 5107 41020416 7 HPFS/NTFS
/dev/sdb2 5108 5362 2048287+ 82 Linux swap / Solaris
/dev/sdb3 5363 119044 913150665 83 Linux
/dev/sdb4 119045 121602 20540416 83 LinuxDisque /dev/sdc: 1000.2 Go, 1000204886016 octets
255 têtes, 63 secteurs/piste, 121601 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x0006567bPériphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 1 127 1020096 82 Linux swap / Solaris
/dev/sdc2 128 121091 971643330 83 Linux
Comment regenerer un grub avec tous les OS ?
Un PC Desktop Sous Ubuntu 12.04 Unity + acer1410 sous Unity Plus de windows depuis 2007 Le PC acer est sous Windows7... Ubuntu ne marche plus correctement depuis la 12.04...
http://parrains.linux.free.fr/
Hors ligne
#2 Le 24/06/2011, à 18:22
- malbo
Re : Grub2 boude ....
Peux-tu répondre à cette demande : http://forum.ubuntu-fr.org/viewtopic.php?pid=3534285
Sinon, quand tu arrives à démarrer sur le seul OS dont tu parles, peux-tu poster le résultat de la commande suivante passée dans un terminal :
df -h
Dernière modification par malbo (Le 24/06/2011, à 18:26)
Hors ligne
#3 Le 24/06/2011, à 18:33
- usky
Re : Grub2 boude ....
Voila chef ! (merci de ton aide)
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) 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
for (,msdos1)/boot/grub on this drive.
=> Grub2 (v1.99) 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 uses an
embedded config file:
---------------------------------------------------------------------------
search.fs_uuid 7cf99b10-3809-407b-bb63-29fb790af4d2 root
set
prefix=($root)/boot/grub---------------------------------------------------
-----------------------------.
=> Grub Legacy (v0.97) is installed in the MBR of /dev/sdc and looks on the
same drive in partition #3 for /boot/grub/stage2 and /boot/grub/menu.lst.sda1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 11.04
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.imgsdb1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exesdb2: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:sdb3: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:sdb4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:sdc1: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:sdc2: __________________________________________________________________________
File system: ext2
Boot sector type: -
Boot sector info:
Operating System:
Boot files:============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disque /dev/sda: 60.0 Go, 60022480896 octets
255 têtes, 63 secteurs/piste, 7297 cylindres, total 117231408 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octetsPartition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 2,048 31,250,431 31,248,384 83 Linux
Drive: sdb _____________________________________________________________________
Disque /dev/sdb: 1000.2 Go, 1000204886016 octets
255 têtes, 63 secteurs/piste, 121601 cylindres, total 1953525168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octetsPartition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 2,048 82,042,879 82,040,832 7 NTFS / exFAT / HPFS
/dev/sdb2 82,043,955 86,140,529 4,096,575 82 Linux swap / Solaris
/dev/sdb3 86,140,530 1,912,441,859 1,826,301,330 83 Linux
/dev/sdb4 1,912,442,880 1,953,523,711 41,080,832 83 LinuxDrive: sdc _____________________________________________________________________
Disque /dev/sdc: 1000.2 Go, 1000204886016 octets
255 têtes, 63 secteurs/piste, 121601 cylindres, total 1953525168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octetsPartition Boot Start Sector End Sector # of Sectors Id System
/dev/sdc1 63 2,040,254 2,040,192 82 Linux swap / Solaris
/dev/sdc2 2,040,255 1,945,326,914 1,943,286,660 83 Linux"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 0a53e830-9f37-4e31-b6b2-f0fe05bcd564 ext4
/dev/sdb1 C262C5D162C5CA7D ntfs
/dev/sdb2 c039ee7c-28f9-487a-959a-daa36ae46056 swap
/dev/sdb3 2ac3ea93-0ac0-4466-a606-11cbe2363ee8 ext4
/dev/sdb4 e28d1176-96d1-427b-9e23-1f8dee2aecd8 ext4
/dev/sdc1 0edd79d9-8bb3-41df-b8b6-3b7d13e6d5dd swap
/dev/sdc2 fd2eb1e9-2e33-42fe-b2ca-68305e09c979 ext2 DNS313-data================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda1 / ext4 (rw,noatime,errors=remount-ro,commit=0)
/dev/sdb3 /home ext4 (rw,commit=0)
/dev/sdc2 /media/NAS ext2 (rw)=========================== sda1/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
set have_grubenv=true
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
fifunction 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
}function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
set locale_dir=($root)/boot/grub/locale
set lang=fr_FR
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=0a53e830-9f37-4e31-b6b2-f0fe05bcd564 ro quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, avec Linux 2.6.38-8-generic (mode de dépannage)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
echo 'Loading Linux 2.6.38-8-generic ...'
linux /boot/vmlinuz-2.6.38-8-generic root=UUID=0a53e830-9f37-4e31-b6b2-f0fe05bcd564 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-8-generic
}
### 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,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root 0a53e830-9f37-4e31-b6b2-f0fe05bcd564
linux16 /boot/memtest86+.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 ###
--------------------------------------------------------------------------------=============================== 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
# / was on /dev/sda1 during installation
UUID=0a53e830-9f37-4e31-b6b2-f0fe05bcd564 / ext4 defaults,noatime,errors=remount-ro 0 1
# swap was on /dev/sdb2 during installation
# UUID=c039ee7c-28f9-487a-959a-daa36ae46056 none swap sw 0 0
# swap was on /dev/sdc1 during installation
# UUID=0edd79d9-8bb3-41df-b8b6-3b7d13e6d5dd none swap sw 0 0
#
# /var/log en RAM
ram /var/log tmpfs defaults,nosuid,nodev 0 0
# /tmp en RAM
tmpfs /tmp tmpfs defaults,size=1g 0 0
# NAS
UUID=fd2eb1e9-2e33-42fe-b2ca-68305e09c979 /media/NAS ext2 defaults0 0
# /home was on /dev/sda3 during installation
UUID=2ac3ea93-0ac0-4466-a606-11cbe2363ee8 /home ext4 defaults 0 2
--------------------------------------------------------------------------------=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
8.170192719 = 8.772677632 boot/grub/core.img 1
2.339138031 = 2.511630336 boot/grub/grub.cfg 1
5.891601562 = 6.326059008 boot/initrd.img-2.6.38-8-generic 2
8.265834808 = 8.875372544 boot/vmlinuz-2.6.38-8-generic 1
5.891601562 = 6.326059008 initrd.img 2
8.265834808 = 8.875372544 vmlinuz 1========= Devices which don't seem to have a corresponding hard drive: =========
sdd
=============================== StdErr Messages: ===============================
unlzma: Decoder error
unlzma: Decoder error
et pour le df -h
Sys. de fichiers Taille Uti. Disp. Uti% Monté sur
/dev/sda1 15G 5,2G 8,9G 37% /
none 2,0G 716K 2,0G 1% /dev
none 2,0G 140K 2,0G 1% /dev/shm
tmpfs 1,0G 720K 1,0G 1% /tmp
none 2,0G 244K 2,0G 1% /var/run
none 2,0G 0 2,0G 0% /var/lock
ram 2,0G 584K 2,0G 1% /var/log
/dev/sdc2 913G 630G 236G 73% /media/NAS
/dev/sdb3 858G 469G 346G 58% /home
Dernière modification par usky (Le 24/06/2011, à 18:38)
Un PC Desktop Sous Ubuntu 12.04 Unity + acer1410 sous Unity Plus de windows depuis 2007 Le PC acer est sous Windows7... Ubuntu ne marche plus correctement depuis la 12.04...
http://parrains.linux.free.fr/
Hors ligne
#4 Le 24/06/2011, à 19:05
- malbo
Re : Grub2 boude ....
Oui, ben j'ai aucune idée. Désolé. Tes autres distributions Linux n'apparaissent pas. De plus ton Windows est nase : il n'a pas de fichier Bootmgr et c'est pour cela qu'il n'est pas détecté et pas proposé dans le menu Grub. Il conviendrait de réparer Windows.
Hors ligne
#5 Le 23/11/2011, à 11:12
- yhash
Re : Grub2 boude ....
Bonjour,
Même PB, mais à la difference c'est que j'ai un ubuntu et un win7 en dual boot et désormais (suite à un maj de grub-customizer je pense) je n'ai accès qu'à windows7.
Les partitions ubuntu et autre existent bien , et les données aussi.
j'ai essayé quelques commande trouvées sur les sites web, mais rien y fait, d'ailleurs je n'arrive pas à faire un grub-update et donc de pgenerer un nouveau grub.cfg.
Si je change les n°des scripts dans /etc/grub.d/ ça ne change rien je reste avec mon menu grub qui ne me propose que Win7 et testmem86 mais pas Linux
J'ai essayé de faire un grub-update avec la methode en chrootage, mais j'ai un retour erreur system aufs inexistant ou quelque chose comme ça.
Je ne suis pas auprès de ma machine, mais je pourrais vous poster les infos dés jeudi.
Hors ligne
#6 Le 23/11/2011, à 11:19
- sinbad83
Re : Grub2 boude ....
Salut,
restaure ton grub (http://doc.ubuntu-fr.org/tutoriel/comme … aurer_grub) en évitant boot-repair trop automatique pour savoir ce qu'il fait en détail.
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
Pages : 1