今天为了挂载文件系统,对磁盘进行分区,磁盘大小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对磁盘进行分区
原创那海蓝蓝 博主文章分类:Unix/Linux ©著作权
©著作权归作者所有:来自51CTO博客作者那海蓝蓝的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux系统CentOS下挂载磁盘
Linux系统CentOS下挂载磁盘
服务器 数据盘 磁盘挂载 Linux -
查看Linux磁盘的分区状态(lsblk、blkid、parted)、对Linux的磁盘进行分区(gdisk、fdisk、parted、partprobe)
前言:①下面的命令只有root权限才可以执行②磁盘的管理是一个相当重要的环节,如果你想在系统里面新增一块磁盘,应该做一下几个操作1.对磁盘进行划分,已建立可用的磁盘分区:https://blog.csdn.net/qq_41453285/article/details/86775115 2.对该硬盘分区进行格式化(format),以建立系统可用的文件系统:https://blog.c...
lsblk blkid parted 查看Linux磁盘的分区状态 Linux的磁盘分区 -
linux下parted分区
linux下parted分区
linux parted分区 -
使用parted对硬盘进行分区
使用parted进行分区
parted -
linux下如何用parted分区
简述parted分区步骤,方便在shell中调用!
linux 职场 分区 休闲 parted -
Linux下分区详解之—Parted
Linux下分区详解之—Parted作者:吴伟龙 通常我们用的我们今天谈到的Parted工具来实现
linux vmware system 磁盘 file