How to access a usb flash drive from the terminal? (How can I mount a flash drive manually?)


Ever want to watch a video on your phone or tablet without wasting its storage space? Or maybe you just need to view a file your friend gave you. Most modern Android devices support standard USB drives, so you can plug in a flash drive just like you would on a computer.

Modern versions of Android have improved support for external storage devices, but on some older devices, this process may require rooting. So we’ll discuss both methods here, starting with the easy, non-root method for newer phones and tablets.

First: Get a USB OTG Cable

You’ve probably noticed that your phone doesn’t have a normal USB port. In order to connect the flash drive to your phone or tablet, you’ll need a USB on-the-go cable (also known as USB OTG). These cables can be had for $5 or so on Amazon. It’s a short adapter cable with a small MicroUSB connection at one end and a larger USB connection at the other end.

Unfortunately, this may not work on some devices....

0 0

If you have downloaded an ISO image of another operating system, say Ubuntu Linux or Windows 10, and you wish to turn that ISO image file into a bootable USB installer drive using a USB flash drive or USB key, you’ll find the most reliable way to copy or ‘burn’ the ISO to that target USB volume is by turning to the command line of Mac OS X. There are alternative solutions, but this command line approach using dd requires no third party downloads, it is quite fast, and is consistently reliable in producing bootable volumes out of ISO files.

It’s important to note this is somewhat advanced and should only be used by Mac users who are thoroughly comfortable with the command line. By using sudo dd, there is little margin for error, and a wrongly implicated disk identifier could result in permanent data loss. That risk makes this method not appropriate for novice OS X users, instead, those users should turn to the simpler approach of using Disk Utility to burn an ISO the...

0 0

Most people who work with their computer more or less regularly are sure to have a flash drive (and even several of them). Sometimes a flash drive can become faulty, for example after a failed formatting or due to some errors.

Quite often the file system comes to be recognized as RAW, the flash drive cannot be formatted or even accesses… What can be done if that is your problem?

This manual for repairing a flash drive is intended to deal with all sorts of USB drive issues except cases of mechanical damage. The drive manufacturer does not matter, in fact, be it Kingston, Silicon Power, Transced, Data Traveler, A-Data etc. All actions to be taken are given step by step.

Getting to Know Flash Drive Parameters (Manufacturer, Controller model, Memory size)

It may seem very easy to know the flash drive parameters, especially when the manufacturer and memory size are specified on the drive case. The matter is that USB drives, even belonging to one model...

0 0

Microsoft BitLocker offers a free and easy way to encrypt a USB flash drive.

If you carry corporate information on a standard USB flash drive and it gets lost or stolen, the resulting data breach can be catastrophic. That's why you should carry your data on an encrypted flash drive.

In fact, in many cases the use of an encrypted flash drive is required for regulatory compliance or data protection law.

The easiest way to ensure that data on flash drives is protected by encryption is to buy an encrypted flash drive such as the IronKey or Aegis Secure Key, both of which encrypt data automatically in hardware and can be used on computers running Windows, Linux and Mac OS X.

The Ironkey requires a password to be typed into a window that pops up on screen before files on the drive can be accessed, while the Aegis Secure Key requires a PIN or password to be entered using tiny keys on the flash drive itself before its contents can be accessed.


0 0

How do I exit a man page when finished viewing? Although the answer to this question is well known, due to how many times I have been asked how to exit a man page or info page once done viewing, I thought I should put up a quick answer. Linux manual pages aka. man pages are provided with almost all software available for Linux and house important documentation about a program and explain how to use it.

Linux manual pages can be easily accessed via the terminal by typing man program-name.

Manual or info page navigation can be accomplished by using the up and down arrow keys or in some cases, by pressing enter for more

Once your finished viewing a manual or info page, you can exit or close the manual by simply pressing q. This will return you to the command prompt within the open terminal.

Example usage of man page:

Open a terminal and type man ftp (to open the manual for the ftp application) Use the up and down arrow keys on your keyboard to...
0 0


DiskPart is a text-mode command interpreter in Windows family. This tool enables you to manage objects (disks, partitions, or volumes) by using scripts or direct input at a command prompt.

As Robert mentioned, please run CMD as administration, and use this command to clear read-only attribute on your flash drive.


sel disk

attrib disk clear Readonly

attrib disk

DiskPart Command-Line Options

If the issue persists, please follow steps in this article to check the issue:

How To Fix Write Protection Errors On a USB Stick

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found...

0 0

OS X Mavericks is available in the Mac App Store now, but it's only an upgrade—but if you want to do a clean install, you'll need to manually burn an installation flash drive. Here's how to do it.

Sadly, the old method for Lion and Mountain Lion doesn't work anymore, but thanks to MacRumors forum user tywebb13, we've got another simple method for Mavericks. Here's what you need to do:

