RHEL5 creates RAW

Source: Internet
Author: User
1. Create a partition [root@www.linuxidc.com ~] # Fdisk/dev/sdaCommand (mforhelp): pDisk/dev/sda: 42.9 GB, 42949672960bytes255heads, 63 sectors/track, 5221 cylindersUnits = cylindersof16065 * 512 = 8225280 1. Create a partition

[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 ): + 20 m


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.