网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Linux下parted对磁盘进行分区

<

让客户满意是我们工作的目标,不断超越客户的期望值来自于我们对这个行业的热爱。我们立志把好的技术通过有效、简单的方式提供给客户,将通过不懈努力成为客户在信息化领域值得信任、有价值的长期合作伙伴,公司提供的服务项目有:空间域名、雅安服务器托管、营销软件、网站建设、宜君网站维护、网站推广。a href="https://www.cdcxhl.com/" target="_blank">建站服务器 今天为了挂载文件系统,对磁盘进行分区,磁盘大小3.6TB。
使用fdisk对磁盘分区完成之后,查看如下:
Disk /dev/sdb: 3598.9 GB, 3598914158592 bytes
255 heads, 63 sectors/track, 437543 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 234976 1887444688+ 83 Linux
/dev/sdb2 234977 267349 260036122+ 5 Extended

发现只能识别260036122Blocks,3.6TB的磁盘没有完全分完,经查阅资料,使用fdisk进行分区只能识别2TB,于是采用parted进行分区。
[root@localhost /]# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type \'help\' to view a list of commands.
corrupted -- possibly by a program that doesn\'t understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this
a GPT partition table?
parted: invalid token: tes
Model: DELL PERC H730P Adp (scsi)
Disk /dev/sdb: 3599GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
(parted) mkpart
Partition name? []?
File system type? [ext2]?
Start?
Start? 0
End? 1800GB
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? Ignore
(parted)
(parted) mkpart
Partition name? []?
File system type? [ext2]?
Start?
Start? 1800GB
End? 3599GB
(parted)
(parted) print
Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was
corrupted -- possibly by a program that doesn\'t understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this
a GPT partition table?
Yes/No? yes
Model: DELL PERC H730P Adp (scsi)
Disk /dev/sdb: 3599GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1800GB 1800GB
2 1800GB 3599GB 1799GB

[root@localhost dev]$cd /dev
[root@localhost dev]$ ls |grep sdb
sdb
sdb1
sdb2
分区已经完成,下一步可以进行格式化并挂载文件系统
mkfs -t ext4 /dev/sdb1
mkfs -t ext4 /dev/sdb2
文章题目:Linux下parted对磁盘进行分区
文章出自:http://bjjierui.cn/article/cgciio.html

其他资讯