当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > lilo大杂耍

Unix/Linux
Linux 网管 123 --- 第6章. 一般系统管理问题 -3.变更使用者密码
Linux 网管 123 --- 第6章. 一般系统管理问题 -4.关闭删除使用者帐号
Linux 网管 123 --- 第6章. 一般系统管理问题 -5.Linux 密码及 S
Linux 网管 123 --- 第6章. 一般系统管理问题 -6.关闭系统及重新启动
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -1.HTTP
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -2.DNS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -3.使用 TACACS
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -4.使用 Samba
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -5.使用 Netata
Linux 网管 123 --- 第7章. 自订的组态及管理内容 -6.NFS
Linux 网管 123 --- 第13章. 其他的问题 2.哪里可以找到帮助
Linux 网管 123 --- 第13章. 其他的问题 3.附带文件的指示
RedHat 6.2 中文显示与输入的设置
RedHat 6.2 中文 TrueType 字体的使用
Linux 网管 123 --- 第13章. 其他的问题 1.系统损毁
Linux系统中网络配置详解
如何配置linux与win2000/NT 双重引导
kernel hacking简单入门
Linux下如何刻录任何文件系统格式的光盘?
编译内核make dep 是啥意思 ?

Unix/Linux 中的 lilo大杂耍


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 76 ::
收藏到网摘: n/a

 
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