How can I delete everything off of my SSD hard drive, or namely the grub loader?
Andrew Mclaughlin
I'm currently using a live CD and I am attempting to delete everything off of my harddrive. So, I've used the command sudo nautilus and attempted to delete everything off of my SSD. However, I cannot delete the folder rofs (Read only file system). I generally would have absolutely no issues with this, however, I believe it is causing everything I delete to come back to life upon restarting the computer.
Prior to using Nautilus to do this, I've used sudo shred -vz -n 1 /dev/sda2, and dd if=/dev/zero of=/dev/sda2 but it doesn't seem to work. The grub loader still exists, I wish to demolish it, and preferably all other files.
How can I remove the grub loader, and if possible, how can I delete the rofs folder entirely?
2 Answers
IF your trying to delete everything, why not use
$sudo gpartedto simply reformat? That would get rid of everything... period.
Also ROFS might refer to the medium that the live distro is written/burned/saved on (I could be wrong).
Maybe your grub resides on MBR, and by dd-ing all of /dev/sda2 you just get ride of your data, files and folders, not your boot loader.
On the other hand, If you loose your boot loader, you can't boot up with that disk at all. So, after deleting the content, use
sudo fdisk /dev/sdaTo remove that partition and write changes to table. When that partition (dev/sda2) is completely gone and shown as free space, you're done. (still you can low-level format to make sure recovering is almost impossible.)
Low-level formatting is a procedure where you write data directly to the storage medium, bypassing the filesystem layer.