当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > LILO及引导软盘各种用法汇总

Unix/Linux
Ubuntu 8.04系统下Opera浏览器安装配置
Ubuntu系统软件安装方式
解决Ubuntu启动时的Routine check检查时间过长
Ubuntu系统下安装网络打印机
Ubuntu系统下zend for linux中文乱码解决
Ubuntu 8.04升级到Ubuntu 8.10
Ubuntu 8.04中使用fast-cgi搭建Apache2+PHP5环境
Ubuntu压缩/解压缩RAR文件的方法
64位ubuntu8.04 安装QQ
ubuntu关闭图形模式
解决ubuntu系统下vimtutor乱码
Ubuntu下安装KDE桌面环境
Ubuntu 8.10 Intrepid Ibex Alpha4 官方正式版下载
ubuntu8.04下源码安装wine 设置中文
ubuntu下设置共享目录
Ubuntu下Flash乱码的解决方法
Ubuntu 8.04中启用FrameBuffer
Ubuntu系统下升级内核的方法
ubuntu系统下播放mp3及中文乱码的解决
ubuntu 8.04.1 LTS 下的cpu温度监控软件lm-sensors

Unix/Linux 中的 LILO及引导软盘各种用法汇总


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


  软件环境: Redhat Linux 5.2
  
  用法:
  
  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