• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1516
  • Last Modified:

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

I am going to be using something called gluster storage platform which can be referenced at gluster.com.  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.

http://gluster.com/community/documentation/index.php/Gluster_Storage_Platform#Gluster_Storage_Platform
0
ryanscruggs
Asked:
ryanscruggs
  • 2
1 Solution
 
torimarCommented:
Plug in your pendrive.
In the terminal, type:
#dmesg

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
#mount


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


(Note: don't type the '#', it represents the prompt)
0
 
torimarCommented:
/edit:
In the comment above, replace:
#dmesg

by
#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.

ps:
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now