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
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"
# 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$
# 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>
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)
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の設定画面で表示・管理されるブートマネージャーの一覧です。