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

简介:

今天学习用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  ]

有空再补充一些




      本文转自fuhaixiong 51CTO博客,原文链接:http://blog.51cto.com/heliy/667188,如需转载请自行联系原作者





相关文章
|
1月前
|
Linux Shell Windows
通过Linux挂载Windows端NFS服务实现板端Linux传输文件到PC
通过Linux挂载Windows端NFS服务实现板端Linux传输文件到PC
|
11天前
|
SQL 监控 安全
Linux&Windows 日志分析 陇剑杯 CTF
Linux&Windows 日志分析 陇剑杯 CTF
|
14天前
|
Linux Windows
Windows、Mac、Linux解决端口被占用的问题
Windows、Mac、Linux解决端口被占用的问题
23 1
|
15天前
|
JavaScript 前端开发 Linux
vue3在Linux下无法正常启动:esbuild-linux-64、cantnot start service :host version “0.13.15“,esbuild EACCESS
vue3在Linux下无法正常启动:esbuild-linux-64、cantnot start service :host version “0.13.15“,esbuild EACCESS
|
22天前
|
安全 Ubuntu Linux
Linux远程访问Windows实现步骤
在Windows上启用远程桌面连接并获取IP地址后,Linux用户需安装SSH客户端( Debian系:`sudo apt-get update; sudo apt-get install openssh-client`,RPM系:`sudo yum install openssh-clients`)。然后使用命令`ssh 用户名@Windows_IP地址`连接,其中`用户名`和`Windows_IP地址`按实际情况填写。
15 4
|
1月前
|
Linux 数据安全/隐私保护 Docker
linux和windows中安装emqx消息服务器
linux和windows中安装emqx消息服务器
41 0
|
Linux
Linux引导过程和GRUB引导器
作为DBA,就像需要深入了解Oracle启动过程一样,懂得Linux系统的引导过程对今后的故障诊断也是很有帮助的。 先看看如下linux引导过程图: 下面是引导过程的基本阶段: 1.  1.系统加载并运行引导加载程序。
830 0