RHEL5 创建裸设备RAW

1. 创建分区[root@ ~]# fdisk /dev/sdaCommand (m for help): pDisk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = 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 LinuxCommand (m for help): nCommand action e extended p primary partition (1-4)pFirst cylinder (4961-5221, default 4961):Last cylinder or +size or +sizeM or +sizeK (4961-5221, default 5221): +20m Command (m for help): pDisk /dev/sda: 42.9 GB, 42949672960 bytes255 heads, 63 sectors/track, 5221 cylindersUnits = 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 LinuxCommand (m for help): wThe 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.partprobeWarning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only.Segmentation fault

,当你感到悲哀痛苦时,最好是去学些什么东西。

RHEL5 创建裸设备RAW

相关文章:

你感兴趣的文章:

标签云: