-
ディスクを割り当てます
-
ハードドライブマウントを表示
fdisk -l root@desktop:/home/user1# fdisk -l Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 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 Disklabel type: dos Disk identifier: 0x4f6e894a Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 37750783 37748736 18G 83 Linux /dev/vda2 37750784 37752829 2046 1023K 83 Linux /dev/vda3 37752830 41940991 4188162 2G 5 Extended /dev/vda5 37752832 41940991 4188160 2G 82 Linux swap / Solaris Disk /dev/vdb: 1 GiB, 1073741824 bytes, 2097152 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 /dev/sda: 50 GiB, 53687091200 bytes, 104857600 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
-
/ dev / sdaを/ home_expandにマウントしてみてください
エラーが報告された場合、現在のデバイス・ビーイングは、ファイルシステムタイプを搭載表示
df -h -T
、
[書式は/ dev / sdaに
、他のハードドライブがある場合ext3
、使用するmkfs.ext3 /dev/sda
フォーマットを
他のハードドライブがある場合にext4
使用し、mkfs.ext4 /dev/sda
フォーマットし
、再びマウントしmount /dev/sda /home_expand
、この時間として一時的なマウント。 -
長期間マウントするように変更し
vim /etc/fstab
、最後にファイルを追加する必要があります/dev/sda /home_expand ext4 defaults 1 2
クリックしてジャンプ:fstabの内容がわからない場合は、fstabの詳細な内容を確認してください。
- この時点で、取り付けは完了です。試してみることができます
reboot