查看 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 2SUSE 10.0 Linux 超级用户密码的修改方法Ubuntu下的一些常用命令相关资讯 虚拟机
- 虚拟机已死,容器才是未来? (05月06日)
- 虚拟机Linux共享主机Windows文件夹 (09/12/2014 21:27:46)
- Linux实用技巧:使用快照制作虚拟 (07/20/2014 11:02:22)
| - 微软发布2016年4月Windows 10开发 (04月22日)
- 在Ubuntu上创建和管理Redhat虚拟机 (08/05/2014 14:47:21)
- 几个检查当前运行的Linux是在VM还 (10/01/2013 15:49:42)
|
本文评论 查看全部评论 (0)