久久首页
免费软件
网络时尚
网络学堂
专题讨论
网络资源
网络游戏
网络文档
网络产品
网站导航: 首页 > 操作系统 > Linux 学堂讨论 | 推荐文章

轻轻松松安装 Linux(7)


2004-05-24 曾瑞源/水木清华 
 
┌—图1.1 ——————————————————————————————┐
│ /# fdisk ← 在Shell提示符号後键入fdisk指令 │
│ │
│ Command (m for help): p ← 我们先来浏览目前的Partition配置情况 │
│ │
│ Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders │
│ Units = cylinders of 255 * 512 bytes │
│ │
│ /dev/hda1 1 1 161 20519 4 DOS 16-bit <32M │
│ /dev/hda4 162 162 483 41055 a5 Unknown │
│ │
│ Command (m for help): m ← 键入m求助 │
│ Command action │
│ a toggle a bootable flag ← 设定(或取消) Partition为Active │
│ d delete a Partition ← 删除Partition │
│ l list known Partition types │
│ m print this menu │
│ n add a new partition ← 增建一个新的Partition │
│ p print the partition table │
│ q quit without saving changes ← 中断执行fdisk │
│ t change a partition‘s system id │
│ u change display/entry units │
│ v verify the partition table ← 确认设定 │
│ w write table to disk and exit ← 设定完成後, 储存起来 │
│ x extra functionality (experts only) │
│ │
│ │
│ Command (m for help): n ← 回答n, ″n″是增建新Partition │
│ Command action │
│ e extended │
│ p primary partition (1-4) │
│ p ← 回答p, 指定primary partition │
│ │
│ Partition number (1-4): 2 ← 回答2 (因为我硬碟内编号1以及 │
│ 编号4的partition已经被其他系 │
│ 系统所用。这里若回答″3″也 │
│ 可以, 不过以下都要跟著改变。 │
│ First cylinder (484-1001): 484 ← 这里″484-1001″是fdisk自动 │
│ 侦测出来的, 假如您完全依照 │
│ 这两个数据来回答, 则表示您 │
│ 要把目前DOS剩下的空间全都给 │
│ Linux, 这例中我们就照著回答。 │
│ │
│ Last cylinder or +size or +sizeM or +sizeK (484-1001): 1001 │
│ │
│ Command (m for help): t ← 更改partition id │
│ Partition number (1-4): 2 ← 同样是编号2的Partition │
│ Hex code (type L to list codes): 81 ← 81 代表Linux/Minix │
│ │
│ Command (m for help): v ← 确认以上的设定 │
│ Command (m for help): p ← 浏览刚刚设定後的partition 表 │
│ │
│ Disk /dev/hda: 15 heads, 17 sectors, 1001 cylinders │
│ Units = cylinders of 255 * 512 bytes │
│ │
│ /dev/hda1 1 1 161 20519 4 DOS 16-bit <32M │
│ /dev/hda2 * 484 484 1001 66045 81 Linux/MINIX │
│ /dev/hda4 162 162 483 41055 a5 Unknown │
│ │
│ 果然, 硬碟内位於/dev/hda2的Partiion已经是Linux专用的Partition │
│ │
│ Command (m for help): w │
│ reboot now before doing anything else │
│ /# │
│ │
└——————————————————————————————————┘

〔第三步〕建置档案系统

┌—图1.2 ———————————————————————————┐
│ │
│ /# mke2fs -c /dev/hda2 66045 这操作, 意义上等同於DOS的 │
│ ″format c:″指令 │
└———————————————————————————————┘

〔第四步〕开始执行Linux系统的装置工作, 这步骤会把您软碟上的系 统软体及其他各种使用者软体一一的装置在Linux档案系统下恰当的地方。 这步骤所给″/dev/hda2″即是您之前执行fdisk时所指定的Partition。键 入″doinstall″ 指令後, 您顺著画面说明一一回答操作即可。

┌—图1.3 ———————————————————————————┐
│/# doinstall /dev/hda2 │
└———————————————————————————————┘
 
发表评论 推荐文章 关闭窗口
 相关内容
- Linux安装的几点经验 2004-05-18
- LINUX通用的软件安装方法 2004-05-19
- 轻轻松松安装 Linux(3) 2004-05-24
- 轻轻松松安装 Linux(5) 2004-05-24
 
 学堂分类
网络知识操作系统
网络应用网络服务
网页开发网络编程
数据存储网络设备
 文章搜索
 
网站简介 | 广告服务 | 编程支持 | 设计服务 | 诚邀合作 | 访客留言
Copyright © 1999-2004 99NET. All Rights Reserved
版权所有 久久网络工作室
Email:webmaster@99net.net