Download OS X Mavericks from the Mac App Store, if you haven't already. If it tries to start the installation, just close it. Insert your USB drive (you'll need one that's 8GB or larger) and open Disk Utility. Select your drive in the sidebar and go to the Erase tab. Format the drive as "Mac OS Extended (Journaled)" and name the drive "Untitled." (Note: if you already have a drive or partition named "Untitled" connected to your computer, name it something else and change the corresponding variable in step 5's terminal command, or you might experience data loss!). Click the Erase button...
0 0

With OS X El Capitan, Yosemite, or Mavericks, you can use a USB flash drive or other removable media as a startup disk from which to install OS X.

These advanced steps are intended primarly for system administrators and others who are familiar with the command line.

Use the 'createinstallmedia' command in Terminal

Download the OS X installer from the Mac App Store. Quit the installer if it opens automatically after downloading. The installer will be in your Applications folder. Mount your USB flash drive or other volume. You could also use a secondary internal partition. Open the Terminal app, which is in the Utilities folder of your Applications folder. Use the createinstallmedia command in Terminal to create the bootable installer. Examples of this command are in the next section. For detailed usage instructions, make sure that the appropriate Install OS X app is in your Applications folder, then enter one of the following paths in Terminal:

Path for El...

0 0

This page discusses various multi-platform methods on how to create an Arch Linux Installer USB drive (also referred to as "flash drive", "USB stick", "USB key", etc) for booting in BIOS and UEFI systems. The result will be a LiveUSB (LiveCD-like) system that can be used for installing Arch Linux, system maintenance or for recovery purposes, and that, because of the nature of SquashFS, will discard all changes once the computer shuts down.

If you would like to run a full install of Arch Linux from a USB drive (i.e. with persistent settings), see Installing Arch Linux on a USB key. If you would like to use your bootable Arch Linux USB stick as a rescue USB, see Change root.

BIOS and UEFI Bootable USB

Using dd


This method is recommended due to its simplicity. If it does not work, switch to the alternative method

#Using manual formatting



This will irrevocably destroy all data on


. To restore the USB...

0 0

Right-click the mouse on the Desktop and choose "Open Terminal" from the pop-up menu.

Type "su" and press "Enter." Then type your root password and press "Enter" to get administrator (root) privileges.

Type "cd /mnt" and press "Enter."

Type "mkdir usb" and press "Enter" to create a USB directory.

Type "cd /etc" and press "Enter."

Type "cp fstab fstab_original" and press "Enter" to back up the original fstab file.

Type "nedit fstab" and press "Enter" to edit the fstab file.

Add the following line at the end of the fstab file in the nedit editor:
/dev/sdc1 /mnt/usb auto noauto,user,rw 0 0

Click "File" > "Save" to save the file. Then click "File" > "Exit" to exit nedit.

Type "exit" and press "Enter" to exit the root shell.
Note: Steps 2 to 10 are only a one-time procedure. Once they are done, always start from the Step 11.

Insert a pen drive into a USB port.

Type "mount...

0 0

GParted Live is a small bootable GNU/Linux distribution for x86 based computers. GParted Live enables you to use all the features of the latest versions of the GParted application.

This manual describes how to use the GParted Live image, from boot up to shut down.

This section describes how to boot up GParted Live on your computer.

If your computer does not boot from CD-ROM discs or USB flash drives, then see the section called “Appendix A: Preparing BIOS”.

To start GParted Live:

Power on your computer with the media containing GParted Live.

If using a USB flash drive, insert the USB flash drive into an open USB port and turn on the power for your computer.

If using a CD-ROM disc, turn on the power for your computer and quickly insert the CD-ROM disc in the CD-ROM tray of your computer.

To use the default settings, press the ...

0 0

In addition to using the standard mount command (which requires root) you can mount drives using udisks and dbus with your standard user.

To do this it is useful (but not required) to know a few things about the drive first:

What device it is (i.e. /dev/sdb1) what filesystem it uses.

Knowing these you can use a simple command to mount a drive from the command line.

gdbus call --system --dest org.freedesktop.UDisks --object-path /org/freedesktop/UDisks/devices/ --method org.freedesktop.UDisks.Device.FilesystemMount "" []

this call should echo the path it is mounted at if the mount succeeds.

To unmount drives mounted in this way you can run:

gdbus call --system --dest org.freedesktop.UDisks --object-path /org/freedesktop/UDisks/devices/ --method org.freedesktop.UDisks.Device.FilesystemUnmount []

N.B. the is simply the end of the path to it. So for example if what you want to mount is at /dev/sdb2 then you would put sdb2 in place of .


0 0

By Jason Jones
Posted: 16 Feb 2005

