CentOSを実行している仮想マシンに新しく作成されたパーティションをマウントできません。

CentOSを実行している仮想マシンに新しく作成されたパーティションをマウントできません。

CentOS 6.6で(32ビット)実行中ですVMware Workstation 10.0.3 build-1895310。私はVM設定を変更してHDDをから移動しました。20GB到着30GB。また、sda4デフォルトの開始および停止シリンダー番号を使用して、基本タイプの新しいパーティションを作成しました。

fdisk /dev/sda次を返します。

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 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: 0x0000fba6

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        2611    20458496   8e  Linux LVM
/dev/sda4            2611        3916    10483750   83  Linux

インストールしようとすると、次のようになります。マウント -t ext4 /dev/sda4 /data、次のエラーが表示されます。

mount: wrong fs type, bad option, bad superblock on /dev/sda4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

ファイルシステムタイプを取得するには、次のコマンドを入力しました。df-T、次の出力があります。

Filesystem           Type  1K-blocks    Used Available Use% Mounted on
/dev/mapper/vg_box0-lv_root
                     ext4   17971068 4039580  13011936  24% /
tmpfs                tmpfs    514720     228    514492   1% /dev/shm
/dev/sda1            ext4     487652   66444    395608  15% /boot

ベストアンサー1

新しいパーティションにファイルシステムを作成する必要があります。パーティションを作成しましたが、そのパーティションにファイルシステムがありません(見つからない項目を参照df -T)。

それではmkfs -t ext4 /dev/sda4インストールしてみてください

おすすめ記事