Welcome 微信登录

首页 / 操作系统 / Linux / RHEL5 创建裸设备RAW

1. 创建分区

[root@ www.linuxidc.com ~]# fdisk /dev/sda
Command (m for help): p


Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3916    31455238+  83  Linux
/dev/sda2            3917        4438     4192965   82  Linux swap / Solaris
/dev/sda3            4439        4960     4192965   83  Linux


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)




p


First cylinder (4961-5221, default 4961): 


Last cylinder or +size or +sizeM or +sizeK (4961-5221, default 5221): +20m      


Command (m for help): p


Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3916    31455238+  83  Linux
/dev/sda2            3917        4438     4192965   82  Linux swap / Solaris
/dev/sda3            4439        4960     4192965   83  Linux
/dev/sda4            4961        4963       24097+  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: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

partprobe 
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
Segmentation fault
  • 1
  • 2
  • 下一页
veritas cluster filesystem 生产库测试日志Fedora 16升级到Fedora 17过程摘记相关资讯      RHEL5 
  • RHEL5上安装salt-minion  (05/05/2015 06:17:34)
  • RHEL5/6安装注意事项  (12/16/2014 12:25:29)
  • RHEL5因开机服务报错停滞无法启动  (08/12/2014 19:54:08)
  • RHEL5 多路径配置  (04/16/2015 15:10:11)
  • Red Hat Enterprise Linux 5产品线  (09/25/2014 16:37:23)
  • RHEL5下TCP最大连接信息查看及修改  (07/08/2014 09:28:08)
本文评论 查看全部评论 (0)
表情: 姓名: 字数