/boot/grub2/grub.cfg

[root@tom kernels]# ls -l /boot
total 22805
-rw-r--r--. 1 root root   116892 May  8  2012 config-3.3.4-5.fc17.i686.PAE
drwxr-xr-x. 2 root root     1024 Nov 20 05:28 grub
drwxr-xr-x. 6 root root     1024 Nov 20 07:11 grub2
-rw-r--r--. 1 root root 16600935 Nov 20 10:46 initramfs-3.3.4-5.fc17.i686.PAE.img
drwx------. 2 root root    12288 Nov 20 02:39 lost+found
-rw-------. 1 root root  1914110 May  8  2012 System.map-3.3.4-5.fc17.i686.PAE
-rwxr-xr-x. 1 root root  4696896 May  8  2012 vmlinuz-3.3.4-5.fc17.i686.PAE
[root@tom kernels]# ls -l /boot/grub
total 67
-rw-r--r--. 1 root root 67229 Feb 15  2012 splash.xpm.gz
[root@tom kernels]# ls -l /boot/grub2
total 26
-rw-r--r--. 1 root root   64 Nov 20 07:11 device.map
drwxr-xr-x. 2 root root 1024 Nov 20 07:11 fonts
-rw-------. 1 root root 5481 Nov 20 07:11 grub.cfg
-rw-r--r--. 1 root root 1024 Nov 20 07:11 grubenv
drwxr-xr-x. 2 root root 8192 Nov 20 07:11 i386-pc
drwxr-xr-x. 2 root root 1024 Nov 20 07:11 locale
drwxr-xr-x. 4 root root 1024 Nov 20 07:11 themes
[root@tom kernels]# gedit /boot/grub2/grub.cfg


(gedit:1934): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.0GVVUW': No such file or directory


(gedit:1934): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory


(gedit:1934): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.5J2QUW': No such file or directory


(gedit:1934): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
[root@tom kernels]# uname -r
3.3.4-5.fc17.i686.PAE
[root@tom kernels]# uname -a
Linux tom 3.3.4-5.fc17.i686.PAE #1 SMP Mon May 7 17:37:39 UTC 2012 i686 i686 i386 GNU/Linux
[root@tom kernels]#


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"

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 saved_entry="${prev_saved_entry}"
  save_env saved_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 saved_entry
  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_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod lvm
insmod ext2
set root='lvm/vg_tom-lv_root'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvm/vg_tom-lv_root'  6decd2a4-412e-4666-847e-b53e38968fe1
else
  search --no-floppy --fs-uuid --set=root 6decd2a4-412e-4666-847e-b53e38968fe1
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
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6decd2a4-412e-4666-847e-b53e38968fe1' {
	load_video
	set gfxpayload=keep
	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 --hint='hd0,msdos1'  560d8967-7b66-4419-bb9f-975f7e15a3d6
	else
	  search --no-floppy --fs-uuid --set=root 560d8967-7b66-4419-bb9f-975f7e15a3d6
	fi
	echo	'Loading Linux 3.3.4-5.fc17.i686.PAE ...'
	linux	/vmlinuz-3.3.4-5.fc17.i686.PAE root=/dev/mapper/vg_tom-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_tom/lv_root SYSFONT=True  KEYTABLE=us rd.luks=0 rd.lvm.lv=vg_tom/lv_swap LANG=en_US.UTF-8 rhgb quiet 
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-3.3.4-5.fc17.i686.PAE.img
}
submenu 'Advanced options for Fedora Linux' $menuentry_id_option 'gnulinux-advanced-6decd2a4-412e-4666-847e-b53e38968fe1' {
	menuentry 'Fedora Linux, with Linux 3.3.4-5.fc17.i686.PAE' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.i686.PAE-advanced-6decd2a4-412e-4666-847e-b53e38968fe1' {
		load_video
		set gfxpayload=keep
		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 --hint='hd0,msdos1'  560d8967-7b66-4419-bb9f-975f7e15a3d6
		else
		  search --no-floppy --fs-uuid --set=root 560d8967-7b66-4419-bb9f-975f7e15a3d6
		fi
		echo	'Loading Linux 3.3.4-5.fc17.i686.PAE ...'
		linux	/vmlinuz-3.3.4-5.fc17.i686.PAE root=/dev/mapper/vg_tom-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_tom/lv_root SYSFONT=True  KEYTABLE=us rd.luks=0 rd.lvm.lv=vg_tom/lv_swap LANG=en_US.UTF-8 rhgb quiet 
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.3.4-5.fc17.i686.PAE.img
	}
	menuentry 'Fedora Linux, with Linux 3.3.4-5.fc17.i686.PAE (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.3.4-5.fc17.i686.PAE-recovery-6decd2a4-412e-4666-847e-b53e38968fe1' {
		load_video
		set gfxpayload=keep
		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 --hint='hd0,msdos1'  560d8967-7b66-4419-bb9f-975f7e15a3d6
		else
		  search --no-floppy --fs-uuid --set=root 560d8967-7b66-4419-bb9f-975f7e15a3d6
		fi
		echo	'Loading Linux 3.3.4-5.fc17.i686.PAE ...'
		linux	/vmlinuz-3.3.4-5.fc17.i686.PAE root=/dev/mapper/vg_tom-lv_root ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_tom/lv_root SYSFONT=True  KEYTABLE=us rd.luks=0 rd.lvm.lv=vg_tom/lv_swap LANG=en_US.UTF-8 rhgb quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initramfs-3.3.4-5.fc17.i686.PAE.img
	}
}
if [ "x$default" = 'Fedora Linux, with Linux 3.3.4-5.fc17.i686.PAE' ]; then default='Advanced options for Fedora Linux>Fedora Linux, with Linux 3.3.4-5.fc17.i686.PAE'; fi;
### 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_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值