Before disconnecting a drive, we recommend that you unmount it first, to ensure that all data has been written to disk. If you pull out the USB cable, there is a high risk of data loss.
Enter the following command:
sudo umount /dev/sdb1 /media/external.