On linux, the easiest way to unmount drives on linux is to use the “umount” command. How To Format Pendrive In Ubuntu Using Terminal