*note* Before you begin trying to do this manually, make sure Linux has not all ready mounted your drive to your Desktop automatically.

There are two ways to manually mount your flash drive in Linux.

The first way we’ll describe should be used if you are going to rarely mount your drive, or only mount it once.
The second way we’ll explain should be used if you plan on using your flash drive on a more regular basis.

procedure to manually mount drive once

Plug in the flash drive into one of the USB ports on your computer.

These usually are found on the back-side of your computer. Some newer models also have some ports on the front panel.

After you’ve plugged it in, you’ll want to open a terminal window and become the “root” user. This user is the only one which can access the commands to manually mount your drive. To become the root user, type in the following commands.

0 0

This page explains how to use USB drives, like external hard disks and USB flash drives (aka USB sticks, thumb drives, pen drives, etc). The material here also applies to flash cards (like in your digital camera).

USB storage devices have the enormous advantage that for the most part they use a standard set of protocols. Thus, instead of needing individual drivers, as does much computer hardware, a standard driver permits access to the devices, making them very portable and able to easily work on many platforms.

For help with internal hard drives, see Fstab and MountingWindowsPartitions.


By default, storage devices that are plugged into the system mount automatically in the /media/ directory, open a file browser window for each volume and place an icon on your desktop. The rationale for this slight change of behavior can be found here. If you plug in a usb hard disk with many partitions, all of the partitions will automatically mount. This...

0 0

I have a Lexar 16GB USB stick and for some reason it won't mount. Ubuntu won't even recognize it.

Info about it...nothing much. I used it once as a Backtrack LiveUSB and tried to use it once as an Ubuntu Studio 12.10 LiveUSB (ended up with a Kernel Panic). So now I am trying to just reformat it (easiest/fastest way to wipe everything off) and just use it as a regular USB drive or maybe use it as a Backtrack LiveUSB again.

Is there any way I can force Ubuntu to recognize it? I know the port works as my USB mouse receiver works fine.

I'm running Ubuntu 12.04 LTS (old hardware, I'll upgrade soonish) on a Toshiba Satellite A105.


By using this guide I was able to force-mount it, but it still doesn't show up in Places (PCManFM because I use LXDE) like it usually does. Another strange thing, neither does the Windows NTFS partition I set to automount.

It appears that my system has stopped auto-mounting things. The devices show up in their...

0 0

Sometimes it may happens in some stage, you may have to access data on a Windows partition, USB device or any similar device. Today most of the modern Linux systems automatically recognize and mount any disks.

However, in some occasions where you may required to configure your system manually to mount ntfs partitions on your Linux system. Specially when you are using dual boot operating environment. Fortunately, this process is not so complicated task its just very fairly straight forward.

How to mount Windows NTFS Partition in Linux

This article explains you on how to access or mount Windows XP, Vista NTFS or USB filesystem using the ‘mount‘ command in RHEL/CentOS/Fedora systems.

How to Mount Windows NTFS Partition in Linux

First you need to enable EPEL (Extra Packages for Enterprise Linux) Repository. You may refer the article on how to enable EPEL Repository under RHEL, CentOS and Fedora systems.

To mount any NTFS based filesystem, you...

0 0

Whether you call them USB flash disks, memory sticks, keys or drives they are a useful accessory in the world of computers. By now many people will have a collection of various devices of varying capacities. Using them with the Pi is a great way of getting some use out of them rather than letting them gather dust in a drawer.

I tend to transfer files from my Pi using FTP but occasionally it is useful to get stuff onto a USB drive. There are lots of guides already out there but I had a few issues using most of them, mainly due to permission problems. My main goal was to clarify the process by which I could mount standard FAT32 drives and allow the default Pi user read/write permissions.

So here is my procedure for using USB flash drives with the Raspberry Pi where the Pi user has permissions to use it without needing “sudo”. It works great with the shiney new Kingston Digital 32GB DataTraveler Micro I’ve just bought myself.

Step 1 – Plug In The Device

0 0

If you recently bought a Samsung Galaxy S3, you have probably noticed that it does not have the USB Mass Storage Mode or UMS. In this tutorial I will show ...

If you recently bought a Samsung Galaxy S3, you have probably noticed that it does not have the USB Mass Storage Mode or UMS. In this tutorial I will show you how you can bring this feature back to your Galaxy S3 without rooting your device or loosing your warranty easily.

Before proceeding further, make sure you backed up your data. Once you data is safe and secure continue following the steps below.

Step 1: First you will need to download a small app on your computer hosted in Dropbox.

Step 2: Once the app is downloaded, connect your Galaxy S III phone with your computer using USB cable. Copy the downloaded app on your phone.

Step 3: Now locate this app on your phone and tap on it to start the installation.

Step 4: Follow on-screen instructions to install the...

0 0