Chinaunix首页 | 论坛 | 博客
  • 博客访问: 457929
  • 博文数量: 711
  • 博客积分: 3000
  • 博客等级: 中校
  • 技术积分: 4200
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 14:18
文章分类

全部博文(711)

文章存档

2011年(1)

2008年(710)

我的朋友

分类:

2008-10-29 11:56:46


  这一章中, 我们首先来看看 bootdisk 作为救急磁片的用途。
  
   Slackware Linux 的 bootdisk 的第一个救急用途, 就是用来
  启动硬碟内的 Linux 系统, 什麽时候需要用到呢? 比方说您原本
  从硬碟开机突然失效了, 更不巧您也没有做软碟开机片, 这些情况
  您就可以使用 bootdisk 开机 (没有用到 rootdisk 磁片), 之後
  在提示符号下使用 mount root=/dev/hda1 指令, 详细情况如下面
  萤幕所示。
  
  LILO
  
  Welcome to the Slackware Linux 2.0.2 Bootkernel disk!
  
  If you have any extra parameters to pass to the kernel, enter them at the
  prompt below. For instance, you might need something like this to detect the
  hard drive on PS/1 and ValuePoint models from IBM:
  
   ramdisk hd=cyl,hds,secs (Where "cyl", "hds", and "secs" are the number of
   cylinders, sectors, and heads on the drive. Most
   machine won't need this.)
  
  Also, in a pinch, you can boot your system with a command like:
   mount root=/dev/hda1
  
  On machines with low memory, you can mount root=/dev/fd1 or
  mount root=/dev/fd0 to install without a ramdisk. See LOWMEM.TXT for details.
  
  If you wold rather load the root/install disk from your second floppy drive:
   drive2 (or even this: ramdisk root=/dev/hd1)
  
  DON'T SWITCH ANY DISKS YET! This prompt is just for entering extra paramters.
  If you don't need to enter any paramters, hit ENTER to conitnue.
  
  boot: mount root=/dev/hda1
  
   把上面 /dev/hda1 换成您实际的情况就可以。
  
   Slackware Linux bootdisk/rootdisk 组合也可以作为系统急救
  磁片, 比方说您不小心修改 /etc/fstab 档案, 但却由於有错误造成
  无法开机, 类似这种例子, 您就可以用 bootdisk 磁片开机, 之後换
  插入 rootdisk磁片, 继续执行开机作业, 我们前面提很多次, 这样子
  执行的就是一套阳春的 Linux作业系统, 但虽然阳春, 基本的系统工
  具程式都有, 比方说 vi 文字编辑器。
  
   由这软碟系统来修复硬碟内的 Linux档案系统的作法, 是先把硬
  碟内的 Linux / (root) 档案系统挂上来, 之後用 vi 修改造成错误
  的设定档案, 或者用 e2fsck 或 fsck 来修复硬碟内的档案系统结构
  (就类似 DOS的 CHKDSK指令)。
  
   $ mount -t ext2 /dev/hda2 /mnt
  
   笔者发现 Slackware Linux 2.02 以後的 rootdisk 磁片里面已
  经没有 vi 及 e2fsck 等工具, 假如您想使用 vi 的话, 可以试看看
  /mnt/usr/bin/vi。
  
  
【责编:admin】

--------------------next---------------------

阅读(230) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~