新手学堂:虚拟机扩充Linux操作系统容量

上一篇 / 下一篇  2007-11-26 17:03:00 / 个人分类:系统入门

 

查看 cd /dev 下的增加的磁盘 ls –l hd* (一般情况下都是增加的hdb和hdc)

磁盘空间 df –k

给新硬盘分区:

fdisk /dev/hdb

下一步

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-10402, default 1): 1

Last cylinder or +size or +sizeM or +sizeK (1-10402, default 10402): 10402

Command (m for help): p

Disk /dev/hdb: 5368 MB, 5368709120 bytes

16 heads, 63 sectors/track, 10402 cylinders

Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System

/dev/hdb4 1 10402 5242576+ 83 Linux

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

查看 cd /dev 下增加了hdb1 再增加一个oracle目录

下一步: mke2fs /dev/hdb4

下一步: mount /dev/hdb4 /home/oracle

下一步: 编辑 /etc/fstab文件

增加一条语句 : /dev/hdb1 /home/oracle ext2 defaults 1 2


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-11-07  
      1
2345678
9101112131415
16171819202122
23242526272829
30      

数据统计

  • 访问量: 3554
  • 日志数: 127
  • 建立时间: 2007-01-18
  • 更新时间: 2008-09-19

RSS订阅

Open Toolbar