CSDN博客

img hem

lilo--实践篇(FAQ)

发表于2001/6/11 20:15:00  2191人阅读

分类: linux

lilo--实践篇(FAQ)

null joe (左右为难)

返回〗〖转发〗

作者  joe (左右为难)
                      标题  关于lilo-实践篇(FAQ) 
                      时间  Wed Aug 25 16:23:48 1999 
                     ────────────────────────────────────── 
                     ─ 
                     F1 重装win98找不到linux的问题: 
                     一个硬盘是win98与linux双重启动,lilo安装在主引导区,但是当我重装win98后lilo却 
                     不 
                     见了 
                     win98重写MBR,将lilo引导给覆盖了。 
                     F2 如何去掉mbr的LILO 
                     1 in linux: lilo -u 
                     2 in 95 fdisk /mbr 
                     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才是你原先的wi 
                     ndo 
                     ws 95 MBR。 
                     F3 重存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 
                     F4 制作一张Redhat Linux 引导盘 
                      #mkbootdisk  --device  /dev/fd0  2.0.36-3 
                     F5 如何在linux下把大于64m的内存加上? 
                     :  : 从dos下用loadlinu启动linux可以把大于64m的内存用上, 
                     :  : 加mem=。。。。。。。即可。 
                     :  : 但我直接启动linux却不行。我改lilo.conf,加上mem=..... 
                     :     append "mem=128M" 
                     :     试试?可恨我可没有>64M的情况。 
                     :     上次在讨论组里看到:"求助:Linux用1G内存里出问题了" 
                          ok!I got it! 
                         但需改为: append = "mem=100663296" 
                     (我的是 96M) 
                       以byte为单位! 
                     F6 如何制作Linux的Boot软盘 
                     第一种方法:直接启动,bootdisk上只有kernel 
                     1.cp zImage /dev/fd0 或 cat zImage > /dev/fd0 
                     2.rdev -R /dev/fd0 0 
                     这样才能使根mount成read-write,否则启动后/是read-only的 
                     3.rdev /dev/fd0 root_device 
                     比如用软盘做rootdisk,则:rdev /dev/fd0 /dev/fd0 
                     用硬盘做为root,则:rdev /dev/fd0 /dev/hda1 
                     这样做出的bootdisk,kernel从0道1扇区开始,所以无所谓文件格式, 
                     第二种方法:在bootdisk上安装lilo 
                     1.mke2fs /dev/fd0 
                     2.mount /dev/fd0 /mnt 
                     3.cp /boot/boot.b /mnt 
                     4.cp your_message /mnt/message (启动时显示的信息,可以不要) 
                     5.cp zImage /mnt 
                     6.rdev -R /mnt/zImage 0 
                     7.edit your lilo.conf 
                     7.edit your lilo.conf 
                     8.lilo -C lilo.conf 
                     bootdisk可以用dd做成image文件:dd if=/dev/fd0 of=bootdisk_file 
                     然后用dd恢复到软盘上:dd if=bootdisk_file of=/dev/fd0 
                     以下是lilo.conf的例子: 
                     boot = /dev/fd0 
                     message=/mnt/message #若不想显示message,则注释掉此行 
                     vga=normal 
                     prompt 
                     install=/mnt/boot.b 
                     map=/mnt/map 
                     image = /mnt/zImage 
                     label = ramdisk 
                     ramdisk = 1440 
                     root = /dev/fd0 
                     image = /mnt/zImage 
                     label = drive2 
                     ramdisk = 1440 
                     root = /dev/fd1 
                     image = /mnt/zImage 
                     label = mount 
                     ramdisk = 0 
                     root = /dev/fd0 
                     F7 Root口令丢失后怎么办 
                     有三种解决方法: 
                     1 在lilo的时候敲: linux single 
                     2只要在开机时boot:linux init=/bin/sh rw就可以了 
                     3用boot盘和root盘启动,进入到安装状态,然后把文件系统mount到一个目录里,如/mnt里 
                     ,随 
                     后修改/etc/passwd即可。 
                     -- 
                     ※ Origin: 笑 书 亭 bbs.zd.dhs.org 
                     ◆ From: 210.32.132.203

0 0

相关博文

我的热门文章

img
取 消
img