#1 Le 31/01/2022, à 12:26
- MorisGoudin26
boot lent sur un ssd [RESOLU] et soucis de reboot.
Bonjour à toutes et à tous,
Je viens solliciter une aide sur ce forum, car je n'ai pas trouvé de solution, malgré mes recherches. En espérant que quelqu'un ait une piste pour résoudre mes deux problèmes.
Premier problème: Je viens de transférer ma partition racine et mon home sur un ssd. Au premier redémarrage, pour tester si tout va bien, miracle, le temps de chargement du système est divisé par 10 (environ 8 secondes). Tout content, je reformate et re-partitionne mes vieux hdd, je refais une installation propre de windows 10 sur le SSD et là, au redémarrage, après avoir sélectionné ubuntu dans le menu grub, l'écran reste figé environ 40 secondes sur le grub et enfin démarre normalement... (et c'est pareil à chaque fois que je démarre mon PC). Incompréhensible!
Deuxième problème (celui ci date d'avant le transfert sur SSD): Chaque fois que je souhaite redémarrer mon PC que ce soit graphiquement ou en ligne de commande, le système s’arrête, mais pas l'ordinateur. Le ventirad se met à tourner plus vite, le bouton power reste allumé et le pc ne redémarre jamais. Je suis obligé de forcer l'extinction et de redémarrer à la main...
Je poste le boot info
boot-info-4ppa171 [20220131_1213]
============================== 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 (,msdos1)/boot/grub. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
=> Windows 7/8/10/11/2012 is installed in the MBR of /dev/sdb.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdc 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. It also embeds following components:
modules
---------------------------------------------------------------------------
fshelp ext2 part_msdos biosdisk
---------------------------------------------------------------------------
sda1: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda4: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sdc1: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 20.04.3 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
/boot/grub/i386-pc/core.img
sdc2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdc3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
================================ 2 OS detected =================================
OS#1: L'OS actuellement utilisé - Ubuntu 20.04.3 LTS CurrentSession on sdc1
OS#2: Windows 10 on sdc3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller from Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-96-lowlatency root=UUID=e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013 ro quiet splash vt.handoff=1
df -Th / : /dev/sdc1 ext4 58G 20G 35G 37% /
===================================== UEFI =====================================
This installed-session is in Legacy/BIOS/CSM mode (not in EFI mode).
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sdc : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
sda : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
sdb : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, no-os, no-wind, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sdc1 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, not-far
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda4 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdb1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sdc2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sdc3 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
Partitions info (2/3): _________________________________________________________
sdc1 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdb1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdc2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sdc3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot
Partitions info (3/3): _________________________________________________________
sdc1 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdc
sda2 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sda4 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sda
sdb1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdb
sdc2 : maybesepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdc
sdc3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sdc
fdisk -l (filtered): ___________________________________________________________
Disk sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk identifier: 0x64ce4a49
Boot Start End Sectors Size Id Type
sda1 2048 49154047 49152000 23.4G 82 Linux swap / Solaris
sda2 49154048 503906303 454752256 216.9G 83 Linux
sda4 503906304 976771071 472864768 225.5G 83 Linux
Disk sdb: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk identifier: 0xfc8bab80
Boot Start End Sectors Size Id Type
sdb1 2048 156301311 156299264 74.5G b W95 FAT32
Disk sdc: 447.13 GiB, 480103981056 bytes, 937703088 sectors
Disk identifier: 0x820adbf4
Boot Start End Sectors Size Id Type
sdc1 2048 122882047 122880000 58.6G 83 Linux
sdc2 122882048 634882047 512000000 244.1G 83 Linux
sdc3 * 634882048 937701375 302819328 144.4G 7 HPFS/NTFS/exFAT
parted -lm (filtered): _________________________________________________________
sda:500GB:scsi:512:512:msdos:ATA Hitachi HDS72105:;
1:1049kB:25.2GB:25.2GB:linux-swap(v1)::;
2:25.2GB:258GB:233GB:ext4::;
4:258GB:500GB:242GB:ext4::;
sdb:80.0GB:scsi:512:512:msdos:ATA ST3808110AS:;
1:1049kB:80.0GB:80.0GB:fat32::;
sdc:480GB:scsi:512:512:msdos:ATA CT480BX500SSD1:;
1:1049kB:62.9GB:62.9GB:ext4::;
2:62.9GB:325GB:262GB:ext4::;
3:325GB:480GB:155GB:ntfs::boot;
Free space (filtered): _________________________________________________________
sda:476940MiB:scsi:512:512:msdos:ATA Hitachi HDS72105:;
1:0.00MiB:1.00MiB:1.00MiB:free;
1:476939MiB:476940MiB:1.02MiB:free;
sdb:76319MiB:scsi:512:512:msdos:ATA ST3808110AS:;
1:0.00MiB:1.00MiB:1.00MiB:free;
1:76319MiB:76319MiB:0.09MiB:free;
sdc:457863MiB:scsi:512:512:msdos:ATA CT480BX500SSD1:;
1:0.00MiB:1.00MiB:1.00MiB:free;
1:457862MiB:457863MiB:0.84MiB:free;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 swap 09d3f476-a113-4947-a4b5-e186109bfe11 64ce4a49-01
├─sda2 ext4 fda5c6a4-0e5a-4a0b-a965-b977d15ae7bd 64ce4a49-02
└─sda4 ext4 aa3fa13b-0bf8-400e-b3f8-576382413604 64ce4a49-04
sdb
└─sdb1 vfat 0B6C-46DC fc8bab80-01
sdc
├─sdc1 ext4 e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013 820adbf4-01
├─sdc2 ext4 85579986-8a6f-44d3-acb4-3df887f3c21a 820adbf4-02
└─sdc3 ntfs 11B5E4D77C2FF8C1 820adbf4-03
Mount points (filtered): _________________________________________________________________
Avail Use% Mounted on
/dev/sda2 201.5G 0% /media/simon/Datas1
/dev/sda4 161.2G 22% /media/simon/Datas2
/dev/sdb1 74.5G 0% /media/simon/FAT
/dev/sdc1 34.6G 35% /
/dev/sdc2 71.8G 65% /home
/dev/sdc3 117.5G 19% /media/simon/NTFS
Mount options (filtered): ________________________________________________________________
/dev/sda2 rw,relatime
/dev/sda4 rw,relatime
/dev/sdb1 rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdc1 rw,relatime,errors=remount-ro
/dev/sdc2 rw,relatime
/dev/sdc3 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
====================== sdc1/boot/grub/grub.cfg (filtered) ======================
Ubuntu (lowlatency) e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013
Ubuntu, avec Linux 5.4.0-96-lowlatency e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013
Ubuntu, avec Linux 5.4.0-94-lowlatency e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013
Windows 10 (sur sdc3) 11B5E4D77C2FF8C1
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
========================== sdc1/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=e4fe3bbc-ff8e-4ecc-80c5-a5c1a5542013 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb3 during installation
UUID=85579986-8a6f-44d3-acb4-3df887f3c21a /home ext4 defaults 0 2
# swap was on /dev/sdb2 during installation
UUID=09d3f476-a113-4947-a4b5-e186109bfe11 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
UUID=fda5c6a4-0e5a-4a0b-a965-b977d15ae7bd /media/simon/Datas1 ext4 defaults 0 0
UUID=aa3fa13b-0bf8-400e-b3f8-576382413604 /media/simon/Datas2 ext4 defaults 0 0
UUID=11B5E4D77C2FF8C1 /media/simon/NTFS ntfs-3g defaults 0 0
UUID=0B6C-46DC /media/simon/FAT vfat defaults,uid=1000,gid=1000 0 0
======================= sdc1/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=""
==================== sdc1: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
20.751434326 = 22.281682944 boot/grub/grub.cfg 1
4.812652588 = 5.167546368 boot/grub/i386-pc/core.img 1
7.849685669 = 8.428535808 boot/vmlinuz 1
17.802810669 = 19.115622400 boot/vmlinuz-5.4.0-94-lowlatency 2
7.849685669 = 8.428535808 boot/vmlinuz-5.4.0-96-lowlatency 1
17.802810669 = 19.115622400 boot/vmlinuz.old 2
8.068992615 = 8.664014848 boot/initrd.img 3
7.031883240 = 7.550427136 boot/initrd.img-5.4.0-94-lowlatency 5
8.068992615 = 8.664014848 boot/initrd.img-5.4.0-96-lowlatency 3
7.031883240 = 7.550427136 boot/initrd.img.old 5
===================== sdc1: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 15823 mars 29 2020 09_lowlatency
-rw-r--r-- 1 root root 18151 août 12 11:18 10_linux
-rwxr-xr-x 1 root root 42359 août 17 2020 10_linux_zfs
-rwxr-xr-x 1 root root 12894 avril 15 2020 20_linux_xen
-rwxr-xr-x 1 root root 12059 avril 15 2020 30_os-prober
-rwxr-xr-x 1 root root 1424 avril 15 2020 30_uefi-firmware
-rwxr-xr-x 1 root root 214 avril 15 2020 40_custom
-rwxr-xr-x 1 root root 216 avril 15 2020 41_custom
======================== sdc1/etc/grub.d/09_lowlatency =========================
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.
#
# Ubuntustudio customization that keeps the latest lowlatency kernel
# as the first menu item and default boot even if there is a newer
# generic or other kernel. Often the updated generic kernel is
# released a few days earlier than the lowlatency kernel
prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"
ubuntu_recovery="1"
quiet_boot="1"
quick_boot="1"
gfxpayload_dynamic="1"
vt_handoff="1"
. "$pkgdatadir/grub-mkconfig_lib"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
# only 09_lowlatency or 10_linux should run, since we got this far
# 10_linux should not run next
if [ -x /etc/grub.d/10_linux ]; then
chmod -x /etc/grub.d/10_linux
fi
CLASS="--class gnu-linux --class gnu --class os"
SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=GNU/Linux
else
case ${GRUB_DISTRIBUTOR} in
Ubuntu|Kubuntu)
OS="${GRUB_DISTRIBUTOR}"
;;
*)
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
;;
esac
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
fi
# loop-AES arranges things so that /dev/loop/X can be our root device, but
# the initrds that Linux uses don't like that.
case ${GRUB_DEVICE} in
/dev/loop/*|/dev/loop[0-9])
GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
# We can't cope with devices loop-mounted from files here.
case ${GRUB_DEVICE} in
/dev/*) ;;
*) exit 0 ;;
esac
;;
esac
# btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
# and mounting btrfs requires user space scanning, so force UUID in this case.
if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
|| ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
|| ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
LINUX_ROOT_DEVICE=${GRUB_DEVICE}
else
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
fi
case x"$GRUB_FS" in
xbtrfs)
rootsubvol="`make_system_path_relative_to_its_root /`"
rootsubvol="${rootsubvol#/}"
if [ "x${rootsubvol}" != x ]; then
GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
fi;;
xzfs)
rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
;;
esac
title_correction_code=
if [ -x /lib/recovery-mode/recovery-menu ]; then
GRUB_CMDLINE_LINUX_RECOVERY=recovery
else
GRUB_CMDLINE_LINUX_RECOVERY=single
fi
if [ "$ubuntu_recovery" = 1 ]; then
GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY nomodeset"
fi
if [ "$vt_handoff" = 1 ]; then
for word in $GRUB_CMDLINE_LINUX_DEFAULT; do
if [ "$word" = splash ]; then
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \$vt_handoff"
fi
done
fi
if [ x"$GRUB_FORCE_PARTUUID" != x ]; then
echo "set partuuid=${GRUB_FORCE_PARTUUID}"
fi
linux_entry ()
{
os="$1"
version="$2"
type="$3"
args="$4"
if [ -z "$boot_device_id" ]; then
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
if [ x$type != xsimple ] ; then
case $type in
recovery)
title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")" ;;
init-*)
title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "${type#init-}")" ;;
*)
title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
esac
if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
fi
echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
else
echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
fi
if [ "$quick_boot" = 1 ]; then
echo " recordfail" | sed "s/^/$submenu_indentation/"
fi
if [ x$type != xrecovery ] ; then
save_default_entry | grub_add_tab
fi
# Use ELILO's generic "efifb" when it's known to be available.
# FIXME: We need an interface to select vesafb in case efifb can't be used.
if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
echo " load_video" | sed "s/^/$submenu_indentation/"
else
if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
echo " load_video" | sed "s/^/$submenu_indentation/"
fi
fi
if ([ "$ubuntu_recovery" = 0 ] || [ x$type != xrecovery ]) && \
([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then
echo " gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
fi
echo " insmod gzio" | sed "s/^/$submenu_indentation/"
echo " if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
if [ x$dirname = x/ ]; then
if [ -z "${prepare_root_cache}" ]; then
prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
fi
printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
else
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
fi
printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
fi
if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
message="$(gettext_printf "Loading Linux %s ..." ${version})"
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
EOF
fi
if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
sed "s/^/$submenu_indentation/" << EOF
linux ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args}
EOF
else
# We have initrd and PARTUUID is set - we try to boot without initrd, and fallback to using it
# if it fails.
# "panic=-1" means "on panic reboot immediately". "panic=0" disables the reboot behavior.
if [ x"$GRUB_FORCE_PARTUUID" != x ]; then
linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}"
fi
message="$(gettext_printf "Loading initial ramdisk ...")"
if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then
sed "s/^/$submenu_indentation/" << EOF
if [ "\${initrdfail}" = 1 ]; then
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
initrd ${rel_dirname}/${initrd}
else
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1
fi
initrdfail
EOF
else
# We don't have initrd or we don't want to set PARTUUID. Don't try initrd-less boot with fallback.
sed "s/^/$submenu_indentation/" << EOF
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
if test -n "${initrd}"; then
# We do have initrd - let's use it at boot.
# TRANSLATORS: ramdisk isn't identifier. Should be translated.
if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
sed "s/^/$submenu_indentation/" << EOF
echo '$(echo "$message" | grub_quote)'
EOF
fi
sed "s/^/$submenu_indentation/" << EOF
initrd ${rel_dirname}/${initrd}
EOF
fi
fi
fi
sed "s/^/$submenu_indentation/" << EOF
}
EOF
}
machine=`uname -m`
case "x$machine" in
xi?86 | xx86_64)
list=
for i in /boot/vmlinuz-*lowlatency /vmlinuz-*lowlatency /boot/kernel-*lowlatency ; do
if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
done
list2=
for i in /boot/vmlinuz-*generic /vmlinuz-*generic /boot/kernel-*generic ; do
if grub_file_is_not_garbage "$i" ; then list2="$list2 $i" ; fi
done ;;
*)
list=
for i in /boot/vmlinuz-*lowlatency /boot/vmlinux-*lowlatency /vmlinuz-*lowlatency /vmlinux-*lowlatency /boot/kernel-*lowlatency ; do
if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
done
list2=
for i in /boot/vmlinuz-*generic /boot/vmlinux-*generic /vmlinuz-*generic /vmlinux-*generic /boot/kernel-*generic ; do
if grub_file_is_not_garbage "$i" ; then list2="$list2 $i" ; fi
done ;;
esac
case "$machine" in
i?86) GENKERNEL_ARCH="x86" ;;
mips|mips64) GENKERNEL_ARCH="mips" ;;
mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
arm*) GENKERNEL_ARCH="arm" ;;
*) GENKERNEL_ARCH="$machine" ;;
esac
prepare_boot_cache=
prepare_root_cache=
boot_device_id=
title_correction_code=
cat << 'EOF'
function gfxmode {
set gfxpayload="${1}"
EOF
if [ "$vt_handoff" = 1 ]; then
cat << 'EOF'
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
EOF
fi
cat << EOF
}
EOF
# Use ELILO's generic "efifb" when it's known to be available.
# FIXME: We need an interface to select vesafb in case efifb can't be used.
if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then
echo "set linux_gfx_mode=$GRUB_GFXPAYLOAD_LINUX"
else
cat << EOF
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
EOF
fi
cat << EOF
export linux_gfx_mode
EOF
# Extra indentation to add to menu entries in a submenu. We're not in a submenu
# yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
submenu_indentation=""
is_top_level=true
is_generic_top=true
if [ "x$list" = "x" ]; then
is_top_level=false
generic_is_default=true
fi
if [ "x$list2" = "x" ]; then
is_generic_top=false
fi
while [ "x$list $list2" != "x" ] ; do
if [ "x$is_generic_top" = xtrue ] && [ "x$is_top_level" != xtrue ]; then
linux=`version_find_latest $list2`
case $linux in
*.efi.signed)
# We handle these in linux_entry.
list2=`echo $list2 | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
continue
;;
esac
else
linux=`version_find_latest $list`
if [ "x$linux" = "x" ]; then
break
fi
case $linux in
*.efi.signed)
# We handle these in linux_entry.
list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
continue
;;
esac
fi
gettext_printf "Found linux image: %s\n" "$linux" >&2
basename=`basename $linux`
dirname=`dirname $linux`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
alt_version=`echo $version | sed -e "s,\.old$,,g"`
linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
initrd=
for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
"initrd-${version}" "initramfs-${version}.img" \
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
"initrd-${alt_version}" "initramfs-${alt_version}.img" \
"initramfs-genkernel-${version}" \
"initramfs-genkernel-${alt_version}" \
"initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
"initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
if test -e "${dirname}/${i}" ; then
initrd="$i"
break
fi
done
config=
for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
if test -e "${i}" ; then
config="${i}"
break
fi
done
initramfs=
if test -n "${config}" ; then
initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
fi
if test -n "${initrd}" ; then
gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
elif test -z "${initramfs}" ; then
# "UUID=" and "ZFS=" magic is parsed by initrd or initramfs. Since there's
# no initrd or builtin initramfs, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi
if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
linux_entry "${OS} (lowlatency)" "${version}" simple \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
if [ -z "$boot_device_id" ]; then
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
if [ "x$is_generic_top" != xtrue ]; then
submenu_indentation="$grub_tab"
# TRANSLATORS: %s is replaced with an OS name
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
fi
is_top_level=false
continue
fi
if [ "x$is_generic_top" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
linux_entry "${OS} (generic)" "${version}" simple \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
submenu_indentation="$grub_tab"
list="$list $list2"
if [ -z "$boot_device_id" ]; then
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
fi
# TRANSLATORS: %s is replaced with an OS name
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
is_generic_top=false
continue
fi
linux_entry "${OS}" "${version}" advanced \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
for supported_init in ${SUPPORTED_INITS}; do
init_path="${supported_init#*:}"
if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
linux_entry "${OS}" "${version}" "init-${supported_init%%:*}" \
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}"
fi
done
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
linux_entry "${OS}" "${version}" recovery \
"${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}"
fi
list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
done
# If at least one kernel was found, then we need to
# add a closing '}' for the submenu command.
if [ x"$is_top_level" != xtrue ]; then
echo '}'
fi
echo "$title_correction_code"
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub2 of
sdc1 into the MBR of sdc.
Grub-efi would not be selected by default because no ESP detected.
Additional repair would be performed: unhide-bootmenu-10s
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your BIOS boot on sdc (ATA CT480BX500SSD1) disk!
Merci d'avance pour votre aide.
Dernière modification par MorisGoudin26 (Le 11/02/2022, à 10:22)
Hors ligne
#2 Le 06/02/2022, à 00:57
- hibou7
Re : boot lent sur un ssd [RESOLU] et soucis de reboot.
Salut MorisGoudin26
Au premier redémarrage, pour tester si tout va bien, miracle, le temps de chargement du système est divisé par 10 (environ 8 secondes)
Ça, c'est l'effet SSD.
Ta machine semble avoir un Bios UEFI. Pourtant, d'aprés ton boot-info, tu n'a pas fait usage de cette option. À ta place, je ferais en double-boot en utilisant l'uefi.
Pour la question du reboot, je la placerais sur un autre fil. Les deux problèmes ne semblent pas liés, et si on essaye de résoudre les deux en parallèle, ça risque de mettre un certain désordre dans le fil de discussion.
Dernière modification par hibou7 (Le 06/02/2022, à 01:00)
Xubuntu 24.04 sur HP ENVY TS Sleekbook 4 | CPU: Intel Core i5-3337U | RAM: 8 Gio
Débuter en Console
Si GNU/Linux ne répond plus, le redémarrer proprement avec la combinaison de touches:
Alt + SysRq + REISUB (Retourne en Islande sur un bateau).
Hors ligne
#3 Le 11/02/2022, à 10:17
- MorisGoudin26
Re : boot lent sur un ssd [RESOLU] et soucis de reboot.
Salur Hibou7 et merci pour ta réponse.
En effet, je n'ai pas activé l'UEFI. En fait, Je n'arrivais pas à démarrer l'installation de Windows en mode UEFI. En choisissant l'option sans UEFI, l'installation s'est déroulée sans problème. Je crois comprendre que c'est parce que j'ai installé windows après ubuntu et pas l'inverse...
Pour le souci de lenteur de boot, le problème s'est résolu tout seul: J'ai simplement lancé une fois le boot depuis le menu de démarrage du bios en choisissant mon SSD dans ma liste de disque dur. Et là re miracle, démarrage en 8 secondes. Depuis, plus de souci, tout fonctionne!
Toujours des soucis au reboot, mais je vais créer un autre sujet.
Dernière modification par MorisGoudin26 (Le 11/02/2022, à 10:24)
Hors ligne