How do i find the uuid of file swap on ubuntu?



  • File swap can be added on top of device swap, to increase swap space. There are commands to list uuid's of block devices. On file swap when you used mkswap command to make a file into swap space, if give you the UUID on the output, but if you cleared the screen or for some reason cannot retrieve it, this command will show you what it was.

    $ sudo swaplabel /swapfile
    UUID:  7fa980f9-613c-4228-99e0-1b40c5c30de9
    

Log in to reply
 

© Lightnetics 2024