电脑技术学习

lilo大杂耍

dn001
A.;从主引导记录中移走LILO并重存原先的windows;MBR;

1.;c:>;fdisk;/mbr;

2.;#/sbin/lilo;-u;/dev/hda;

3.;#dd;if=/boot/boot.0300;of=/dev/hda;bs=446;count=1;

4.;#cat;/boot/boot.0300;>;/dev/hda;

注意:只有你原先安装windows;95后再安装Linux时,/boot/boot.0300;

才是你原先的windows;95;MBR。;

B.;重存LILO到MBR;

1.;用安装软盘或光盘启动到boot:;

boot:;vmlinuz;root=/dev/hdXY;(如:;hda1;);

启动完成后运行;#/sbin/lilo;

2.;用两张软盘启动后:;

#mount;-t;ext2;/dev/hda1;/mnt;

#ln;-s;/mnt/boot;boot;

#ln;-s;/mnt/etc/lilo.conf;/etc/lilo.conf;

#/mnt/sbin/lilo;

C.;拷贝LILO到软盘;

1.;/sbin/lilo;-b;/dev/fd0;

2.用Redhat;安装盘引导到;boot:;

boot:;vmlinuz;root=/dev/hdXY;(hdXY;为你的根分区);

update;/etc/lilo.conf;

root=/dev/fd0;

boot=/dev/fd0;

再运行:#/sbin/lilo;-v;

D.;制作一张Redhat;Linux;引导盘;

#mkbootdisk;--device;/dev/fd0;2.0.36-3;

E.;拷贝内核至软盘,让软盘单独引导Linux并挂上硬盘上的根文件系统。;

#fdformat;/dev/fd0H1440;

#dd;if=/boot/vmlinuz;of=/dev/fd0;

#rdev;/dev/fd0;/dev/hda1;

标签: