linux下制作启动引导盘
条件:准备一个linux,
windows 2000 两个系统
制作linux引导盘步骤如下:
add hardware wizatd——>选择空白磁盘:Crrate blank floppy image
启动原版linux系统进入内部进行修改:
mkbootdisk --device /dev/fd0 2.3.20-8
vi /etc/fstab——>对原:/dev/sda3(修改为:/dev/sdb3)保存退出:quit
软盘设置:先挂上软驱:cd /mnt/floppy——》vi syslinux.cfg进入内修改root=/dev/sda2修改为root=/dev/sdb2
将linux系统的硬盘挂载到windows 2000 系统下,利用linux的软驱引导盘启动,
在进入界面输入:linux /dev/sdb3
进入内部输入
cd /boot/grub——》vi menu.lst进入内部进行修改
具体界面如下
device.map ffs_stage1_5 menu.lst splash.xpm.gz vstafs_stage1_5
e2fs_stage1_5 grub.conf minix_stage1_5 stage1 xfs_stage1_5
fat_stage1_5 jfs_stage1_5 reiserfs_stage1_5 stage2
[root@redhatwuling grub]# vi menu.lst
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz //原来splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8smp)
root (hd1,0) //root (hd0,0)
kernel /vmlinuz-2.4.20-8smp ro root=LABEL=/
initrd /initrd-2.4.20-8smp.img
title Red Hat Linux-up (2.4.20-8)
root (hd1,0) //root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows 2000
test rootnoverify (hd0,0) //(hd0,0)代表的是windows的启动盘符第一硬盘,第一分区
chainloader +1
makeactive
boot