ubuntu install make free - hanyong/note GitHub Wiki

ๅฎ‰่ฃ… ubuntu ็ผฉๅฐๅˆ†ๅŒบ่…พๅ‡บ็ฉบ้—ด่ฎฐๅฝ•

ๆœฌๅœฐ่™šๆ‹Ÿๆœบ 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 ?

โš ๏ธ **GitHub.com Fallback** โš ๏ธ