您的位置:首页 > 运维架构 > Linux

制作包含windows和linux的引导U盘 & linux service boot sequence

2011-09-17 16:04 405 查看
今天学习用grub4dos制作U盘启动盘,启动包括linux、windows、MSDOS、内核模块的Linux等,可以看下我的menu.lst内容就知道了,学习过的文件和样例都在附件

下图是U盘的内容:





有兴趣的朋友可以看下我的附件,里面会有你想要的文档。

本来想写得详细点,太懒了,呵呵

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

[ OK ]

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

[ OK ]

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.

[ OK ]

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: 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: syntax error: unexpected end of file

/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

/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 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

[ OK ]

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 ]

有空再补充一些
本文出自 “可韵之家-心梦无影” 博客,请务必保留此出处http://heliy.blog.51cto.com/434250/667188
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: