========================================== 우분투 /boot/grub/grub .conf文件=========================================
#
# 이 파일을 편집하지 마세요
#
# 이 파일은 /etc/grub.d의 템플릿
#과 /etc/default/grub
#
### BEGIN /etc/grub.d의 설정을 사용하여 grub-mkconfig에 의해 자동으로 생성됩니다. d/00_header ###
if [ -s $prefix/grubenv ]; then
have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set save_entry="${prev_saved_entry}"
save_env save_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once }" ]; then
saved_entry="${chosen}"
save_env save_entry
fi
}
function Recordfail {
set Recordfail=1
if [ -n "${have_grubenv}" ]; 그런 다음 if [ -z "${boot_once}" ]; 그런 다음 save_env 기록 실패; fi; fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_ci rrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
글꼴=유니코드
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; 그런 다음
검색 --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
timeout=30
else
설정 if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# timeout_style 기능이
# 사용할 수 없는 경우를 대비한 숨겨진 시간 초과 코드.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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
export linux_gfx_mode
메뉴 항목 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
gfxmode $linux_ gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
linux /boot/vmlinuz-4.4.0-72-generic 루트= UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt Priority=tical locale=en_US Quiet
initrd /boot/initrd.img-4.4.0-72-generic
}
하위 메뉴 '고급 옵션 Ubuntu' $menuentry_id_option 'gnulinux-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
menuentry 'Ubuntu, Linux 4.4.0-72-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-72-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-72-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-72-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 locale=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-72-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-72-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-72-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-72-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-72-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-72-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-66-generic' --class ubuntu --class gnu-linux --class gnu -class os $ menuentry_id_option 'gnulinux-4.4.0-66-Generic-Advanced-87F833A-B6DC-49F7-89F9-EF6A91EB756B 설정 root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-66-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-66-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 로케일=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-66-generic
}
메뉴 항목 'Ubuntu, with Linux 4.4.0-66-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-66-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-66-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-66-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '로드 초기 램디스크를 사용 중입니다. ..'
initrd /boot/initrd.img-4.4.0-66-generic
}
메뉴 항목 'Ubuntu, with Linux 4.4.0-64-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-64-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-64-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-64-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선 순위=중요 로케일=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-64-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-64-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-64-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-64-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-64-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-64-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-59-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-59-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_ 힌트 = xy]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-59-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-59-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 locale=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-59-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-59-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-59-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-59-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-59-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-59-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-57-generic' --class ubuntu --class gnu-linux --class gnu -class os $ menuentry_id_option 'gnulinux-4.4.0-57-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b 설정 root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-57-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-57-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 locale=en_US Quiet
echo '초기 로드 중 램디스크 .. .'
initrd /boot/initrd.img-4.4.0-57-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-57-generic(복구 모드)' --class ubuntu --class gnu-linux - -class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-57-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정= 'hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-57-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-57-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-57-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu -class os $ menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b 설정 root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-53-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 locale=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-53-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-53-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-53-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-53-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-53-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-45-generic' --class ubuntu --class gnu-linux --class gnu -class os $ menuentry_id_option 'gnulinux-4.4.0-45-Generic-Advanced-87F833A-B6DC-49F7-89F9-EF6A91EB756B 설정 root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-45-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-45-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 locale=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-45-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-45-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-45-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-45-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-45-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '로드 초기 램디스크를 사용 중입니다. ..'
initrd /boot/initrd.img-4.4.0-45-generic
}
메뉴 항목 'Ubuntu, with Linux 4.4.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-42-generic-advanced-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-42-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-42-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro find_preseed=/preseed.cfg auto noprompt 우선순위=중요 로케일=en_US Quiet
echo '초기 램디스크를 로드하는 중입니다. ..'
initrd /boot/initrd.img-4.4.0-42-generic
}
메뉴 항목 'Ubuntu, Linux 4.4.0-42-generic(복구 모드)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-42-generic-recovery-87f8333a-b6dc-49f7-89f9-ef6a91eb756b' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
루트 설정 ='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
echo 'Linux 4.4.0-42-generic 로드 중...'
linux /boot/vmlinuz-4.4.0-42-generic root=UUID=87f8333a-b6dc-49f7-89f9-ef6a91eb756b ro 복구 nomodeset find_preseed=/preseed.cfg 자동 noprompt 우선순위=중요 locale=en_US
echo '초기 램디스크 로드 중 ...'
initrd /boot/initrd.img-4.4.0-42-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/ grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
메뉴 항목 '메모리 테스트(memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ] ; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
k netbsd /boot/memtest86+.elf
}
메뉴 항목 '메모리 테스트( memtest86+, 직렬 콘솔 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 87f8333a-b6dc-49f7 -89f9-ef6a91eb756b
else
search --no-floppy --fs-uuid --set=root 87f8333a-b6dc-49f7-89f9-ef6a91eb756b
fi
linux 16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober # ##
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub. d/40_custom ###
# 이 파일은 사용자 정의 메뉴 항목을 추가하는 쉬운 방법을 제공합니다. 이 댓글 뒤에 추가하고 싶은
# 메뉴 항목을 입력하기만 하면 됩니다.
# 위의 'exec tail' 줄을 변경하지 않도록 주의하세요.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; 그런 다음
소스 ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
소스 $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
================== ================================================= ========================
default=数字:默认启动的操work系统,数字0表示第一个标题,1表示第two个,以此类推;
timeout=数字: 一般选项界면 발행에 맞는 时间,单位秒;区,格式为(hdx,y),其中x表示第x个磁盘,y表示第y个分区,如root(hd0,1);
initrd 文件:designated位置必须는 루트에서 고정된 磁盘之下;
=========================================== ==============================================
실행 level
Linux의 运行层级(실행 수준)共7个,
0:关机;
1:单人模式;
2/3/4/5:因不同的发行商而异;Feroda:2 -->缺少part网络功能的文字界模式,3-->完整功能的文字界模式,4-->保留,可自定义;5-->完整功能的图形界模式;
6:중요한 새로운 버전;
========================================== ================================================= =========
过程解析
BIOS--->stage1--->stage1.5--->stage2--->vmlinuxz--->initrd--->读取/ etc/event.d/rc-default------정정/etc/inittab>启动runlevel2------|----》启动画면
ㅋㅋㅋ ____정/etc/inittab(설정)>gt;根据/etc/inittab정의 실행 수준 실행 수준 进行启动---|================= ================================================= ==================위 내용은 ubuntu_linux /boot/grub/grub.conf 분석의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!