Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Parted partitions the disk under Linux

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today, in order to mount the file system, partition the disk, disk size 3.6TB.

After partitioning the disk using fdisk, check out the following:

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 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

It is found that the disk which can only recognize 260036122BlocksMagazine 3.6TB is not completely divided. After consulting the data, the maximum partition using fdisk can only identify 2TB, so parted is used for partition.

[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

The partition is complete, and the next step is to format and mount the file system

Mkfs-t ext4 / dev/sdb1

Mkfs-t ext4 / dev/sdb2

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report