how to get ubuntu to read usb drive

C++
sudo fdisk -l
Source

Also in C++: