新しいパーティションを作成できません。

新しいパーティションを作成できません。

508Gの空き容量を持つCentOSシステムがあります。私はそれから新しいパーティションを作成したいと思います。拡張パーティションにあります。 ここに画像の説明を入力してください。
新しいパーティションを作成し、任意の形式(ext4、fat32)でフォーマットしましたが、適用後にプロセスが完了せず、次のエラーが発生します。

An error occurred while applying the operations
See the details for more information.

IMPORTANT
If you want support, you need to provide the saved details!
See http://gparted.sourceforge.net/larry/tips/save_details.htm for more information.

保存すると、save_details.htm次の情報が含まれます。

GParted 0.6.0

Libparted 2.1

Create Logical Partition #1 (fat32, 508.23 GiB) on /dev/sda  00:00:01    ( ERROR )

calibrate New Partition #1  00:00:00    ( SUCCESS )

path: /dev/sda-1
start: 184424448
end: 1250263039
size: 1065838592 (508.23 GiB)
create empty partition  00:00:01    ( ERROR )
libparted messages    ( INFO )

WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
========================================

fdiskを使用して/dev/sda6パーティションを作成し、次のことを確認しました。

$ sudo fdisk -l 

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xa62a8bc3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         262     2097152   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2             262        5361    40960000   83  Linux
/dev/sda3            5361       10460    40960000   83  Linux
/dev/sda4           10460       77826   541113344    5  Extended
/dev/sda5           10461       11480     8192000   82  Linux swap / Solaris
/dev/sda6           11480       77825   532917056+  83  Linux
Partition 6 does not start on physical sector boundary.

ただし、format itを使用すると、次のmkfsエラーが表示されます。

$ sudo mkfs -t ext4 /dev/sda6
mke2fs 1.41.12 (17-May-2010)
Could not stat /dev/sda6 --- No such file or directory

The device apparently does not exist; did you specify it correctly?

問題は何ですか?

ベストアンサー1

ディスクに対する変更をカーネルに通知する必要があります。これを行うには、以下を実行する必要がありますpartprobe

# partprobe /dev/sda6

mkfs.ext4次に、新しく作成されたパーティションにファイルシステム割り当てを実行する必要があります。

# mkfs.ext4 /dev/sda6

これでパーティションが準備されましたmount

# mount /dev/sda6 /mountpoint

おすすめ記事