#1 Le 11/12/2014, à 21:57
- YannUbuntu
[Résolu] amélioration de la commande "boot-repair --esp"
la commande "boot-repair --esp" permet de savoir où se trouvent les partitions de type ESP.
Boot-Repair se base sur le meme code pour déterminer quels options de réparation il va proposer par défaut, par exemple savoir s'il doit installer grub-efi, suggérer à l'utilisateur de créer une ESP, etc ..
C'est pourquoi il est important que cette commande détecte les ESP de manière fiable.
N'hésitez par à créer un rapport de bug (ICI) si vous détectez une erreur dans le retour de cette commande.
Bug détecté par celtinux avec la version 4ppa20 (la commande ne retourne rien): http://forum.ubuntu-fr.org/viewtopic.ph … #p18737511
Je suppose que c'est lié au fait que parted n'affiche pas sur le meme canal lorsqu'il détecte une erreur. Par exemple l'erreur de partitionnement du disque Mint de celtinux :
=================== parted -lm:
BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot;
2:250MB:50.2GB:50.0GB:ext4::;
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::;
4:58.2GB:163GB:105GB:ext4::;
5:163GB:500GB:337GB:fat32::msftdata;
Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table.
However, it does not have a valid fake msdos partition table, as it should.
Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
partition tables. Or perhaps you deleted the GPT table, and are now using an
msdos partition table. Is this a GPT partition table?
Error: The backup GPT table is corrupt, but the primary appears OK, so that will
be used.
Warning: Not all of the space available to /dev/sdb appears to be used, you can
fix the GPT to use all of the space (an extra 5359776 blocks) or continue with
the current setting?
Error: Unable to satisfy all constraints on the partition.
@celtinux: j'ai mis à jour le PPA de boot-repair (version 4ppa21). Peux-tu installer cette nouvelle version, refaire la commande "boot-repair --esp" depuis une session-live (avec ton disque Mint branché), et indiquer ce qu'elle retourne stp ?
Dernière modification par YannUbuntu (Le 14/12/2014, à 21:22)
à consulter/améliorer: Guide du Débutant, Logiciels, Ecole, Travail, Maison
Hors ligne
#2 Le 11/12/2014, à 22:32
- celtinux
Re : [Résolu] amélioration de la commande "boot-repair --esp"
Bonsoir,
voici le resultat
mint@mint ~ $ sudo boot-repair --version
boot-repair version : 4ppa21
boot-sav version : 4ppa21
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version :
mint@mint ~ $ sudo boot-repair --esp
ESP detection
Hors ligne
#3 Le 12/12/2014, à 22:51
- YannUbuntu
Re : [Résolu] amélioration de la commande "boot-repair --esp"
merci. Peux-tu stp faire un nouvel essai avec 4ppa22 ?
pour info chez moi ça affiche ceci:
$ boot-repair -v
boot-repair version : 4ppa22
boot-sav version : 4ppa22
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa22
$ boot-repair --esp
BYT;
/dev/sda:500GB:scsi:512:4096:msdos:ATA ST9500423AS;
2:1049kB:20.0GB:20.0GB:ext4::boot;
4:20.0GB:25.3GB:5242MB:::;
5:20.0GB:25.3GB:5242MB:linux-swap(v1)::;
1:45.2GB:437GB:392GB:ntfs::;
3:437GB:500GB:62.9GB:ext4::;
BYT;
/dev/sdb:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM81;
1:1049kB:83.9GB:83.9GB:ntfs::boot;
2:83.9GB:128GB:44.1GB:ntfs::;
PARTEDLM
BYT;
/dev/sda:500GB:scsi:512:4096:msdos:ATA ST9500423AS;
2:1049kB:20.0GB:20.0GB:ext4::boot;
4:20.0GB:25.3GB:5242MB:::;
5:20.0GB:25.3GB:5242MB:linux-swap(v1)::;
1:45.2GB:437GB:392GB:ntfs::;
3:437GB:500GB:62.9GB:ext4::;
BYT;
/dev/sdb:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM81;
1:1049kB:83.9GB:83.9GB:ntfs::boot;
2:83.9GB:128GB:44.1GB:ntfs::;
ESP detection
/dev/sda:500GB:scsi:512:4096:msdos:ATA ST9500423AS;
2:1049kB:20.0GB:20.0GB:ext4::boot; <2> this_part_is_not_esp
4:20.0GB:25.3GB:5242MB:::; <4> this_part_is_not_esp
5:20.0GB:25.3GB:5242MB:linux-swap(v1)::; <5> this_part_is_not_esp
1:45.2GB:437GB:392GB:ntfs::; <1> this_part_is_not_esp
3:437GB:500GB:62.9GB:ext4::; <3> this_part_is_not_esp
/dev/sdb:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM81;
1:1049kB:83.9GB:83.9GB:ntfs::boot; <1> this_part_is_not_esp
2:83.9GB:128GB:44.1GB:ntfs::; <2> this_part_is_not_esp
Detection with writing workaround
BYT;
/dev/sda:500GB:scsi:512:4096:msdos:ATA ST9500423AS;
2:1049kB:20.0GB:20.0GB:ext4::boot;
4:20.0GB:25.3GB:5242MB:::;
5:20.0GB:25.3GB:5242MB:linux-swap(v1)::;
1:45.2GB:437GB:392GB:ntfs::;
3:437GB:500GB:62.9GB:ext4::;
BYT;
/dev/sdb:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM81;
1:1049kB:83.9GB:83.9GB:ntfs::boot;
2:83.9GB:128GB:44.1GB:ntfs::;
/dev/sda:500GB:scsi:512:4096:msdos:ATA ST9500423AS;
2:1049kB:20.0GB:20.0GB:ext4::boot; <2> this_part_is_not_esp
4:20.0GB:25.3GB:5242MB:::; <4> this_part_is_not_esp
5:20.0GB:25.3GB:5242MB:linux-swap(v1)::; <5> this_part_is_not_esp
1:45.2GB:437GB:392GB:ntfs::; <1> this_part_is_not_esp
3:437GB:500GB:62.9GB:ext4::; <3> this_part_is_not_esp
/dev/sdb:128GB:scsi:512:512:msdos:ATA SAMSUNG SSD PM81;
1:1049kB:83.9GB:83.9GB:ntfs::boot; <1> this_part_is_not_esp
2:83.9GB:128GB:44.1GB:ntfs::; <2> this_part_is_not_esp
à consulter/améliorer: Guide du Débutant, Logiciels, Ecole, Travail, Maison
Hors ligne
#4 Le 13/12/2014, à 22:41
- celtinux
Re : [Résolu] amélioration de la commande "boot-repair --esp"
Bonsoir.
Voici ce que ca donne maintenant
nota : j ai supprime ce qui concernait sdb (cle USB) car c etait tres long
mint@mint ~ $ sudo boot-repair --version
boot-repair version : 4ppa22
boot-sav version : 4ppa22
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version :
mint@mint ~ $ sudo boot-repair --esp
BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot;
2:250MB:50.2GB:50.0GB:ext4::;
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::;
4:58.2GB:163GB:105GB:ext4::;
5:163GB:500GB:337GB:fat32::msftdata;
PARTEDLM
BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot;
2:250MB:50.2GB:50.0GB:ext4::;
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::;
4:58.2GB:163GB:105GB:ext4::;
5:163GB:500GB:337GB:fat32::msftdata;
ESP detection
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot; <1> this_part_is_esp
2:250MB:50.2GB:50.0GB:ext4::; <2> this_part_is_not_esp
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::; <3> this_part_is_not_esp
4:58.2GB:163GB:105GB:ext4::; <4> this_part_is_not_esp
Detection with writing workaround
BYT;
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot;
2:250MB:50.2GB:50.0GB:ext4::;
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::;
4:58.2GB:163GB:105GB:ext4::;
5:163GB:500GB:337GB:fat32::msftdata;
/dev/sda:500GB:scsi:512:512:gpt:ATA WDC WD5000AAKX-0;
1:1049kB:250MB:249MB:fat32::boot; <1> this_part_is_esp
2:250MB:50.2GB:50.0GB:ext4::; <2> this_part_is_not_esp
3:50.2GB:58.2GB:8000MB:linux-swap(v1)::; <3> this_part_is_not_esp
4:58.2GB:163GB:105GB:ext4::; <4> this_part_is_not_esp
mint@mint ~ $
Hors ligne
#5 Le 13/12/2014, à 23:50
- YannUbuntu
Re : [Résolu] amélioration de la commande "boot-repair --esp"
bonne nouvelle, le problème est résolu. Encore merci pour ton aide.
(du coup si tu fais un Boot-Info dans les memes conditions, tu devrais voir que la réparation suggérée est bien la réinstallation de grub-efi)
à consulter/améliorer: Guide du Débutant, Logiciels, Ecole, Travail, Maison
Hors ligne
#6 Le 14/12/2014, à 13:43
- celtinux
Re : [Résolu] amélioration de la commande "boot-repair --esp"
Je suis bien content d'avoir participé et aidé à la résolution de ce problème
Merci à toi aussi
Hors ligne