Feed on
Posts
Comments

超過2T也是一種痛苦:p

首先parted

ftp:~# parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) mklabel
Warning: 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
New disk label type?  [gpt]? gpt
(parted) mkpart
Partition name?  []? primay
File system type?  [ext2]? xfs
Start? 0
End? -1
(parted) print
Model: Promise VTrak E610f (scsi)
Disk /dev/sdb: 4000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name    Flags
1      17.4kB  4000GB  4000GB               primay

ftp:~# fdisk -l

WARNING: GPT (GUID Partition Table) detected on ‘/dev/sdb’! The util fdisk doesn’t support GPT. Use GNU Parted.
Disk /dev/sdb: 3999.9 GB, 3999999197184 bytes
255 heads, 63 sectors/track, 486305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT

ftp:~# mkfs.xfs /dev/sdb1

然後就搞定啦

ftp:~# df -h
Filesystem            Size  Used Avail Use% Mounted on

/dev/sdb1             3.7T  4.2M  3.7T   1% /ftp4

Leave a Reply