Random stuff I learned in Linux (volume 1)

Author:

I’ve never had load or offload files from my flash drive to a headless Linux system so I wanted to try it.

Type lsbk To list all the drives. you usually can identify the one you need based on the amount of space. In my case it will be the sda.

Make a mount point sudo mkdir /mnt/flashdrive/

Note spacing is important.

sudo mount /dev/sda /mnt/flashdrive/

cd /mnt/flashdrive

ls to view the files on the drive.

cp /mnt/flashdrive/raspie.txt /home/pi/backups/ to copy files. file path of chosen file and path you wish to copy to.

Navigate out of the mount point before on unmounting and ejecting the drive.

sudo eject /dev/sda

sudo umount /mnt/flashdrive/