--- title: "Mounting or unmounting a USB device using the CLI" slug: "mounting-or-unmounting-a-usb-device-using-the-cli-1" tags: ["File Protect (FX)", "Product Usage"] updated: 2026-09-08T23:58:24Z published: 2026-09-08T23:58:24Z canonical: "docs.trellix.com/mounting-or-unmounting-a-usb-device-using-the-cli-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Mounting or unmounting a USB device using the CLI Use the commands in this topic to manually mount or unmount a USB device to the attached appliance. Trellix recommends that you physically remove the USB device from the port. Use the` media usb mount `command before you attach the drive, and use the` media usb eject `command after you unplug it. ### Note The` media usb eject `command will have no effect if the USB device is not mounted. Prerequisites - Admin access To mount a USB device: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Mount the USB device to the attached appliance: ``` hostname (config) # media usb mount ``` To unmount a USB device: 1. Go to CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Unmount the USB device from the attached appliance: ``` hostname (config) # media usb eject ``` :