fdisk使用
来源:互联网 发布:windows snmp 软件 编辑:程序博客网 时间:2024/06/01 19:26
0)fdisk /dev/sda进入交互式命令行
1)显示当前分区
p
2)创建新分区
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (524-60801, default 524):
Using default value 524
Last cylinder, +cylinders or +size{K,M,G} (524-60801, default 60801): +20G
Command (m for help): p
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b52a5
Device Boot Start End Blocks Id System
/dev/sda1 1 523 4200966 83 Linux
/dev/sda2 524 3135 20980890 83 Linux
//写入分区表,这一步不能少,否则分区表不会被修改!
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
3)刷新分区表
partprobe或系统重启
[root@ihost ~]# partprobe
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (设备或资源忙). As a result, it may not reflect all of your changes until after reboot.
[root@ihost ~]# reboot
Broadcast message from root@ihost.test.com
(/dev/pts/0) at 11:00 ...
The system is going down for reboot NOW!
- fdisk使用
- Fdisk 的使用
- Fdisk使用详解
- fdisk命令使用说
- Fdisk使用详解 .
- fdisk的使用
- linux fdisk命令使用
- linux fdisk命令使用
- ubuntu 使用 fdisk 磁盘分区
- linux fdisk命令使用
- fdisk
- fdisk
- fdisk
- fdisk
- fdisk
- fdisk
- fdisk
- fdisk
- 一小时用起 git :git开发实践第一篇
- ThinkPad S1 Yoga的混合硬盘怎样显示出来?求大
- Mint17安装NVIDIA驱动
- css3 html5 3D动画练习
- matlab中视频的读取与显示
- fdisk使用
- 一切成功源于积累——20150110 无知之错 无能之错 为什么犯同样的错误
- CentOS安装gcc报错的问题
- EXISTS、IN与JOIN性能分析
- 蓝桥杯:标题-带分数
- PHP(6)只记录我的学习历程 html(表单标志)
- ios nsstring(补充 与不同类型之间的转化)
- java基础---类集框架一
- 线段树学习——入门篇