March-27th-2018, 11:41 AM
This is an easy one.
Insert the USB stick. On netPI the 1st stick will be mounted in netPIs host linux as /dev/sda and /dev/sda1. The device /dev/sda1 will the device drive that gives you the access to the file contents.
Now if you now start your container you have to start the container with privileged mode. This is the first point. Second is to add the device /dev/sda1:/dev/sda1 into the container when you start it.
If you now jump into the container and make a ls /dev you will now see the device /sda1. But it is not mounted yet. You can additional use the fdisk -l command to list you USB device.
Make sure you are root in the container. Then you can do the following:
* create a folder such as with mkdir /tmp/mydrive
* use the command mount /dev/sda1 /tmp/mydrive
* jump into the folder with cd /tmp/mydrive
and you are right in the USB stick.
Insert the USB stick. On netPI the 1st stick will be mounted in netPIs host linux as /dev/sda and /dev/sda1. The device /dev/sda1 will the device drive that gives you the access to the file contents.
Now if you now start your container you have to start the container with privileged mode. This is the first point. Second is to add the device /dev/sda1:/dev/sda1 into the container when you start it.
If you now jump into the container and make a ls /dev you will now see the device /sda1. But it is not mounted yet. You can additional use the fdisk -l command to list you USB device.
Make sure you are root in the container. Then you can do the following:
* create a folder such as with mkdir /tmp/mydrive
* use the command mount /dev/sda1 /tmp/mydrive
* jump into the folder with cd /tmp/mydrive
and you are right in the USB stick.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)