ubuntu install make free - hanyong/note GitHub Wiki
ๆฌๅฐ่ๆๆบ 2G ็กฌ็, ๅฏ็จ็ฝ็ปๅฎ่ฃ
, ๅปบ็ซไธคไธช ssh ่ฟๆฅ, ไธไธชๆง่กๅฎ่ฃ
, ไธไธช้่ฟ tail -f /var/log/syslog
ๆฅ็ๆฅๅฟ.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ The installer can guide you through partitioning a disk (using different standard schemes) or, if you prefer, you can do โ
โ it manually. With guided partitioning you will still have a chance later to review and customise the results. โ
โ โ
โ If you choose guided partitioning for an entire disk, you will next be asked which disk should be used. โ
โ โ
โ Partitioning method: โ
โ โ
โ Guided - use entire disk โ
โ Guided - use entire disk and set up LVM โ
โ Guided - use entire disk and set up encrypted LVM โ
โ Manual โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ Manual
, ๆ ๆฅๅฟ.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ This is an overview of your currently configured partitions and mount points. Select a partition to modify its settings โ
โ (file system, mount point, etc.), a free space to create partitions, or a device to initialize its partition table. โ
โ โ
โ Guided partitioning โ
โ Configure software RAID โ
โ Configure the Logical Volume Manager โ
โ Configure encrypted volumes โ
โ Configure iSCSI volumes โ
โ โ
โ Virtual disk 1 (vda) - 2.1 GB Virtio Block Device โ
โ > #1 primary 2.1 GB ext2 โ
โ โ
โ Undo changes to partitions โ
โ Finish partitioning and write changes to disk โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉๅๅบ1 > #1 primary 2.1 GB ext2
,
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ You are editing partition #1 of Virtual disk 1 (vda). This partition is formatted with the Ext2 file system. โ
โ โ
โ Partition settings: โ
โ โ
โ Use as: do not use โ
โ โ
โ Bootable flag: off โ
โ โ
โ Resize the partition (currently 2.1 GB) โ
โ Copy data from another partition โ
โ Erase data on this partition โ
โ Delete the partition โ
โ Done setting up the partition โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ resize,
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Before you can select a new partition size, any previous changes have to be written to disk. โ
โ โ
โ You cannot undo this operation. โ
โ โ
โ Please note that the resize operation may take a long time. โ
โ โ
โ Write previous changes to disk and continue? โ
โ โ
โ <Go Back> <Yes> <No> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ Yes,
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ The minimum size for this partition is 86.6 MB (or 4%) and its maximum size is 2.1 GB. โ
โ โ
โ Hint: "max" can be used as a shortcut to specify the maximum size, or enter a percentage (e.g. "20%") to use that โ
โ percentage of the maximum size. โ
โ โ
โ New partition size: โ
โ โ
โ 200M______________________________________________________________________________________________________________ โ
โ โ
โ <Go Back> <Continue> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
่พๅ ฅ "200M",
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ This is an overview of your currently configured partitions and mount points. Select a partition to modify its settings โ
โ (file system, mount point, etc.), a free space to create partitions, or a device to initialize its partition table. โ
โ โ
โ Guided partitioning โ
โ Configure software RAID โ
โ Configure the Logical Volume Manager โ
โ Configure encrypted volumes โ
โ Configure iSCSI volumes โ
โ โ
โ Virtual disk 1 (vda) - 2.1 GB Virtio Block Device โ
โ > #1 primary 200.0 MB ext2 โ
โ > pri/log 1.9 GB FREE SPACE โ
โ โ
โ Undo changes to partitions โ
โ Finish partitioning and write changes to disk โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ "FREE SPACE",
โโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโ
โ โ
โ How to use this free space: โ
โ โ
โ Create a new partition โ
โ Automatically partition the free space โ
โ Show Cylinder/Head/Sector information โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ "Automatically partition the free space",
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ This is an overview of your currently configured partitions and mount points. Select a partition to modify its settings โ
โ (file system, mount point, etc.), a free space to create partitions, or a device to initialize its partition table. โ
โ โ
โ Guided partitioning โ
โ Configure software RAID โ
โ Configure the Logical Volume Manager โ
โ Configure encrypted volumes โ
โ Configure iSCSI volumes โ
โ โ
โ Virtual disk 1 (vda) - 2.1 GB Virtio Block Device โ
โ > #1 primary 200.0 MB ext2 โ
โ > #5 logical 1.1 GB f ext4 / โ
โ > #6 logical 119.5 MB f swap swap โ
โ > #7 logical 726.7 MB f ext4 /home โ
โ โ
โ Undo changes to partitions โ
โ Finish partitioning and write changes to disk โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ "Finish".
็ดๅฐ้ๆฉ "Finish" ๆไฝๅ, ๆช็ๅฐไปปไฝๆฅๅฟ่พๅบ, ๆฏๅฆ่ฏด "็ผฉๅฐๅๅบ่ พๅบ็ฉบ้ด" ่ฟไธชๆไฝๆฒกๆๅฏ็จ็่ชๅจๅ้ ็ฝฎ, ๅช่ฝๆๅจๆไฝ?
ๅจๆต่ฏๆบ 250G ๆง่กๆถ, ๅ็ฐๅๅงๅฏน่ฏๆกๅคไบไธไธช resize ้้กน, ็ๆฅๅฎ่ฃ ็จๅบ่ฆๆฃๆตๅฐ็ฃ็ๆ่ถณๅคๅฉไฝ็ฉบ้ดๆถๆไผ่ชๅจๅบๆฅ่ฟไธช้้กน.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ The installer can guide you through partitioning a disk (using different standard schemes) or, if you prefer, you can do โ
โ it manually. With guided partitioning you will still have a chance later to review and customise the results. โ
โ โ
โ If you choose guided partitioning for an entire disk, you will next be asked which disk should be used. โ
โ โ
โ Partitioning method: โ
โ โ
โ Guided - resize Virtual disk 1, partition #1 (xvda1) and use freed space โ
โ Guided - use entire disk โ
โ Guided - use entire disk and set up LVM โ
โ Guided - use entire disk and set up encrypted LVM โ
โ Manual โ
โ โ
โ <Go Back> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ resize,
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Before you can select a new partition size, any previous changes have to be written to disk. โ
โ โ
โ You cannot undo this operation. โ
โ โ
โ Please note that the resize operation may take a long time. โ
โ โ
โ Write previous changes to disk and continue? โ
โ โ
โ <Go Back> <Yes> <No> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
้ๆฉ Yes,
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค [!!] Partition disks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ The minimum size for this partition is 26.3 GB (or 9%) and its maximum size is 265.8 GB. โ
โ โ
โ Hint: "max" can be used as a shortcut to specify the maximum size, or enter a percentage (e.g. "20%") to use that โ
โ percentage of the maximum size. โ
โ โ
โ New partition size: โ
โ โ
โ 146.0 GB__________________________________________________________________________________________________________ โ
โ โ
โ <Go Back> <Continue> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
่พๅ ฅ "50%",
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค Please wait... โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ 0% โ
โ โ
โ Checking the ext3 file system in partition #1 of Virtual disk 1 (xvda)... โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
็ญๅพ ไธๆฎตๆถ้ด, ๅฎ่ฃ ็จๅบๅฎๆๅๅบ่ฐๆดๅ, ่ชๅจๅฎๆๅๅบๅนถๅผๅงๅฎ่ฃ ็ณป็ป.
ๆดไธชๅฎ่ฃ ่ฟ็จๆไปฌไบบๅทฅไปๅ ฅไบ 3 ๆฌกๆไฝ, ็็ๆฏๅฆๆๅๆณๅฐ่ฟ 3 ไธชๆไฝ่ชๅจๅ.
ๅฎ่ฃ
ๅ็็ณป็ปๅฎ่ฃ
debconf-utils sudo aptitude install debconf-utils
,
็ถๅๆง่ก sudo debconf-get-selections --installer
ๅๆๅฎ่ฃ
้้กน.
่ชๅจๅๅบ็ณป็ป็ๅฐ:
ubuntu@v101091117:~$ sudo debconf-get-selections --installer | grep -F 'partman-auto/'
... ...
partman-auto partman-auto/init_automatically_partition select 10resize_use_free__________/var/lib/partman/devices/=dev=xvda//1048576-268432012799
ๆๅจๅๅบ็ณป็ป็ๅฐ:
$ sudo debconf-get-selections --installer | grep -F 'partman-auto/init_automatically_partition'
partman-auto partman-auto/init_automatically_partition select 80custom__________custom
ๅฏๆจๆต่ชๅจๅๅบ็จไบ "resize_use_free" ่ฟไธช้้กน, ็ธๅ ณ็ฃ็ๅๅบๅบ่ฏฅๆฏๅฎ่ฃ ็จๅบ่ชๅจๅๆ้ๆฉๅบๆฅ็.
่ฎพ็ฝฎ resize ๅๅบๅคงๅฐ, ่ชๅจๅๅบ็ณป็ปๆพๅฐ:
$ sudo debconf-get-selections --installer | grep -F 'partman' | grep size
... ...
partman-partitioning partman-partitioning/new_size string 50%
ๆๅจๅบๅ็ณป็ปไน็ๅฐ:
$ sudo debconf-get-selections --installer | grep -F 'partman-partitioning/new_size'
partman-partitioning partman-partitioning/new_size_commit_failed error
partman-partitioning partman-partitioning/new_size string 200M
ไปๆ ่ฎบไธไธๆ่ฏญไน่ฟๆฏๆฐๅญ้ฝๅฏนไธไบ, ๅฐฑๆฏ partman-partitioning/new_size
่ฟไธช้้กนๆฒก่ทไบ.
่ฟๅทฎไธๆญฅ, resize ๅๅ็ฃ็ๅนถ็กฎ่ฎค, ่ชๅจๅๅบ็ณป็ปๆฅ็:
$ sudo debconf-get-selections --installer | grep -F 'partman' | grep confirm
d-i partman-crypto/confirm_nooverwrite boolean false
d-i partman-lvm/confirm boolean true
partman-lvm partman-lvm/confirm boolean true
partman-partitioning partman-partitioning/confirm_copy boolean
partman-crypto partman-crypto/confirm_nochanges boolean false
partman-base partman/confirm_nochanges boolean false
d-i partman-md/confirm_nooverwrite boolean false
partman-lvm partman-lvm/vgdelete_confirm boolean true
d-i partman/confirm_nooverwrite boolean false
partman-base partman/confirm_nooverwrite boolean false
partman-partitioning partman-partitioning/confirm_resize boolean true
partman-md partman-md/confirm_nochanges boolean false
partman-crypto partman-crypto/confirm boolean false
partman-lvm partman-lvm/confirm_nochanges boolean false
d-i partman/confirm boolean true
partman-base partman/confirm boolean true
partman-md partman-md/confirm boolean false
d-i partman-lvm/confirm_nooverwrite boolean false
d-i partman-partitioning/confirm_write_new_label boolean true
partman-partitioning partman-partitioning/confirm_write_new_label boolean true
partman-partitioning partman-partitioning/confirm_new_label boolean false
ๆจไธช็ไบไธ, ๅพๅฟซไนๆพๅฐไธไธช้้กน, ๅบ่ฏฅๅฐฑๆฏ่ฟไธชไบ:
partman-partitioning partman-partitioning/confirm_resize boolean true
ๆป็ป่ตทๆฅ, ๅฏนๅบ็ 3 ไธชๆไฝ้ ็ฝฎๅฆไธ:
partman-auto partman-auto/init_automatically_partition select resize_use_free
partman-partitioning partman-partitioning/confirm_resize boolean true
partman-partitioning partman-partitioning/new_size string 50%
ไฝๆฏ, ๅฎ่ฃ 14.04.3 ๆถๅ็ฐ, ๅฆๆ่ฎพ็ฝฎไบ "partman-partitioning/confirm_resize=true", ๅฎ่ฃ ็จๅบๅฐฑไผๅกๆญป, ๅฅฝๅ่ฟๅ ฅไบๆญปๅพช็ฏ, ๅฏ่ฝๆฏๅฎ่ฃ ็จๅบ็ไธไธช bug ?