Linux format large hard drive

Source: Internet
Author: User

There are differences in the partitioning and file system formatting of large data disks and small disks. The market must use the  GPT  partition format,  can no longer use the small disk  MBR  partition format. mbr  partition format: The largest supported  2 TB  disk. gpt  partition format: Maximum supported  18 eb. For large disks on the  Linux  system, also use the  GPT  partition format,  can also,  the disk as a whole device without partitioning. In the  Linux  general use of  XFS  or  EXT4  to do the market file system. Partition management on a disk you can use  parted  to partition a disk on  Linux . 1,  fdisk -l  can see if the disk exists,  because the use of large disk,fdisk  can not be used as a partition tool, but should use  parted. # fdisk -lwarning: gpt  (guid partition table)  detected on  '/dev/ SDB '! THE UTIL FDISK DOESN ' T support gpt. use gnu parted.disk  /dev/sdb: 17679.7 gb, 17679696003072 bytes256 heads, 63 sectors/track , 2141037 cylindersunits = cylinders of 16128 * 512 =  8257536 bytessector size  (logical/physical):  512 bytes / 4096 bytesi/o size  (minimum/optimal):  4096 bytes / 4096 bytesdisk identifier : 0x00000000device boot      start          end      blocks   id  system/dev/sdb1                1       266306  2147483647+  ee  GPTPartition 1 does  not start on physical sector boundary.2, use  parted  to partition  /dev/sdb . First create partition Table,  select  GPT  Format Partition table.  parted /dev/vdb# parted /dev/sdbGNU Parted 2.1Using /dev/sdbWelcome  to gnu parted! type  ' Help '  to view a list of commands. (parted)  mklabelnew disk label type? gptwarning: the exiSting disk label on /dev/sdb will be destroyed and all data  on this disk will be lost. do you want to continue? Yes/no? Yes/no? yes (parted)  pModel: DELL PERC H730 Mini  (SCSI) Disk /dev/sdb:  17.7TBSector size  (logical/physical):  512b/4096bpartition table: gptnumber   start  end  size  file system  name  flags3 , create a partition. (parted)  mkpartpartition name?  []? file system type?  [ext2]? ext4start? 0gend? 17679g (parted)  pModel:  DELL PERC H730 Mini  (SCSI) disk /dev/sdb: 17.7tbsector size  ( logical/physical):  512b/4096bpartition table: gptnumber  start   end      size    file system  name  flags1      1049kb  17.7tb   17.7TB (parted)  quitinformation: you may need to update /etc/fstab. ext4  file system formatting assumptions  Linux  large data disk devices on the instance are  /dev/sdb,  can be formatted as follows. The following parameters are common parameters,  users can adjust according to their own needs. For  16TB  above the market,  for the  ext4  format used by the Toolkit  e2fsprogs  version is required. If the  e2fsprogs  version is too low,  such as: e2fsprogs 1.41.11, the following error message will appear: Mkfs.ext4: size of device  /dev/md0 too big to be expressed in 32 bits using a  blocksize of 4096. Upgrade: wget https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/ v1.42.8/e2fsprogs-1.42.8.tar.gztar xvzf e2fsprogs-1.42.8.tar.gzcd e2fsprogs-1.42.8./ CONFIGUREMAKEMAKE INSTALL/SBIN/MKE2FS -O 64BIT,HAS_JOURNAL,EXTENTS,HUGE_FILE,FLEX_BG,UNINIT_BG, Dir_nlink,extra_isize /dev/sdb1


Linux format large hard drive

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.