Dept. of Computer Science & Engineering

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commons:resize_vdi [2016/10/24 19:18]
commons:resize_vdi [2018/07/16 15:33] (current)
Line 180: Line 180:
 ### Recreate SWAP ### Recreate SWAP
-Before moving on to the next +Before moving on to resizing ​the filesystem, you can take a moment to fix your swap space:
     $ sudo mkswap /dev/sda5     $ sudo mkswap /dev/sda5
Line 186: Line 186:
     no label, UUID=0880b61e-33ed-43ca-8d8c-b6911e57a84d     no label, UUID=0880b61e-33ed-43ca-8d8c-b6911e57a84d
     ​     ​
 +Now copy the ''​UUID=0880b61e...''​ line, and open ''/​etc/​fstab''​ in a text editor:
 +    $ sudo nano /etc/fstab
 +Find the line that specifies ''​swap''​ in the ''<​type>''​ column. Delete the first word in that line, up to the first space (it will either say ''/​dev/​sda5''​ or ''​UUID=...''​). Replace that word with the ''​UUID=...''​ that you got from ''​mkswap'',​ then save the file. Now your system is configured to use the new swap space when you boot up.
 ## Resizing the filesystem ## Resizing the filesystem
commons/resize_vdi.txt ยท Last modified: 2018/07/16 15:33 (external edit)