kledgeb UbuntuやLinuxの最新情報を紹介

Ubuntu Boot Repair その7 - BootInfoサマリの内容(/etc/grub.d/・/etc/default/grub・/etc/mdadm/mdadm.conf・/proc/mdstat・efibootmgr -v)について

12./etc/grub.d/

  各パーティションの「/etc/grub.d/」フォルダー内のファイルの一覧が出力されます。
  このフォルダー内には、GRUB2のブートメニューを構築するスクリプトファイルが入っています。


=================== /etc/grub.d/ :
drwxr-xr-x  2 root root     4096 11月 27 22:27 grub.d
drwxr-xr-x  2 root root     4096 11月 27 22:17 grub.d.bak
合計 68
-rwxr-xr-x 1 root root  7850 10月 24 23:48 00_header
-rwxr-xr-x 1 root root  5949  8月 15 17:26 05_debian_theme
-rwxr-xr-x 1 root root 11479 10月 24 23:48 10_linux
-rwxr-xr-x 1 root root 10258 10月 24 23:48 20_linux_xen
-rwxr-xr-x 1 root root 11531 10月 24 23:48 30_os-prober
-rwxr-xr-x 1 root root  1426 10月 24 23:48 30_uefi-firmware
-rwxr-xr-x 1 root root   214 10月 24 23:48 40_custom
-rwxr-xr-x 1 root root   216 10月 24 23:48 41_custom
-rw-r--r-- 1 root root   483 10月 24 23:48 README

  「/etc/grub.d/」フォルダーがないパーティションでは、これらの情報は出力されません。

13./etc/default/grub

  各パーティションの「/etc/default/grub」ファイルの中身が出力されます。
  「/etc/default/grub」ファイルは、GRUB2の設定ファイルです。

=================== /etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

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

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

  「/etc/default/grub」ファイルがないパーティションでは、これらの情報は出力されません。

14./etc/mdadm/mdadm.conf

  「/etc/mdadm/mdadm.conf」はソフトウェアRAIDを構築する「mdadm」の設定ファイルです。
  各パーティションごとに、このファイルの中身が出力されます。

=================== sda1/etc/mdadm/mdadm.conf :
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
#DEVICE partitions containers

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays

# This file was auto-generated on Wed, 23 Oct 2013 22:23:27 +0900
# by mkconf $Id$

  「/etc/mdadm/mdadm.conf」ファイルがないパーティションでは、これらの情報は出力されません。

15./proc/mdstat

  「/proc/mdstat」は、構築されているRAIDアレイの情報が出力されます。

=================== sda1/proc/mdstat :
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>

16.efibootmgr -v

  UEFI環境で「Boot Repair」を起動した場合、EFI Boot Managerの情報が出力されます。

efibootmgr -v
BootCurrent: 0005
BootOrder: 0005,0001,0000,0002,0003,0004,0006
Boot0000* EFI VMware Virtual SCSI Hard Drive (0.0)      ACPI(a0341d0,0)PCI(10,0)SCSI(0,0)
Boot0001* EFI VMware Virtual SATA CDROM Drive (1.0)     ACPI(a0341d0,0)PCI(11,0)PCI(6,0)03120a00010000000000
Boot0002* EFI Network   ACPI(a0341d0,0)PCI(11,0)PCI(1,0)MAC(000c297dbd79,0)
Boot0003* EFI Network 1 ACPI(a0341d0,0)PCI(11,0)PCI(2,0)MAC(000c297dbd83,1)
Boot0004* EFI Internal Shell (Unsupported option)       MM(b,7efcb000,7f355fff)
Boot0005* ubuntu        HD(1,800,3c800,cb1cfcfb-cae1-4399-8719-8154d47cc396)File(EFIubuntushimx64.efi)
Boot0006* EFI VMware Virtual SCSI Hard Drive (1.0)      ACPI(a0341d0,0)PCI(10,0)SCSI(1,0)

  UEFIの設定画面で表示・管理されるブートマネージャーの一覧です。

  BootCurrent

    現在起動しているOSの起動エントリーの番号です。

  BootOrder

    UEFIのブートマネージャーで起動エントリーが選択される順番です。

  Boot0000 〜 Boot0006

    UEFIのブートマネージャーで管理されている起動エントリーです。 


Boot Repair
スポンサー
コメント
コメントポリシー
コメントをする前に UbuntuのCode of Conduct(CoC/行動規範) を確認し、CoCに沿ったコメントをお願いします。
コメントの使い方は、コメントの使い方を参照してください。
同一カテゴリーの記事
SNS
人気の記事
  • Ubuntu 26.04 その74 - Chromium 系ブラウザーにより、Qt6 で構築されたアプリがクラッシュする現象
    Qt6 で構築されたアプリがクラッシュする現象 Chromium 系ブラウザーにより、Qt6 で構築されたアプリがクラッシュする現象が報告されています。
  • Ubuntu 24.04 その104 - Ubuntu 26.04 LTS へアップグレードするには・アップグレードの注意事項
    Ubuntu 26.04 LTS へアップグレードするには 現在 Ubuntu 24.04 LTS を利用しているユーザーは、Ubuntu 26.04 LTS へアップグレードできます。
  • Ubuntu 24.04 その103 - Ubuntu 26.04 LTS へアップグレード可能に・2年分の変化が一気にやってくる
    Ubuntu 26.04 LTS へアップグレード可能に 2026年9月29日、Ubuntu 24.04 LTS から Ubuntu 26.04 LTS へアップグレード可能になりました。
  • Ubuntu 26.10 その35 - RISC-V 向け Ubuntu Desktop 登場
    RISC-V 向け Ubuntu Desktop 登場 Ubuntu Desktop 26.10 では、RISC-V 向けデスクトップイメージがリリースされます。
  • Ubuntu 26.10 その33 - Ubuntu 26.10 β版がリリースされました・ディスクイメージのダウンロード
    Ubuntu 26.10 β版がリリースされました 2026年10月1日、Ubuntu 26.10 β版 がリリースされました。
  • Ubuntu 26.10 その34 - Ubuntu と Rust に対する取り組み(2026年10月)
    Ubuntu と Rust に対する取り組み 2026年10月1日、Ubuntu と Rust に対する取り組みが以下で紹介されました。
  • Linux その440 - uutils coreutils 0.11.0 でコマンド実行時のエラーメッセージを大幅に改良
    コマンド実行時のエラーメッセージを大幅に改良 uutils coreutils 0.11.0 で、コマンド実行時のエラーメッセージが大幅に改良されました。
  • Ubuntu 26.10 その32 - Snapdragon X2 に対応した Ubuntu 26.10 実験版登場
    Snapdragon X2 に対応した Ubuntu 26.10 実験版登場 2026年9月29日、Snapdragon X2 に対応した Ubuntu 26.10 実験版が登場しました。
  • Ubuntu 26.10 その38 - Ubuntu 26.10 がリリースされました・ディスクイメージのダウンロード
    Ubuntu 26.10 リリース 2026年10月15日、Ubuntu 26.10 がリリースされました。
  • Linux その443 - Devpack for Rust 登場・Rust の開発環境を簡単に構築するツール
    Devpack for Rust 登場 2026年10月5日、Devpack for Rust が登場しました。
記事のピックアップ
オプション