gilhuguley wrote:
How can I get the USB drive to /home/pi/shared?
Easy. File manager (pcmanfm) auto-mounts usb drives to /media/pi.
You can easily manually
mount a drive anywhere in your filesystem using the terminal:
To mount a drive, run a command like this:
Code: Select all
sudo mount /dev/sda1 /home/pi/shared/mounted_disk
What is /dev/sda? It's the path to the usb device. Yours may be different, so to see all available usb drives, run this command:
lsblk -o path,mountpoint,size
What is the 1 in /dev/sda1? That's the partition number.
A normal USB drive will only have one partition (fraction of the disk space to store files), but a Raspbian SD card will have 2 partitions. Partition 1 is /boot, and partition 2 is root (/).
I've developed the
most intuitive RaspiOS img editor on the planet.
With a
GUI similar to Gparted, managing imgs and sd cards is a breeze!
Boot it in a
VM,
Flash from the Internet at top speed,
Mount (to drop in files),
Shrink/Expand,
Repair, and more.
https://github.com/Botspot/Pi-Power-Tools
> 400 users!
