SD Card Access from Ubuntu 16.04.3 on VirtualBox on Windows 7

oracle_virtualbox_logo_1

This post shows how to access an SD card via a USB reader from Ubuntu 16.04.3 running in a virtual machine hosted by VirtualBox version 5.2.12 r122591 (Qt5.6.2) running on Windows 7 SP1. It also covers accessing the SD card from a terminal, ejecting the card and unmounting the SD card reader.

Prerequisites

  • Install VirtualBox on Windows [instructions] (closely matches versions)

  • A USB SD card reader, like an IOGEAR GUH287 at [link]

  • Ubuntu is running in the virtual machine

sd_card_reader_top_2

sd_card_reader_bottom_3

Install the SD Card Reader and the SD Card

1. In the VirtualBox window running Ubuntu (A) click Devices, (B) click USB and note the devices.

usb_settings_virtualbox_4

2. Plug the SD card reader into the computer

plug_sd_card_reader_into_computer_5

3. In the VirtualBox window running Ubuntu (A) click Devices, (B) click USB and (C) click Genesys USB Reader or whatever new device came up. This captures the USB card reader. You’ll hear Windows eject the device (with a da dum) and then hear Windows enumerate the VirtualBox driver (da da!) if this is the first time you’ve plugged this device in.

new_usb_device_6

You should see a checkmark next to the reader after (A) clicking Devices and (B) clicking USB:

device_checkmark_7

4. Insert an SD card into the reader.

sd_card_inserted_8

5. A window will pop up if the SD card has been formatted so that Ubuntu can read it. Note the name of the window.

sd_card_window_9

Access the SD Card from a Terminal

1. (A) Right-click on the Ubuntu desktop and (B) click Open Terminal

open_terminal_10

2. In the terminal type ls /media/pfefferz/C002-DEEF/

access_sd_card_through_console_11

Now you can dd, cp, etc…

Eject the SD Card

Click here to eject the SD card:

eject_sd_card_12

Unmount the SD Card Reader

To unmount the SD card reader (A) click Devices, (B) USB and (C) Genesys USB Reader [9744].

unmount_sd_card_reader_13

Reference

VirtualBox logo from [link]