在linux下,使用fdisk对硬盘分区:先删除原有分区,然后创建新的分区
1) 删除分区
代码如下 | 复制代码 |
[root@standby root]# fdisk /dev/sdc The number of cylinders for this disk is set to 4425. Command (m for help): m Command (m for help): p Disk /dev/sdc: 36.4 GB, 36401479680 bytes Device Boot Start End Blocks Id System Command (m for help): d Command (m for help): d Command (m for help): d Command (m for help): d Command (m for help): p Disk /dev/sdc: 36.4 GB, 36401479680 bytes Device Boot Start End Blocks Id System Command (m for help): w Calling ioctl() to re-read partition table. |
2) 创建分区
代码如下 | 复制代码 |
[root@standby root]# fdisk /dev/sdc The number of cylinders for this disk is set to 4425. Command (m for help): p Disk /dev/sdc: 36.4 GB, 36401479680 bytes Device Boot Start End Blocks Id System Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): d Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): n Command (m for help): p Disk /dev/sdc: 36.4 GB, 36401479680 bytes Device Boot Start End Blocks Id System Command (m for help): w Calling ioctl() to re-read partition table.
|
分区建好后有两种方法:使用文件系统,使用裸设备
1) 使用文件系统
创建文件系统
代码如下 | 复制代码 |
[root@standby root]# mkdir /test Writing inode tables: done This filesystem will be automatically checked every 38 mounts or |
挂接文件系统
代码如下 | 复制代码 |
[root@standby root]# mount /dev/sdc3 /test |
改权限
代码如下 | 复制代码 |
[root@standby root]# ls -ltr /test [root@standby root]# chown -R oracle.dba /test [root@standby root]# ls -ltr /test |
创建表空间
代码如下 | 复制代码 |
SQL> create tablespace chen Tablespace created. |
向表空间增加数据文件
代码如下 | 复制代码 |
SQL> alter tablespace chen Tablespace altered. |
可以看到表空间chen的大小是20m了
代码如下 | 复制代码 |
SQL> select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size TABLESPACE_NAME TS_SIZE |
2) 使用裸设备
可以看到已有的绑定
代码如下 | 复制代码 |
[root@standby root]# raw -qa /dev/raw/raw1: bound to major 8, minor 17 /dev/raw/raw2: bound to major 8, minor 18 /dev/raw/raw3: bound to major 8, minor 19 /dev/raw/raw4: bound to major 8, minor 20 /dev/raw/raw5: bound to major 8, minor 34 |
绑定裸设备
代码如下 | 复制代码 |
[root@standby test]# raw /dev/raw/raw6 /dev/sdc1 ditional information: 1 |
改权限
代码如下 | 复制代码 |
[root@standby root]# chown -R oracle.dba /dev/raw [root@standby root]# chmod 755 /dev/raw |
创建表空间
代码如下 | 复制代码 |
SQL> create tablespace jin Tablespace created |
指令:fdisk
用途:观察硬盘之实体使用情形与分割硬盘用。
使用方法:
一、在 console 上输入 fdisk -l /dev/sda ,观察硬盘之实体使用情形。
二、在 console 上输入 fdisk /dev/sda,可进入分割硬盘模式。
1. 输入 m 显示所有命令列示。
2. 输入 p 显示硬盘分割情形。
3. 输入 a 设定硬盘启动区。
4. 输入 n 设定新的硬盘分割区。
4.1. 输入 e 硬盘为[延伸]分割区(extend)。
4.2. 输入 p 硬盘为[主要]分割区(primary)。
5. 输入 t 改变硬盘分割区属性。
6. 输入 d 删除硬盘分割区属性。
7. 输入 q 结束不存入硬盘分割区属性。
8. 输入 w 结束并写入硬盘分割区属性
荒野乱斗国际版 (BrawlStars)最新版本v56.274
下载一波超人内置修改器菜单版 安卓版v1.0.2
下载敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载继承了一座戏园子无限声望铜钱版 内置菜单最新版v1.7
继承了一座戏园子折相思版是游戏的破解版本,在该版本中为玩家提
山河半世橙光清软金手指版 无限鲜花v3.24
山河半世是一款超级好玩的橙光恋爱游戏,在游戏中玩家们需要扮演
蓬莱手游折相思版 安卓版v1.0.0
蓬莱免广告版是游戏的修改版本,在该版本中为玩家去除了广告,玩
当红影后橙光游戏破解版2025 最新版v1.0
当红影后橙光破解版是一款超级好玩的娱乐圈题材的橙光游戏,在这
忽然成了万人迷清软完结版 无限鲜花版v12.15
忽然成了万人迷破解版是一款非常好玩的男性向橙光游戏,在有一天