Red Hat Enterprise Linux 6: /boot/grub/menu.lst または /boot/grub/grub.conf?

Red Hat Enterprise Linux 6: /boot/grub/menu.lst または /boot/grub/grub.conf?

新しいScientific Linux 6システムを使用していますが、CentOS 6、RHEL6、またはすべてのRHEL6派生システムにも同じ問題が適用されます。

私はそれが/boot/grub1つのファイルmenu.lstと1つのgrub.confファイルを含んでいるのを見ます。私が使用する必要がある/etc/grub.confシンボリックリンクもあります。/boot/grub/grub.confgrub.conf

# cd /boot/grub
# ls -ld grub.conf menu.lst
-rw-------  1 root root 845 Aug 29 13:00 grub.conf
-rw-------. 1 root root 847 Aug 29 13:00 menu.lst
# ls -l /etc/grub.conf
lrwxrwxrwx. 1 root root 22 Aug 29 13:00 /etc/grub.conf -> ../boot/grub/grub.conf

これらのファイルはRPMでは提供されていないため、この変更を説明する変更ログを見つけるのは困難です。

# rpm -qa --whatprovides /etc/grub.conf /boot/grub/menu.lst /boot/grub/grub.conf 
no package triggers /etc/grub.conf
no package triggers /boot/grub/menu.lst
no package triggers /boot/grub/grub.conf

どのファイルを使うべきですか?なぜファイルは2つですか?信頼できる文書を教えてもらえますか?

修正する興味深いことに、RHEL5.6/5.7システムでは一般的にmenu.lst./grub.conf/etc/grub.conf

# ls -l /boot/grub/menu.lst /boot/grub/grub.conf /etc/grub.conf
-rw------- 1 root root 1036 Aug  2 11:34 /boot/grub/grub.conf
lrwxrwxrwx 1 root root   11 Apr  5 00:42 /boot/grub/menu.lst -> ./grub.conf
lrwxrwxrwx 1 root root 22 Aug  3  2009 /etc/grub.conf -> ../boot/grub/grub.conf

ただし、このシンボリックリンクはRHEL6にはもう存在しません。文書化された理由が見つかりません。

ベストアンサー1

/boot/grub/grub.conf我々は、そしてシンボリックリンクを使用する/boot/grub/menu.lst必要がありますgrub.conf

このファイルは、インストール中にanacondaによって最初に生成されます。がログインしました/var/log/anaconda.program.log。このアナコンダの実行では、代わりにgrub.conf使用するのがわかりますmenu.lst

13:00:23,089 INFO    : Running... ['/sbin/grub-install', '--just-copy']
13:00:23,134 INFO    : Running... ['/sbin/grub', '--batch', '--no-floppy', '--device-map=/boot/grub/device.map']
13:00:23,346 INFO    : 
13:00:23,347 INFO    : 
13:00:23,347 INFO    :     GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
13:00:23,347 INFO    : 
13:00:23,348 INFO    :  [ Minimal BASH-like line editing is supported.  For the first word, TAB
13:00:23,348 INFO    :    lists possible command completions.  Anywhere else TAB lists the possible
13:00:23,348 INFO    :    completions of a device/filename.]
13:00:23,348 INFO    : grub> root (hd0,0)
13:00:23,348 INFO    :  Filesystem type is ext2fs, partition type 0x83
13:00:23,348 INFO    : grub> install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 p (hd0,0)/boot/grub/grub.conf
13:00:23,348 INFO    : grub> 

おすすめ記事