To create a partition:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/82/8C/wKiom1dY5bWTPgkKAAAVsj346q8823.jpg "title=" A721.tmp.jpg "alt=" Wkiom1dy5bwtpgkkaaavsj346q8823.jpg "/>
Enter n (create partition), p (primary partition) or E (extended partition), set size, and last w save exit.
Using Kpartx-af/dev/sdb or Partx-a/dev/sdb, let the kernel reread the device partition table.
Create file system: Mkfs-t EXT4/DEV/SDB1 If the following problem occurs:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/82/8A/wKioL1dY_xXCUBDlAAAPHLt-0nc012.jpg-wh_500x0-wm_3 -wmp_4-s_3326813868.jpg "title=" 864c.tmp.jpg "alt=" Wkiol1dy_xxcubdlaaaphlt-0nc012.jpg-wh_50 "/>
Description partition /DEV/SDB1 is being managed by DM and can be viewed using Dmsetup status and then using Dmsetup remove/dev/sdb1
, execute the MKFS command again.
Mount Partition: Mount-t ext4/dev/sdb1/mydata, canceling mount using UMOUNT/DEV/SDB1 or Umount/mydata
This article is from the "JC" blog, be sure to keep this source http://jackeychen.blog.51cto.com/7354471/1787625
Linux create partitions, file systems, Mount operations