LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 874|回复: 3

修复mbr

[复制链接]
发表于 2010-10-9 22:53:31 | 显示全部楼层 |阅读模式
做个标记,免得忘记了。
用livecd启动
sudo apt-get install lilo
sudo lilo -M  /dev/sdX mbr
发表于 2010-10-10 09:36:11 | 显示全部楼层
ms-sys 也挺好用的

http://forum.ubuntu.org.cn/viewtopic.php?t=189240 刚GOOGLE到这个贴子有讨论到
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-10 21:14:28 | 显示全部楼层
Post by axlrose;2114808
ms-sys 也挺好用的

http://forum.ubuntu.org.cn/viewtopic.php?t=189240 刚GOOGLE到这个贴子有讨论到


ms-sys目前已经从源里面去掉了。想用得话,需要自己编译。比较淘力气的。用livecd就需要比较简单易用的方法。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-10 21:40:06 | 显示全部楼层
How to Install ubuntu by livecd with out a cdrom.

method 1:  Create Bootable USB
Here is a way to create a bootable USB flash drive manually. The advantage is you don't have to empty your USB drive as long as you have enough space for the files. It also allows multi boot, so you can, for example, have your USB drive holding both 32bit and 64bit versions of Ubuntu and other Boot CD tools at the same time.
In order to do so you need :
Bootable USB flash drive ( NTFS / FAT32 / FAT 16 ), Disk with MBR, you can do this with gparted in linux or HP format in Win, fdisk ....etc
Ubuntu ISO of your choice
Tools to extract files in the ISO ( ISO Mount, WinZIP, WinRAR, 7Zip, etc....)
Grub4Dos
Grub4DOS' Tutorial
Grub4DOS 0.4.4 for WIN9x/DOS/Linux(Download Here)
Grub4DOS GUI for WINXP/Vista/7
First you need to install grub on to the USB's MBR. Follow the link to the Grub4DOS Wiki: Simple example:
./bootlace /dev/sdx
For more details, visit: http://grub4dos.sourceforge.net/wiki/index.php/Installation
go to *continue.

method 2: Use exist Windows to install a Ubuntu.
unzip the grub4dos, copy grldr to c:\
edit c:\boot.ini add 1 line as "c:\grldr="Booting with grub4dos"
to to *continue, extracting  files and generate C:\menu.lst.

*Continue:
Next, you open up the ISO file and extract the files in casper directory. The size (and possibly manifest) are needed if you want to install from the USB drive otherwise the install will error out.

total 701060
-rwxr-xr-x 1 adrian adrian     38784 2010-07-27 16:15 filesystem.manifest
-rwxr-xr-x 1 adrian adrian        10 2010-07-27 16:15 filesystem.size
-rwxrwxrwx 2 adrian adrian 704487424 2010-04-29 05:38 filesystem.squashfs*
-rwxrwxrwx 1 adrian adrian   9365872 2010-04-29 05:34 initrd.lz*
-rwxrwxrwx 1 adrian adrian   4029792 2010-04-16 06:01 vmlinuz*
/media/Fujitsu 60GB USB/bootimg/ubuntu.10.4.x86$
Copy grldr to the root of the drive.

drwx------ 1 adrian adrian   4096 2010-05-05 16:49 bootimg/
-rwxrwxrwx 1 adrian adrian 220049 2009-09-24 17:30 grldr*
-rwxrwxrwx 1 adrian adrian   2760 2010-05-04 23:08 menu.lst*
/media/Fujitsu 60GB USB$

Now create menu.lst at the root of USB. Example of menu.lst:
default /default
#####################
title Ubuntu  LiveCD
find --set-root /casper/initrd.lz
kernel /casper/vmlinuz boot=casper live-media-path=/casper ignore_uuid
initrd /casper/initrd.lz
boot
Make sure the path match where the files you copy to.

Now, reboot.

From:

https://help.ubuntu.com/community/Installation/FromUSBStick
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表