Zerofree -v /dev/sda1 Īs the machine shuts down, you’ll be prompted to remove the installation media and press Enter. Instead, before the disk configuration step, press Ctrl + Alt + F2 to get a different terminal (see this post). Important Do NOT follow the server install wizard- it will overwrite your hard drive. In the end, I downloaded an Ubuntu 18.04.5 LTS server install ISO and booted the Hyper-V virtual machine from that. I finally found zerofree, which looks like it should to the same thing as SDelete.īut: zerofree won’t write to a partition in read-write mode, the instructions on the man page didn’t work for mounting as read-only, and I was unable to get into the grub menu under Hyper-V to start in recovery mode. In Windows, that’s easy with Sysinternals SDelete, which runs on the active partition to write zeros to free space.įor Ubuntu Linux, there are of course lots of threads about how to do this ( example), how long it takes, whether it’s considered a secure wipe (which doesn’t matter in this situation), etc. In this case, I wanted to archive a Hyper-V virtual machine (export it and zip it up) that is running Ubuntu 18.04 LTS server.Ĭompression is much more efficient if you can write zeros to the unused portion of the disk before exporting and compressing. Stuff that is simple in Windows takes forever to figure out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |