制作包含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,如需转载请自行联系原作者





相关文章
|
2月前
|
Linux 数据安全/隐私保护 Windows
Linux共享Windows目录
Linux共享Windows目录
|
1月前
|
网络协议 Ubuntu Linux
用Qemu模拟vexpress-a9 (三)--- 实现用u-boot引导Linux内核
用Qemu模拟vexpress-a9 (三)--- 实现用u-boot引导Linux内核
|
2月前
|
Unix Linux Ruby
在windows和linux上高效快捷地发布Dash应用
在windows和linux上高效快捷地发布Dash应用
|
2月前
|
Ubuntu Linux 虚拟化
安装Windows Linux 子系统的方法:适用于windows 11 版本
本文提供了在Windows 11系统上安装Linux子系统(WSL)的详细步骤,包括启用子系统和虚拟化功能、从Microsoft Store安装Linux发行版、设置WSL默认版本、安装WSL2补丁,以及完成Ubuntu的首次安装设置。
148 2
|
27天前
|
Linux 开发者 Python
从Windows到Linux,Python系统调用如何让代码飞翔🚀
【9月更文挑战第10天】在编程领域,跨越不同操作系统的障碍是常见挑战。Python凭借其“编写一次,到处运行”的理念,显著简化了这一过程。通过os、subprocess、shutil等标准库模块,Python提供了统一的接口,自动处理底层差异,使代码在Windows和Linux上无缝运行。例如,`open`函数在不同系统中以相同方式操作文件,而`subprocess`模块则能一致地执行系统命令。此外,第三方库如psutil进一步增强了跨平台能力,使开发者能够轻松编写高效且易维护的代码。借助Python的强大系统调用功能,跨平台编程变得简单高效。
19 0
|
1月前
|
Linux 网络虚拟化 Windows
ccproxy windows上用的代理软件(类似linux系统上的squid)
ccproxy windows上用的代理软件(类似linux系统上的squid)
|
2月前
|
Linux Windows Python
最新 Windows\Linux 后台运行程序注解
本文介绍了在Windows和Linux系统后台运行程序的方法,包括Linux系统中使用nohup命令和ps命令查看进程,以及Windows系统中通过编写bat文件和使用PowerShell启动隐藏窗口的程序,确保即使退出命令行界面程序也继续在后台运行。
|
1月前
|
网络安全 虚拟化 Windows
windows 11安装openSSH server 遇到的"kex_exchange_identification: read: Connection reset"问题
windows 11安装openSSH server 遇到的"kex_exchange_identification: read: Connection reset"问题
|
2月前
|
PHP Windows
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
【Azure App Service for Windows】 PHP应用出现500 : The page cannot be displayed because an internal server error has occurred. 错误
|
2月前
|
开发框架 .NET API
Windows Server 2022 安装IIS 报错 访问临时文件夹 C:\WINDOWS\TEMP\3C 读取/写入权限 错误: 0x80070005
Windows Server 2022 安装IIS 报错 访问临时文件夹 C:\WINDOWS\TEMP\3C 读取/写入权限 错误: 0x80070005
89 0
下一篇
无影云桌面