My application is to do a secure erase on my system disk (an SSD) using hdparm from a shell script. So my thoughts were:
- create a ramdisk
- copy the linux OS to the ramdisk
- unmount the original system drive
- do a secure erase
I created the ramdisk and mounted it, but when I do a pivot_root, it can't find any of the applications. I copied all of /bin and /sbin to the ramdisk.