Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 29/11/2020, à 14:51

Linov

Configuration optimale du Grub

Bonjour,
A partir de ce fil, https://forum.ubuntu-fr.org/viewtopic.php?pid=22380189
il m'a été conseillé de mettre de l'ordre dans le chargeur d'amoçage.
J'ai donc commencé par lire le tuto ici : https://doc.ubuntu-fr.org/grub-pc?redir … er_un_grub
et ai commencé par

~$ grub-install -v
grub-install : information : executing modprobe efivars 2>/dev/null.
grub-install : information : Looking for /sys/firmware/efi ...
grub-install : information : ... not found.
grub-install : information : Looking for /proc/device-tree ...
grub-install : information : ... not found.
Installation pour la plate-forme i386-pc.
grub-install : erreur : le périphérique d'installation n'est pas indiqué.

Il parait logique de débuter par la correction de cette erreur, alors si vous voulez bien m'aider...

Hors ligne

#2 Le 29/11/2020, à 21:48

Linov

Re : Configuration optimale du Grub

un boot info :
https://paste.ubuntu.com/p/DgQbt3b8jC/

boot-info-4ppa125                                              [20201130_1414]

============================== Boot Info Summary ===============================

 => Grub2 (v2.00) 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 (,msdos4)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 7/2008: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda8: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.10
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img


================================ 3 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda4
OS#2:   Windows 7 on sda1
OS#3:   Ubuntu 20.10 on sda8

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-54-generic root=UUID=3e9c095b-2921-4162-9caf-45f336fc3d6c ro quiet splash vt.handoff=7


===================================== UEFI =====================================

This installed-session is not in EFI-mode.



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	63 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda4	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda7	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda8	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

sda4	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda7	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda8	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda4	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda5	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda6	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda7	: maybesepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda8	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x59305930
      Boot     Start       End   Sectors   Size Id Type
sda1  *           63 184322398 184322336  87.9G  7 HPFS/NTFS/exFAT
sda2       184324094 788035583 603711490 287.9G  f W95 Ext'd (LBA)
sda4       838952960 976773119 137820160  65.7G 83 Linux
sda5       341938176 502837247 160899072  76.7G 83 Linux
sda6       502839296 564443135  61603840  29.4G 83 Linux
sda7       564445184 644491263  80046080  38.2G 83 Linux
sda8       645543936 788035583 142491648    68G 83 Linux
Partition table entries are not in disk order.

parted -lm (filtered): _________________________________________________________

sda:500GB:scsi:512:512:msdos:ATA WDC WD5000AACS-0:;
1:32.3kB:94.4GB:94.4GB:ntfs::boot;
2:94.4GB:403GB:309GB:::lba;
5:175GB:257GB:82.4GB:ext4::;
6:257GB:289GB:31.5GB:ext4::;
7:289GB:330GB:41.0GB:ext4::;
8:331GB:403GB:73.0GB:ext4::;
4:430GB:500GB:70.6GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL         PARTLABEL
sda                                                                                                     
├─sda1 ntfs     928A64CA8A64AD03                     59305930-01                          BOOT          
├─sda2                                               59305930-02                                        
├─sda4 ext4     3e9c095b-2921-4162-9caf-45f336fc3d6c 59305930-04                          Lubuntu 20.04 
├─sda5 ext4     82825484-7c24-43f6-9ace-168ac0eacef1 59305930-05                          Data          
├─sda6 ext4     56183fa7-acdc-4d13-adbf-a2672dd82dfd 59305930-06                                        
├─sda7 ext4     d7beb1a2-6a43-494c-bae6-e7e44e54e42e 59305930-07                                        
└─sda8 ext4     71cadfb6-8fd0-471b-b8c5-32ec2169c4b0 59305930-08                          Xubuntu       

df (filtered): _________________________________________________________________

        Avail Use% Mounted on
sda1    37.4G  57% /mnt/boot-sav/sda1
sda4    54.4G  11% /
sda5    40.5G  41% /media/Data
sda6    27.3G   0% /mnt/boot-sav/sda6
sda7    35.4G   0% /mnt/boot-sav/sda7
sda8      54G  13% /mnt/boot-sav/sda8

Mount options: __________________________________________________________________

sda1   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4   rw,relatime
sda5   rw,nosuid,nodev,relatime
sda6   rw,relatime
sda7   rw,relatime
sda8   rw,relatime

====================== sda8/boot/grub/grub.cfg (filtered) ======================

