How do I mount a USB drive through the terminal in CENTOS and how do I view all mounted devices?

Posted on 2009-12-21
Last Modified: 2013-12-16
I am going to be using something called gluster storage platform which can be referenced at  I have followed the instructions and copied the files to the usb and then tried to boot to it from no avail.  

Now I am starting over and trying to do everything through the terminal, mount usb, format the filesystem, download the files, copy to the usb to make it bootable.  The link below gives detailed instruction on what I'm trying to do.  It suggests that the server or machine needs to be made able to boot from usb, but that has already been done.  If anyone can provide detailed instructions, it would be greatly appreciated!  Please see the link below.  I have a machine running CENTOS and a machine running UBUNTU.
Question by:ryanscruggs
    LVL 35

    Expert Comment

    Plug in your pendrive.
    In the terminal, type:

    and check the last few entries. It should be referencing a device (/dev), most likely /dev/sdb1 or similar.

    Then type:
    #mkdir /pendrive
    #mount /dev/sdb1 /pendrive

    You can view all mounted devices typing

    To remove the pendrive again, type:
    #unmount /pendrive
    #eject /dev/sdb1

    (Note: don't type the '#', it represents the prompt)
    LVL 35

    Accepted Solution

    In the comment above, replace:

    #dmesg | tail

    How did you manage to copy those files to your USB drive in the first attempt, if that drive was not already mounted?
    You will not be able to mount an already mounted filesystem.

    Another test to see if the drive is already mounted would be typing:
    #fdisk -l

    This will show you all mounted partitions.

    If you simply untarred and copied files over to USB in your first attempt, this was doomed to fail because that did not make the pendrive bootable. So following the manual instructions is the right way to go.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now