2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VMWare Fusion上のLinuxにおける仮想ディスクの領域拡張

Last updated at Posted at 2014-01-26
  1. VMWare Fusion自体の仮想ディスクサイズを変更し直します。仮想マシンの設定から変更可能です。

  2. fdisk で既存のパーティションを削除し、再作成します。

2-1) ディスクサイズがVMWare Fusionで設定し直したサイズになっていることを確認します。

#fdisk /dev/sda -l 

2-2) すべてのパーティションを削除します。

 コマンド (m でヘルプ): d
 領域番号 (1-4): 1 

2-3) パーティション作成

 コマンド (m でヘルプ): n
 コマンドアクション
 e   拡張
 p   基本領域 (1-4)
 p
 領域番号 (1-4): 1

swapパーティション作成は上記のように作成後、以下のようにシステムタイプを変更します。

コマンド (m でヘルプ): t 
領域番号 (1-4): 2
16進数コード (L コマンドでコードリスト表示): 82
領域のシステムタイプを 2 から 82 (Linux スワップ) に変更しました 
  1. rebootし、resize2fsでサイズ拡張させます。

    resize2fs /dev/sda1

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?