Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. * Detach boot disk from problematic instance
  2. * Create new instance (on free tier)
  3. * Attach boot disk to instance
  4. * ssh in to new instance and mount disk
  5.  
  6. ```
  7. lsblk
  8. sudo mkdir /vol_1
  9. ```
  10.  
  11. Typically the last entry in lsblk, which is not mounted, will be the attached volume.
  12.  
  13. ```
  14. sudo mount /dev/sdf /vol_1
  15. ```
  16.  
  17. * Do whatever on disk.
  18.  
  19. * Dettach disk
  20. * Attach to original instance as `/dev/sda1`
  21. * Start problematic instance
  22.  
  23. Note that unless you have attached an elastic IP the public IP will change on restart of the instance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement