无忧启动论坛

标题: create XP usb boot disk in Vista [打印本页]

作者: teasiu    时间: 2011-1-21 15:13
标题: create XP usb boot disk in Vista
Hi,
My netbook (running on XP) recently encountered "NTLDR is missing" problem. However, since I don't have an external dvd, I need to create a USB boot-up disk to re-install XP. Unfortunately, my other laptop is running Vista.
Is it possible to create a USB boot-up disk using Vista?
Thanks, Erwin

anwser:

Boot into your Ubuntu LiveCD on the offending machine. Once Ubuntu starts up, go to System -> Administration -> Software Sources and enable (by checking it off) the Universal repository.
Now, open a terminal session (Applications -> Accessories -> Terminal) and type the following:
  1. sudo apt-get install ms-sys
复制代码
ms-sys is a program used to write Microsoft compatible boot records. Now you’ll need to figure out what partition is the one hosting your Windows operating system. Back in the command line, type:
  1. sudo fdisk -l
复制代码
That will list the available partitions. You’re looking for a partition that says something like
  1. /dev/sda1 1 9327 74919096 83 NTFS
复制代码
The two important bits are the ‘/dev/sda1‘ which is the partition itself and the ‘NTFS‘ which tells us it’s a Windows formatted partition. So your Windows partition exists on your drive sda and it’s partition 1. The MBR for drive sda (assuming you boot into windows using it’s native boot loader) is what you want to repair. We want to fix the MBR on /dev/sda. To do so, type:
  1. sudo ms-sys -m /dev/sda
复制代码
You’ll want to change the ’sda’ bit if your results from ‘fdisk -l‘ are different. If for instance your windows install is on sdb or hda. Once you do that, reboot the machine, removing the LiveCD from the drive and Windows should come back to you.

这段代码异常珍贵。

[ 本帖最后由 2010teasiu 于 2011-1-21 15:18 编辑 ]
作者: isanbao    时间: 2011-1-21 16:19
被标题吸引进来!
求翻译。
作者: sand_hzb    时间: 2011-1-21 16:57
好像是说用Ubuntu安装盘在LiveCD下修复xp引导而已。不知道那段代码异常珍贵?
作者: xianglang    时间: 2011-1-21 23:51
用得着那么麻烦吗?U盘PE启动之后,什么MBR都可以修复了。而且,这个帖子是文不对题……




欢迎光临 无忧启动论坛 (http://wuyou.net/) Powered by Discuz! X3.3