今天學習用grub4dos制作U盤啟動盤,啟動包括linux、windows、MSDOS、核心子產品的Linux等,可以看下我的menu.lst内容就知道了,學習過的檔案和樣例都在附件
下圖是U盤的内容:
<a href="http://blog.51cto.com/attachment/201110/084109904.jpg" target="_blank"></a>
有興趣的朋友可以看下我的附件,裡面會有你想要的文檔。
本來想寫得詳細點,太懶了,呵呵
windows的啟動引導:
1、 不修改MBR
NT loader-->ntldr -->boot.ini --> grldr -->menu.lst
一般用作“一鍵還原”,也可啟動linux
2、 修改MBR
用bootice \bootlace\bootsect等工具寫入MBR。
grub stage2 -->grldr -- > menu.lst --> ntldr/bootmgr -->boot.ini/BCD
啟動的東西就多了,有興趣看附件,裡面有未加工的資料。
這是我的centos x86_64 和win 8 的linux grub啟動conf檔案(沒有LV
M)
title CentOSx8664 (2.6.32-71.el6.x86_64)
root (hd0,7)
kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a6f7d427-347f-4b46-90d7-483d8ab556b6 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=zh_CN.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title win8
rootnoverify (hd0,0)
chainloader +1
這是的筆記本的OEL6和xp(oel6位LVM)
[fukeyun@heliy ~]$cat /boot/grub/grub.conf
# recovery boot partition in 2011/09//13
default=0
timeout=15
#splashimage=/boot/grub/heliy.xpm.gz
hidddenmenu
title Oracle enterprise linux 6.0
root(hd0,2)
kernel /vmlinuz-2.6.32-71.el6.i686 ro root=/dev/mapper/vg_heliy-lv_root rhgb quiet
initrd /initramfs-2.6.32-71.el6.i686.img
title For windows xp sp3cn
rootnoverify (hd0,0)
chainloader +1
=============================================
以下是Oracle enterprise linux 的啟動服務過程清單,僅供參考:
linux 的啟動log檔案
Welcome to Oracle Linux Server
Starting udev: [ OK ]
Setting hostname heliy.cn: [ OK ]
Setting up Logical Volume Management: 2 logical volume(s) in volume group "vg_heliy" now active
[ OK ]
Checking filesystems
/dev/mapper/vg_heliy-lv_root: clean, 137088/811008 files, 1036041/3239936 blocks
sdb3boot: clean, 32/126976 files, 44902/506044 blocks
Remounting root filesystem in read-write mode: [ OK ]
Mounting local filesystems: [ OK ]
Enabling local filesystem quotas: [ OK ]
Enabling /etc/fstab swaps: [ OK ]
Entering non-interactive startup
Applying Intel CPU microcode update: Calling the system activity data collector (sadc):
Starting monitoring for VG vg_heliy: 2 logical volume(s) in volume group "vg_heliy" monitored
ip6tables: Applying firewall rules: [ OK ]
iptables: Applying firewall rules: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface Auto_eth0:
Determining IP information for eth0... done.
Bringing up interface eth0: /etc/sysconfig/network-scripts/ifcfg-eth0: line 10: unexpected EOF while looking for matching `"'
/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: syntax error: unexpected end of file
/etc/sysconfig/network-scripts/ifcfg-eth0: line 10: unexpected EOF while looking for matching `"'
/etc/sysconfig/network-scripts/ifcfg-eth0: line 11: warning: syntax errors in . or eval will cause future versions of the shell to abort as Posix requires
./ifcfg-eth0: line 10: unexpected EOF while looking for matching `"'
./ifcfg-eth0: line 11: syntax error: unexpected end of file
Starting auditd: [ OK ]
Starting system logger: [ OK ]
Starting irqbalance: [ OK ]
Starting rpcbind: [ OK ]
Starting mdmonitor: [ OK ]
Starting system message bus: [ OK ]
Setting network parameters... [ OK ]
Starting NetworkManager daemon: [ OK ]
Starting Avahi daemon... [ OK ]
Starting NFS statd: [ OK ]
Starting RPC idmapd: [ OK ]
Mounting other filesystems:
[ OK ]
Starting acpi daemon: [ OK ]
Starting HAL daemon: [ OK ]
Retrigger failed udev events [ OK ]
Loading autofs4: [ OK ]
Starting automount: [ OK ]
Starting sshd: [ OK ]
Starting xinetd: [ OK ]
Starting postfix: [ OK ]
Starting abrt daemon: [ OK ]
Starting console mouse services: [ OK ]
Starting crond: [ OK ]
Starting atd: [ OK ]
有空再補充一些
本文轉自fuhaixiong 51CTO部落格,原文連結:http://blog.51cto.com/heliy/667188,如需轉載請自行聯系原作者