制作grub 0.97启动盘
2012-01-30 14:42
274 查看
前提:
U盘:需要MBR和至少一个分区,假设u盘boot分区为sdb1
操作系统:Centos 6
step1.将grub写入u盘
step2.下载grub4dos到U盘boot分区
下载地址:http://download.gna.org/grub4dos/,复制其中的grub.exe到U盘boot分区的根目录
Reference:
Grub 0.97 Documentation:http://www.gnu.org/software/grub/manual/legacy/
Grub4dos Guide:http://diddy.boot-land.net/grub4dos/Grub4dos.htm
U盘:需要MBR和至少一个分区,假设u盘boot分区为sdb1
操作系统:Centos 6
step1.将grub写入u盘
#写入bootsector [root@localhost ~]# grub-install --root-directory=/mnt/extend/usbdisk /dev/sdb1 Probing devices to guess BIOS drives. This may take a long time. Installation finished. No error reported. This is the contents of the device map /mnt/extend/usbdisk/boot/grub/device.map. Check if this is correct or not. If any of the lines is incorrect, fix it and re-run the script `grub-install'. (fd0) /dev/fd0 (hd0) /dev/sda (hd1) /dev/sdb #写入MBR [root@localhost ~]# grub Probing devices to guess BIOS drives. This may take a long time. GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> root=(hd1,0) root=(hd1,0) Filesystem type is fat, partition type 0x83 grub> setup (hd1) setup (hd1) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/fat_stage1_5" exists... yes Running "embed /boot/grub/fat_stage1_5 (hd1)"... 25 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd1) (hd1)1+25 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Done.
step2.下载grub4dos到U盘boot分区
下载地址:http://download.gna.org/grub4dos/,复制其中的grub.exe到U盘boot分区的根目录
Reference:
Grub 0.97 Documentation:http://www.gnu.org/software/grub/manual/legacy/
Grub4dos Guide:http://diddy.boot-land.net/grub4dos/Grub4dos.htm
相关文章推荐
- 用u盘制作grub启动盘[来源不详]
- 使用UltraISO制作U盘CentOS启动盘及安装grub修改
- 用U盘制作启动盘来引导linux,修复grub
- 在windows下制作Ubuntu的USB启动盘和Grub的修复
- 操作系统课程记录(2)————制作grub启动盘(1)
- 操作系统课程记录(2)——制作grub启动盘(2)
- arm335x 制作启动盘
- 制作一个USB 多启动盘(MBR)
- 制作grub磁盘流程
- grub.conf的splashimage图片制作过程
- 如何在Mac下使用TF/SD 卡制作Exynos 4412 u-boot启动盘
- 丢失grub的安装和修复 mbr 以及制作U盘安装grub
- rhel6启动盘制作
- linux下制作启动盘
- grub 2.0 g2ldr制作
- 【Tensorflow】 第一节 制作 Ubuntu16.04LTS 系统启动盘
- 软件魔方制作系统启动盘并安装win8系统
- SD卡启动盘制作软件
- USB启动盘制作详解 (一) ISOTOUSB软件
- 制作可用grub引导Linux系统的磁盘映像文件 二