Ubuntu   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Ubuntu, avec Linux 5.8.0-29-generic   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Ubuntu, avec Linux 5.8.0-28-generic   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Windows 7 (sur sda1)   928A64CA8A64AD03
Ubuntu 20.04.1 LTS (20.04) (sur sda14)   3b994575-0c6c-4967-8978-bc7858dd2939
Ubuntu (sur sda14)   3b994575-0c6c-4967-8978-bc7858dd2939
Ubuntu, with Linux 5.4.0-54-generic (sur sda14)   3b994575-0c6c-4967-8978-bc7858dd2939
Ubuntu, with Linux 5.4.0-42-generic (sur sda14)   3b994575-0c6c-4967-8978-bc7858dd2939
Ubuntu 20.04.1 LTS (20.04) (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu, avec Linux 5.4.0-54-generic (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu, avec Linux 5.4.0-53-generic (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu 20.04.1 LTS (20.04) (sur sda14) (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu (sur sda14) (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu, with Linux 5.4.0-54-generic (sur sda14) (sur sda4)   3e9c095b-2921-4162-9caf-45f336fc3d6c
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda8/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda12 during installation
UUID=71cadfb6-8fd0-471b-b8c5-32ec2169c4b0 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda11 during installation
/swapfile                                 none            swap    sw              0       0
LABEL=Data /media/Data auto nosuid,nodev,nofail,x-gvfs-show 0 0

======================= sda8/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda8: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 363,945976257 = 390,784016384  boot/grub/grub.cfg                             1
 328,023838043 = 352,212914176  boot/grub/i386-pc/core.img                     1
 323,558666229 = 347,418472448  boot/vmlinuz                                   1
 315,355541229 = 338,610434048  boot/vmlinuz-5.8.0-28-generic                  1
 323,558666229 = 347,418472448  boot/vmlinuz-5.8.0-29-generic                  1
 315,355541229 = 338,610434048  boot/vmlinuz.old                               1
 310,511505127 = 333,409189888  boot/initrd.img                                3
 314,363056183 = 337,544761344  boot/initrd.img-5.8.0-28-generic               2
 310,511505127 = 333,409189888  boot/initrd.img-5.8.0-29-generic               3
 314,363056183 = 337,544761344  boot/initrd.img.old                            2

===================== sda8: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17622 oct.   1 16:59 10_linux
-rwxr-xr-x 1 root root 42359 oct.   1 16:59 10_linux_zfs
-rwxr-xr-x 1 root root 12894 oct.   1 16:59 20_linux_xen
-rwxr-xr-x 1 root root 12059 oct.   1 16:59 30_os-prober
-rwxr-xr-x 1 root root  1424 oct.   1 16:59 30_uefi-firmware
-rwxr-xr-x 1 root root   214 oct.   1 16:59 40_custom
-rwxr-xr-x 1 root root   216 oct.   1 16:59 41_custom

====================== sda4/boot/grub/grub.cfg (filtered) ======================

Ubuntu   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu, avec Linux 5.4.0-54-generic   3e9c095b-2921-4162-9caf-45f336fc3d6c
Ubuntu, avec Linux 5.4.0-53-generic   3e9c095b-2921-4162-9caf-45f336fc3d6c
Windows 7 (sur sda1)   928A64CA8A64AD03
Ubuntu 20.10 (20.10) (sur sda8)   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Ubuntu (sur sda8)   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Ubuntu, avec Linux 5.8.0-29-generic (sur sda8)   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
Ubuntu, avec Linux 5.8.0-28-generic (sur sda8)   71cadfb6-8fd0-471b-b8c5-32ec2169c4b0
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda4/etc/fstab (filtered) ===========================

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=3e9c095b-2921-4162-9caf-45f336fc3d6c /              ext4    defaults   0 1
LABEL=Data /media/Data  auto nosuid,nodev,nofail,x-gvfs-show 0 2
UUID="a452c468-be48-4191-baf1-67cf54222398" TYPE="swap" PARTUUID="59305930-06"

======================= sda4/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda4: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 408,835521698 = 438,983798784  boot/grub/grub.cfg                             2
 408,298984528 = 438,407696384  boot/grub/i386-pc/core.img                     1
 401,640758514 = 431,258480640  boot/vmlinuz                                   1
 403,031383514 = 432,751652864  boot/vmlinuz-5.4.0-53-generic                  1
 401,640758514 = 431,258480640  boot/vmlinuz-5.4.0-54-generic                  1
 403,031383514 = 432,751652864  boot/vmlinuz.old                               1
 407,395503998 = 437,437591552  boot/initrd.img                                6
 403,909160614 = 433,694158848  boot/initrd.img-5.4.0-53-generic               5
 407,395503998 = 437,437591552  boot/initrd.img-5.4.0-54-generic               6
 403,909160614 = 433,694158848  boot/initrd.img.old                            5

===================== sda4: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17622 sept.  8 12:24 10_linux
-rwxr-xr-x 1 root root 42359 sept.  8 12:24 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31 02:34 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31 02:34 40_custom
-rwxr-xr-x 1 root root   216 juil. 31 02:34 41_custom


======================== Unknown MBRs/Boot Sectors/etc =========================

Unknown BootLoader on sda2

00000000  7b 8b 73 ae 8c 88 02 ed  7b 6b 73 35 e3 a3 ba ed  |{.s.....{ks5....|
00000010  83 8b 73 ff bf 3f d4 ed  83 6b 73 88 2c 24 ff ad  |..s..?...ks.,$..|
00000020  8b 6b 6b af 0a ca 55 6f  8c 2a 63 bc 9e 9f 2f 73  |.kk...Uo.*c.../s|
00000030  b5 c4 31 60 a0 aa aa d1  94 a4 29 57 ae 00 00 f5  |..1`......)W....|
00000040  bd a3 31 25 2f aa aa 16  c6 2e 8c 80 fe 55 75 de  |..1%/........Uu.|
00000050  ff a9 5a d8 fe f5 ff 93  ad 87 4a 0a aa de 9e d1  |..Z.......J.....|
00000060  94 00 00 56 57 fa a8 0f  7c 00 00 55 55 af 02 00  |...VW...|..UU...|
00000070  00 0f 7c 00 00 aa 55 00  00 0f 7c 00 00 aa 55 0f  |..|...U...|...U.|
00000080  7c 00 00 d5 55 7f c0 f3  b5 00 00 ea a3 c1 89 ab  ||...U...........|
00000090  73 a7 4a 8b 80 aa 0d cd  83 a2 10 00 a0 da 5e 12  |s.J...........^.|
000000a0  a5 66 4a fa f2 5a bd d0  94 62 10 ea 78 50 78 a6  |.fJ..Z...b..xPx.|
000000b0  31 61 08 b7 fe bc 26 4b  63 41 08 ab 25 b5 d5 8e  |1a....&KcA..%...|
000000c0  8c 06 3a 05 0b ff bf b1  94 00 00 5f 55 f7 a0 30  |..:........_U..0|
000000d0  84 00 00 d5 55 ff 2f b2  8c 20 00 02 55 55 80 8e  |....U./.. ..UU..|
000000e0  8c 00 00 a8 bf d5 55 2e  8c a4 31 eb 82 2f 3d 11  |......U...1../=.|
000000f0  a5 4b 63 90 98 38 30 f2  a4 0f 8c 5c dc fc 7e d1  |.Kc..80....\..~.|
00000100  9c 2f 84 ff d7 37 bf 27  42 37 c6 8a 8a 6a 6a da  |./...7.'B7...jj.|
00000110  de 00 00 fa 5a 58 58 78  ce 00 00 6b 6b 63 02 b6  |....ZXXx...kkc..|
00000120  b5 00 00 55 55 ad 00 4d  63 20 00 55 ed ea 28 d6  |...UU..Mc .U..(.|
00000130  b5 00 00 55 5f ff 0a d5  bd 00 00 25 35 bf b0 94  |...U_......%5...|
00000140  b5 c9 5a a6 a6 ac f8 af  9c 23 21 e0 e0 70 70 27  |..Z......#!..pp'|
00000150  42 20 00 d7 5f 70 70 c6  31 41 08 a5 69 f9 a3 06  |B .._pp.1A..i...|
00000160  42 82 10 b5 25 d5 fa 27  42 61 10 57 d6 bc a8 88  |B...%..'Ba.W....|
00000170  4a 41 08 df 9f be 0b 4d  84 00 00 aa 70 5f ff f2  |JA.....M....p_..|
00000180  ac 00 00 00 55 55 ff 9c  f7 00 00 0a f5 55 55 ff  |....UU.......UU.|
00000190  ff 00 00 00 ea 55 55 58  ce 00 00 b8 55 55 55 6f  |.....UUX....UUUo|
000001a0  8c 23 21 08 0b 29 29 d2  9c ea 6a da de dc 98 29  |.#!..))...j....)|
000001b0  82 b2 d4 a0 a0 a0 a9 70  94 0e 84 2d 8b 2f 00 fe  |.......p...-./..|
000001c0  ff ff 83 fe ff ff 02 00  65 09 00 20 97 09 00 fe  |........e.. ....|
000001d0  ff ff 05 fe ff ff 02 20  fc 12 00 08 ac 03 00 00  |....... ........|
000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200


========= Devices which don't seem to have a corresponding hard drive ==========

sdb sdc sdd 

=============================== StdErr Messages ================================

File descriptor 63 (pipe:[120794]) leaked on lvs invocation. Parent PID 17440: /bin/bash
  /dev/sdb: open failed: Aucun support trouvé
  /dev/sdc: open failed: Aucun support trouvé
  /dev/sdd: open failed: Aucun support trouvé
  /dev/sdb: open failed: Aucun support trouvé
  /dev/sdc: open failed: Aucun support trouvé
  /dev/sdd: open failed: Aucun support trouvé

Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda4 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s

Download as text

Dernière modification par Linov (Le 30/11/2020, à 21:23)

Hors ligne