如何将Ubuntu添加到Windows XP boot.ini文件中?
可能重复:
是否可以使用Windows引导程序启动Ubuntu?
我已经在Windows的分区独立分区上安装了Ubuntu 12.04 Alpha 2,并且想知道如何将操作系统添加到boot.ini,以便我可以启动到Ubuntu。
Windows XP? 好…
自NT4早期以来,这一直在发挥作用:
- 启动你的Linux
- 将Windows启动驱动器R / W挂载到/ media / fat
- 执行
dd if=/dev/sdxY of=/media/fat/linux.bin bs=512 count=1
root,用你的linux分区替换sdxY
- 编辑你的boot.ini看起来像我的:
[引导加载程序] 超时= 30 默认=多(0)磁盘(0)RDISK(0)分区(5)\ WINDOWS [操作系统] multi(0)disk(0)rdisk(0)partition(5)\ WINDOWS =“Microsoft Windows XP Professional”/ NOEXECUTE = OPTIN / FASTDETECT multi(0)disk(0)rdisk(1)partition(1)\ WINDOWS =“Microsoft Windows XP Professional(安全模式)”/ BASEVIDEO / SOS c:\ CMDCONS \ BOOTSECT.DAT =“Microsoft Windows XP恢复控制台”/ CMDCONS c:\ linux.bin =“Grub(loader)”
您的结果可能会有所不同:Grub2可能需要降级到Grub 1.x才能生效。
您不要将Ubuntu添加到boot.ini。 您将一个Windows分区添加到grub。
如果必须这样做,这里将描述使用bitlocker和TPM的实现。
我使用EasyBCD (因为我在使用fakeraid的EFI主板上安装GRUB时遇到问题)。 页面底部有一个非商业用途的免费版本。
据我所知,我设置了Windows启动加载程序来链式加载grub。 EasyBCD中有一种自动方法,但它对我不起作用。
相反,我使用以下menu.lst启动它到旧版GRUB:
# NeoSmart NeoGrub Bootloader Configuration File # # This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst # Please see the EasyBCD Documentation for information on how to create/modify entries: # http://neosmart.net/wiki/display/EBCD/ # Boot automatically after 0 secs. timeout 0 # By default, boot the first entry. default 0 title (hd0,4) root (hd0,4) kernel /vmlinuz root=UUID=5827fd40-9b04-4f8a-bb0f-df1612670d89 ro initrd /initrd.img
注意:(hd0,4)表示我的根分区位于/ dev / sda5上。 UUID = X是此卷的uuid。 你可以用sudo blkid
找到这个。