Linux下parted对磁盘进行分区
发表于:2024-11-28 作者:千家信息网编辑
千家信息网最后更新 2024年11月28日,今天为了挂载文件系统,对磁盘进行分区,磁盘大小3.6TB。使用fdisk对磁盘分区完成之后,查看如下:Disk /dev/sdb: 3598.9 GB, 3598914158592 bytes255
千家信息网最后更新 2024年11月28日Linux下parted对磁盘进行分区今天为了挂载文件系统,对磁盘进行分区,磁盘大小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
使用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
磁盘
最大
文件
系统
大小
格式
资料
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络技术公司可以开淘宝店吗
饥荒当服务器要求
石城软件开发公司
怎么切换刺激战场服务器
删除sql数据库实例
2019网络安全数据分析
南京踏浪网络技术公司
网络安全反邪教为主题
基于对抗网络技术
朔州网络安全委员会
杨浦区优势软件开发服务产品介绍
计算机的网络安全等级
普陀区节能软件开发服务销售公司
浙江5g专业服务器机柜
软件开发行业政策风险
传感器数据库架构设计公司
c 从数据库读取图片
sql数据库三种恢复模式
网络技术一级考试软件
艾尔登法环武器数据库
网络技术的基本应用的实验报告
考研上交网络安全怎么样
学习网络技术基础的目的
医疗卫生行业网络安全
打开sql数据库速度慢
网络技术总监赵倩
学好软件开发有什么好处
网络安全设备图例下载
java dns 服务器
中国地方志数据库华中师范大学