기본 14.04 / etc / default / grub 파일 내용은 무엇입니까?


9

나는 이 사람이 실수로 내 /etc/default/grub파일을 깨뜨 렸지만 구성 스크립트 >대신 대신 사용하여 파일을 만들었습니다 >>. 제공된 답변은 14.04 데스크탑 기본 grub파일 에서 기억하는 것과는 다르게 보입니다 ... 무엇이 포함되어 있습니까?

물고기에게 가르치기 ... 단지 14.04 재설치를하지 않고 스스로 답을 찾는 데 사용할 수있는 자원 / 방법이 있습니까?


1
다시 설치 14.04가 너무 큽니다. grub을 다시 설치하는 것이 더 쉬울 것입니다.)
Rinzwind

1
향후 수정을하려면 /etc/default/grub먼저 다음과 같은 방법으로 백업하십시오 sudo cp /etc/default/grub /etc/default/grub-backup. 이는 향후에 문제가 발생하면 복구하기가 더 쉽다는 것을 의미합니다. 대부분의 구성 파일을 /etc다른 곳 에서 사용할 수 있습니다 .
Wilf

답변:


10

" 물고기를 가르치는 중 ... " 이라는 질문에 대한 답은 여전히 ​​있습니다 :

... 단지 확인하기 위해 14.04 재설치를 수행하지 않고도 스스로 답을 찾을 수 있습니까?

나는에 대한 검색 한 /etc/default/grubhttp://packages.ubuntu.com/#search_contents를 :

검색 결과가 없습니다

첫 번째 /etc를 제거 했으므로 두 번째 소스 패키지 이름 검색이 필요 /default/grub합니다. 결과는 다음과 같습니다.

/usr/share/grub/default/grub grub2-common

이 파일이 여전히 우분투 컴퓨터에 있습니까?

$ sudo ls /usr/share/grub/default/grub
/usr/share/grub/default/grub

또는 예를 들면 다음과 같습니다.

$ sudo [ -f /usr/share/grub/default/grub ] && echo Found || echo Not\ found
Found

사실, 거기에 있습니다.

그리고 그 내용은 무엇입니까?

$ sudo cat /usr/share/grub/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"

Rinzwind의 답변 출력과 비교할 때 한 가지 분명한 다른 줄이 있습니다 .

#GRUB_HIDDEN_TIMEOUT=0

4

여기 있습니다 :

# 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"
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.