How to mount USB flash drives on the Raspberry Pi and run Windows updates

This article will show you how to mount and use an external USB flash drive on your Raspberry Pi, as well as how to install and run an update from Windows.

This article is for the Pi 2 model B+, but works equally well for the B+ model B+ as well.

If you are using a Raspberry Pi 2 or 3, follow the instructions below to get started.

For the Pi 3, skip to the next section.

If your Pi is a Pi 1, follow these instructions to set up the Pi for an update.

Connect your USB flash disk to the Raspberry PI.

Make sure your Raspberry PI is connected to the internet by SSH, or SSH to your local network.

On your Pi, open up the Terminal window.

Type the following command to open a terminal window on the Pi: cd /mnt/raspberrypi If the command output is a Windows prompt, you have already set up a Linux installation on your Pi.

If it is not, you need to install a package.

Type: sudo apt-get install raspi-config sudo apt install -y rasp-config If you don’t see a prompt asking for a password, then your Pi already has an SSH port set up on your computer.

To open a new terminal window, type: cd ~/Desktop sudo python install If you want to install an update, type the following commands to install the package you want: sudo raspinstall -y Update-RaspberryPi-Pkg InstallThePorts.pkg update If you already have a package on your Raspbian system, run the following sudo apt update sudo apt upgrade The update is now available on the Rasp Pi.

Connect the USB flash device to your Raspberry pi and open the terminal window.

Enter the following text: sudo pcm-upload -p /dev/sdX The USB flash can now be used to download updates from Windows Update, as shown below.

You can check for updates on the system by running: ls -l /m/Downloads If you have installed updates on your system previously, you can restart the Pi to update it.

Type in the following lines to reboot your Pi: sudo reboot Your Pi should now be running Windows updates.

If this doesn’t work, check that the update is installed correctly by typing: wusa-service update If everything looks OK, you will see the update status in the status bar.

If all is well, you should see an update status of “Install”.

To continue, type sudo apt status -a to see all available updates.

You should see the following: Windows 10: Install Windows Update: Available for: 10.0.14393.0 (Build 10586) Packages: Update from Windows Server Update service is now enabled for: Windows.10.0-KB1013898-x86.msu Update from previous Windows versions: Update is not yet available.

[OK] [Not installed] [No update found] [Updating] [Package not found] Installing from a USB flash disc with raspboot (for the Pi)¶ If you prefer to boot from a flash drive instead of from the USB, you may also want to use rasp boot.

To install the RethinkDB software from a disk, you first need to boot the Pi from the hard drive.

Type this command: sudo pi-mount-disk –format usb –type flash –device=/dev/disk/by-uuid/USB-XXXXXXXXXX-x4C6D8B0B.bak -l disk This will mount a flash disk from the Raspberry pi to the USB stick on the computer.

For this example, you want the USB drive as the device to boot on.

If everything is working, you are ready to proceed.

Type cd /usr/share/boot/efi/raspboot and enter the following line to create the directory on the USB disk.

cd /dev/?

The following command will create a directory named flash on the drive.

If the above command is not enough, type this command to change the directory.

sudo mkdir /mkinitcpio/flash If the USB device is mounted to a USB stick, you must first mount the USB sticks USB drive to the device.

Type sudo mount /dev/$(whoami)/flash Now, open the Terminal application on the remote system to boot Windows and install the Windows update package.

If nothing happens after the install, you did everything correctly.

If something is missing, check for errors by typing the following two commands.

sudo ls -lat /dev /mck/update-windows-installer If you got the error “No such file or directory”, you are missing a file on your USB drive.

Run the following to fix that.

sudo reboot Now, type cd /home/pi/rpi-mounts and enter this command.

cd -.

cd This will give