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 27/02/2021, à 21:40

marvie

[Résolu] Temps de boot très long sur un macbook

Bonjour,

J'ai installé ubuntu 20.04 KDE Plasma sur un Macbook 13 pouces Aluminium de juin 2009 avec ubuntu comme system unique.
(J'ai fait cela afin de pouvoir utiliser un logiciel libre non maintenu sur Mac )
Cela fonctionne très bien le seul problème est le temps de boot que je trouve très long et un peu étrange.
Il se déroule ainsi

Timing du boot:

  • 0s bruit que fait le mac au boot puis écran blanc

  • 15s écran noir avec le caractère _  approximativement ligne 5 col

  • 50s le caractère _ disparait. L'écran reste noir

  • 1min 20s Un écran NVIDIA apparait

  • 1min 40s L'écran de connection ubuntu apparait enfin

J'ai fait un boot info que voici

boot-info-4ppa125                                              [20210227_1107]

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

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.2 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub


================================ 1 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-65-generic root=UUID=b889fdf8-1c5d-4389-a1b5-3d03c2b9879b ro quiet splash vt.handoff=7


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

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.

efibootmgr -v
BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* ubuntu	HD(1,GPT,4f662f05-472c-4fe7-81b6-64f89a6ec38b,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
Boot0080* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0081* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0082* 	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
BootFFFF* 	PciRoot(0x0)/Pci(0x4,0x1)/USB(0,0)/HD(1,MBR,0x3a34e6,0x800,0xf14800)/File(\EFI\BOOT\BOOTX64.efi)

2895d47544fd587b26c7e29be1295c27   sda1/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda1/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda1/ubuntu/grubx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda1/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda2	: 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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 149.5 GiB, 160041885696 bytes, 312581808 sectors
Disk identifier: D982346E-0529-433C-A580-5BBF0CE6A959
        Start       End   Sectors   Size Type
sda1     2048   1050623   1048576   512M EFI System
sda2  1050624 312580095 311529472 148.6G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:160GB:scsi:512:512:gpt:ATA FUJITSU MHZ2160B:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:160GB:160GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                           
├─sda1 vfat   C23E-D29B                            4f662f05-472c-4fe7-81b6-64f89a6ec38b       EFI System Partition
└─sda2 ext4   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b 8e155749-71c9-48fa-96d8-8fb5c68cc800       

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda2   126.7G   8% /

Mount options: __________________________________________________________________

sda2   rw,relatime,errors=remount-ro

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid b889fdf8-1c5d-4389-a1b5-3d03c2b9879b root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
Ubuntu, with Linux 5.4.0-65-generic   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
Ubuntu, with Linux 5.4.0-42-generic   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=b889fdf8-1c5d-4389-a1b5-3d03c2b9879b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=C23E-D29B  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

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

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

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

           GiB - GB             File                                 Fragment(s)
 130.875934601 = 140.526964736  boot/grub/grub.cfg                             1
   6.004047394 = 6.446796800    boot/vmlinuz                                   1
   5.368160248 = 5.764018176    boot/vmlinuz-5.4.0-42-generic                  2
   6.004047394 = 6.446796800    boot/vmlinuz-5.4.0-65-generic                  1
   5.368160248 = 5.764018176    boot/vmlinuz.old                               2
   3.523490906 = 3.783319552    boot/initrd.img                                4
   9.454097748 = 10.151260160   boot/initrd.img-5.4.0-42-generic               4
   3.523490906 = 3.783319552    boot/initrd.img-5.4.0-65-generic               4
   9.454097748 = 10.151260160   boot/initrd.img.old                            4

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

-rwxr-xr-x 1 root root 17622 janv. 13 15:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 15:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31  2020 40_custom
-rwxr-xr-x 1 root root   216 juil. 31  2020 41_custom


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda2,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file    

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !

J'ai fait le boot repair suggéré: En revanche je ne n'ai pas trouvé comment faire la derniere remarque: " Ne pas oublier de ..."

Voici le résultat du boot repair:

boot-repair-4ppa125                                              [20210227_1209]

============================= Boot Repair Summary ==============================




Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi-amd64-signed of
sda2,
using the following options:        sda1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s  use-standard-efi-file


/boot/efi added in sda2/fstab
Mount sda1 on /boot/efi

Unhide GRUB boot menu in sda2/etc/default/grub

================= Reinstall the grub-efi-amd64-signed of sda2 ==================

grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.8

efibootmgr -v from chroot before grub install
BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* ubuntu	HD(1,GPT,4f662f05-472c-4fe7-81b6-64f89a6ec38b,0x800,0x100000)/File(EFIubuntugrubx64.efi)
Boot0080* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0081* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0082* 	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
BootFFFF* 	PciRoot(0x0)/Pci(0x4,0x1)/USB(0,0)/HD(1,MBR,0x3a34e6,0x800,0xf14800)/File(EFIBOOTBOOTX64.efi)

uname -r
5.4.0-65-generic

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/sda1
mv /boot/efi/EFI/Boot/bootx64.efi /boot/efi/EFI/Boot/bkpbootx64.efi
cp /boot/efi/EFI/ubuntu/grubx64.efi /boot/efi/EFI/Boot/bootx64.efi

grub-install --efi-directory=/boot/efi --target=x86_64-efi --uefi-secure-boot
Installing for x86_64-efi platform.
Installation finished. No error reported.

efibootmgr -v from chroot after grub install
BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* ubuntu	HD(1,GPT,4f662f05-472c-4fe7-81b6-64f89a6ec38b,0x800,0x100000)/File(EFIubuntugrubx64.efi)
Boot0080* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0081* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0082* 	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
BootFFFF* 	PciRoot(0x0)/Pci(0x4,0x1)/USB(0,0)/HD(1,MBR,0x3a34e6,0x800,0xf14800)/File(EFIBOOTBOOTX64.efi)
Warning: NVram was not modified.

update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-66-generic
Found initrd image: /boot/initrd.img-5.4.0-66-generic
Found linux image: /boot/vmlinuz-5.4.0-65-generic
Found initrd image: /boot/initrd.img-5.4.0-65-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic

Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.

N'oubliez pas de faire démarrer votre firmware UEFI sur l'entrée L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession (fichier sda1/EFI/ubuntu/grubx64.efi) !

============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi 
                       /efi/ubuntu/grubx64.efi /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.2 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub


================================ 1 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-65-generic root=UUID=b889fdf8-1c5d-4389-a1b5-3d03c2b9879b ro quiet splash vt.handoff=7


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

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.

efibootmgr -v
BootCurrent: 0000
BootOrder: 0000,0080
Boot0000* ubuntu	HD(1,GPT,4f662f05-472c-4fe7-81b6-64f89a6ec38b,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)
Boot0080* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0081* Mac OS X	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
Boot0082* 	PciRoot(0x0)/Pci(0xb,0x0)/Sata(0,0,0)/HD(2,GPT,27442382-c878-48de-a90e-3a14b5b30dd5,0x64028,0x1287ff40)
BootFFFF* 	PciRoot(0x0)/Pci(0x4,0x1)/USB(0,0)/HD(1,MBR,0x3a34e6,0x800,0xf14800)/File(\EFI\BOOT\BOOTX64.efi)

2895d47544fd587b26c7e29be1295c27   sda1/BOOT/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda1/BOOT/mmx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda1/ubuntu/grubx64.efi
637fa7fabc8a2f70312edf2f15e275ff   sda1/BOOT/BOOTX64.efi


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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

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

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda2	: 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

fdisk -l (filtered): ___________________________________________________________

Disk sda: 149.5 GiB, 160041885696 bytes, 312581808 sectors
Disk identifier: D982346E-0529-433C-A580-5BBF0CE6A959
        Start       End   Sectors   Size Type
sda1     2048   1050623   1048576   512M EFI System
sda2  1050624 312580095 311529472 148.6G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:160GB:scsi:512:512:gpt:ATA FUJITSU MHZ2160B:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:160GB:160GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                           
├─sda1 vfat   C23E-D29B                            4f662f05-472c-4fe7-81b6-64f89a6ec38b       EFI System Partition
└─sda2 ext4   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b 8e155749-71c9-48fa-96d8-8fb5c68cc800       

df (filtered): _________________________________________________________________

        Avail Use% Mounted on
sda2   125.9G   8% /

Mount options: __________________________________________________________________

sda2   rw,relatime,errors=remount-ro

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid b889fdf8-1c5d-4389-a1b5-3d03c2b9879b root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
Ubuntu, with Linux 5.4.0-66-generic   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
Ubuntu, with Linux 5.4.0-65-generic   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
Ubuntu, with Linux 5.4.0-42-generic   b889fdf8-1c5d-4389-a1b5-3d03c2b9879b
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=b889fdf8-1c5d-4389-a1b5-3d03c2b9879b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
/swapfile                                 none            swap    sw              0       0
UUID=C23E-D29B  /boot/efi       vfat    defaults      0       1

======================= sda2/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=""

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

           GiB - GB             File                                 Fragment(s)
  60.634574890 = 65.105879040   boot/grub/grub.cfg                             1
 123.160301208 = 132.242366464  boot/vmlinuz                                   1
   5.368160248 = 5.764018176    boot/vmlinuz-5.4.0-42-generic                  2
   6.004047394 = 6.446796800    boot/vmlinuz-5.4.0-65-generic                  1
 123.160301208 = 132.242366464  boot/vmlinuz-5.4.0-66-generic                  1
   6.004047394 = 6.446796800    boot/vmlinuz.old                               1
  10.927650452 = 11.733475328   boot/initrd.img                                3
   9.454097748 = 10.151260160   boot/initrd.img-5.4.0-42-generic               4
   3.523490906 = 3.783319552    boot/initrd.img-5.4.0-65-generic               4
  10.927650452 = 11.733475328   boot/initrd.img-5.4.0-66-generic               3
   3.523490906 = 3.783319552    boot/initrd.img.old                            4

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

-rwxr-xr-x 1 root root 17622 janv. 13 15:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 15:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31  2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31  2020 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31  2020 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31  2020 40_custom
-rwxr-xr-x 1 root root   216 juil. 31  2020 41_custom

Résultat : Le boot n'a pas changé.
J'ai beaucoup cherché sur le forum mais je n'ai pas réussi à trouver une solution. ( finalement ce boot est peut être normal)
En revanche je ne comprends pas tout à fait les subtilités entre UEFI  et GRUB ( j'ai peut être raté quelque chose à l'install).

Si vous avez une aide à me proposer je vous en serai très reconnaissant.

Merci

Dernière modification par marvie (Le 22/03/2021, à 13:47)

Hors ligne

#2 Le 27/02/2021, à 23:27

jpoc

Re : [Résolu] Temps de boot très long sur un macbook

appui sur la touche Esc apres le demarrage de GRUB peut donner des infos

Hors ligne

#3 Le 27/02/2021, à 23:58

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Merci,

Si j'appuie sur la touche escape cela bloque le boot. ( je suis obligé de forcer l'arrêt avec le bouton de démarrage du Mac)
A quel moment sait on que GRUB est démarré ?

Hors ligne

#4 Le 28/02/2021, à 11:03

jpoc

Re : [Résolu] Temps de boot très long sur un macbook

pour voir les messages au demarrage éditer le fichier

sudo  gedit /etc/default/grub

modifier la ligne

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

par

GRUB_CMDLINE_LINUX_DEFAULT=""

faire

sudo update-grub 

redemarrer et les messages apparaitront
faut voir aussi nomodeset pour pas charger le driver video au demarrage

Hors ligne

#5 Le 28/02/2021, à 12:48

geole

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour
Attendre 1 minute et 40 secondes pour pouvoir travailler avec ubuntu lorsque celui-ci est installé sur un disque dur me semble une attente normale.....
Peux-tu donner ces retours

systemd-analyze time
systemd-analyze blame | head -25
systemd-analyze critical-chain
journalctl -b --no-pager -p err

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#6 Le 28/02/2021, à 22:45

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Bonsoir,

Pour la réponse 4 de jpoc j'ai fait ce qui est indiqué et je vois les messages de grub. en revanche je ne sais pas les retrouver ( fichier log ) et cela défile trop vite pour être mémorisé.
Comment faire pour conserver la trace des messages. Je n'ai pas trouvé dans la doc de grub.

Pour la réponse 5 de geole j'ai essayé systemd-analyse time.Voici ce que j'obtiens.

martial@martial-unixmac:~$ systemd-analyse time      

La commande « systemd-analyse » n'a pas été trouvée, voulez-vous dire :

 commande « systemd-analyze » du deb systemd (245.4-4ubuntu3.4)

Essayez : sudo apt install <nom du deb>

et si je tente d'installer:

martial@martial-unixmac:~$ sudo apt install systemd  
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances        
Lecture des informations d'état... Fait
systemd est déjà la version la plus récente (245.4-4ubuntu3.4).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 26 non mis à jour.

Et cela ne fonctionne toujours pas. Je bloque.

Hors ligne

#7 Le 28/02/2021, à 23:04

geole

Re : [Résolu] Temps de boot très long sur un macbook

Ne fais pas d'erreur de frappe.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#8 Le 01/03/2021, à 00:09

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Bien vu, Merci . J'ai tendance à lire un peu vite et à écrire de même.
Je vais voir cela demain ( désolé de vous avoir fait perdre du temps).

Hors ligne

#9 Le 01/03/2021, à 10:23

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour,
Voici les 4 sorties des commandes demandées ( ça marche beaucoup mieux sans faute de frappe )
Je ne sais pas si les durées indiquées sont normales

martial@martial-unixmac:~$ systemd-analyze time       
Startup finished in 8.105s (kernel) + 51.314s (userspace) = 59.420s  
graphical.target reached after 44.547s in userspace
martial@martial-unixmac:~$ systemd-analyze blame  
30.283s man-db.service                                        
19.100s snapd.service                                         
18.300s udisks2.service                                       
17.889s networkd-dispatcher.service                           
15.874s accounts-daemon.service                               
14.213s NetworkManager-wait-online.service                    
13.809s logrotate.service                                     
12.190s polkit.service                                        
11.437s avahi-daemon.service                                  
11.432s bluetooth.service                                     
11.291s NetworkManager.service                                
11.198s iio-sensor-proxy.service                              
10.814s dev-sda2.device                                       
9.639s thermald.service                                      
9.624s wpa_supplicant.service                                
9.624s systemd-logind.service                                
6.671s ModemManager.service                                  
5.225s gpu-manager.service                                   
5.095s grub-common.service                                   
5.088s grub-initrd-fallback.service                          
3.701s apport.service                                        
3.646s systemd-journal-flush.service                         
3.432s alsa-restore.service                                  
3.142s rsyslog.service                                       
2.364s systemd-udevd.service                                 
2.358s apparmor.service                                      
1.685s fstrim.service                                        
1.683s e2scrub_reap.service                                  
1.410s pppd-dns.service                                      
1.214s systemd-resolved.service                              
1.164s systemd-rfkill.service                                
 927ms systemd-sysctl.service                                
 917ms systemd-modules-load.service                          
 899ms upower.service                                        
 850ms systemd-tmpfiles-setup.service                        
 795ms keyboard-setup.service                                
 792ms systemd-udev-trigger.service                          
 768ms modprobe@drm.service                                  
 765ms systemd-tmpfiles-setup-dev.service                    
 763ms systemd-random-seed.service                           
 714ms systemd-remount-fs.service                            
 662ms systemd-sysusers.service                              
 634ms systemd-backlight@leds:smc::kbd_backlight.service     
 626ms snapd.seeded.service                                  
 603ms binfmt-support.service                                
 540ms systemd-journald.service                              
 438ms swapfile.swap                                         
 421ms systemd-timesyncd.service                             
 399ms snapd.apparmor.service                                
 256ms user@1000.service                                     
 221ms systemd-fsck@dev-disk-by\x2duuid-C23E\x2dD29B.service
 198ms kmod-static-nodes.service                             
 149ms ufw.service                                           
 148ms dev-hugepages.mount                                   
 147ms dev-mqueue.mount                                      
 146ms kerneloops.service                                    
 145ms sys-kernel-debug.mount                                
 143ms sys-kernel-tracing.mount                              
 111ms console-setup.service                                 
 109ms systemd-update-utmp.service                           
 107ms proc-sys-fs-binfmt_misc.mount                         
 101ms sddm.service                                          
  99ms setvtrgb.service                                      
  94ms rtkit-daemon.service                                  
  87ms boot-efi.mount                                        
  64ms systemd-user-sessions.service                         
  50ms user-runtime-dir@1000.service                         
  27ms plymouth-read-write.service                           
  20ms systemd-update-utmp-runlevel.service                  
  20ms systemd-tmpfiles-clean.service                        
  15ms sys-fs-fuse-connections.mount                         
  13ms plymouth-quit.service                                 
   8ms sys-kernel-config.mount                               
   7ms snapd.socket                                          
lines 50-74/74 (END)
martial@martial-unixmac:~$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @44.547s
└─multi-user.target @44.546s
 └─kerneloops.service @44.398s +146ms
   └─network-online.target @44.337s
     └─NetworkManager-wait-online.service @30.123s +14.213s
       └─NetworkManager.service @18.824s +11.291s
         └─dbus.service @18.810s
           └─basic.target @18.604s
             └─sockets.target @18.602s
               └─snapd.socket @18.593s +7ms
                 └─sysinit.target @18.433s
                   └─snapd.apparmor.service @18.031s +399ms
                     └─apparmor.service @15.620s +2.358s
                       └─local-fs.target @15.617s
                         └─boot-efi.mount @15.528s +87ms
                           └─systemd-fsck@dev-disk-by\x2duuid-C23E\x2dD29B.service @15.282s +221ms
                             └─dev-disk-by\x2duuid-C23E\x2dD29B.device @15.279s
martial@martial-unixmac:~$ journalctl -b --no-pager -p err  
-- Logs begin at Tue 2021-02-09 17:09:19 CET, end at Mon 2021-03-01 09:05:51 CET. --
mars 01 08:38:04 martial-unixmac wpa_supplicant[608]: bgscan simple: Failed to enable signal strength monitoring

Hors ligne

#10 Le 01/03/2021, à 19:22

geole

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour
Les temps de mise en route sont normaux pour une installation sur disque dur.
Tant que le message d'erreur du wifi n'est pas trop souvent répété, il ne me semble pas  nécessaire d'en chercher la cause.
( https://debian-facile.org/doc:reseau:wpasupplicant )

Dernière modification par geole (Le 02/03/2021, à 12:18)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#11 Le 01/03/2021, à 19:51

Matrux.60

Re : [Résolu] Temps de boot très long sur un macbook

https://www.01net.com/tests/apple-macbo … 11453.html

vue la machine c''est un disque dur mécanique, donc ça me parait normal ce temps de démarrage, par contre quel pilote graphique tu as mis le libre ou le proprio, car avec une carte graphique nvidia faut trouver celui qui va boster ta machine, par contre le disque dur a quand même 11 ans, je te conseille de mettre un SSD afin de corriger ton problème de démarrage et démarrer 7 fois plus vite.

#12 Le 01/03/2021, à 21:49

michel_04

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour.


J'ai recemment fait une install d'Ubuntu 20.04 sur un Mac Mini de 2014 (hdd mecanique).
Le temps de démarrage est de 1 minute 30.


A+

Hors ligne

#13 Le 04/03/2021, à 10:58

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour,
merci pour toutes ces réponses.  Effectivement j'étais un peu naïf sur le temps de démarrage qui finalement est assez correct.
Je vais donc installer un ssd  .
En revanche pour répondre  à Matrux.60 (mess N°11)  pour le pilote graphique je n'ai rien fait de particulier donc je présume que ce doit être le libre.
Comment faire pour trouver et installer un plus performant ?

Des que j'aurai reçu le ssd, je  l'installe et je mettrais un commentaire avant de mettre Résolu à cette discussion.
Et encore merci pour votre aide.

Hors ligne

#14 Le 04/03/2021, à 20:10

Matrux.60

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour Marvie,

Dans les applications sur UBUNTU tu as pilotes additionnelles, tu le lances, il te propose des pilotes propriétaires pour les cartes graphiques Nvidia et tu choisis le pilotes libre ou propriétaire.

https://doc.ubuntu-fr.org/_media/nvidia … trusty.png

Voici le liens du wiki Ubuntu pour carte graphique Nvidia, ci-dessous :

https://doc.ubuntu-fr.org/nvidia


Modération : merci d'utiliser des images de petite taille (300x300) ou des miniatures pointant sur ces images (Des hébergeurs comme Toile Libre ou TDCT'Pix le permettent).

Dernière modification par cqfd93 (Le 04/03/2021, à 20:18)

#15 Le 22/03/2021, à 13:46

marvie

Re : [Résolu] Temps de boot très long sur un macbook

Bonjour,

Merci pour vos réponses.

J'ai suivi vos conseils:

  • Remplacement du disque par un SDD 512Mo

  • Réinstallation d'Ubuntu

Résultat: 20sec pour le boot. Pas mal pour un mac de 11 ans !

Encore merci et je mets ma question en Résolu

Hors ligne