前回は失敗したので、以下の順番でやっていく。
作業目標
①パーティション分割→失敗
②マウント
③ユーザーごとの容量の制限
④権限設定
⑤マウントポイントにシンボリックリンク設定
①パーティション分割
今回は基本プラン3つ + 論理パーティション2つで分ける。
前々回と同じようにfdiskコマンドでパーティション分割を以下の状態になるまで行う。
Command (m for help): p
Disk /dev/sda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009ef88
Device Boot Start End Blocks Id System
/dev/sda1 2048 10487807 5242880 83 Linux
/dev/sda2 10487808 20973567 5242880 83 Linux
/dev/sda3 20973568 31459327 5242880 83 Linux
/dev/sda4 31459328 83886079 26213376 5 Extended
/dev/sda5 31461376 41947135 5242880 83 Linux
/dev/sda6 41949184 52434943 5242880 83 Linux
パーティション作成&保存後に以下のエラーメッセージが出るので調べた。
→再起動で反映するとの情報が多く得られた。
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
一度シャットダウンして、再度vagrant upしたら、やっぱり壊れた^^;
原因がわからないため保留とする!