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

Mounting a USB device on Red hat Enterprise Linux 5 32-bit x86

Hi Experts,

I'm expiriencing problems in mount an external usb hdd from Transcend on my Linux system.
I have connected my usb device to my red hat system and managed to find it when excecuting tail -f /var/log/messages -n 25 and it appeared as a sdb scsi drive. I then checked my dmesg but could not find any scsi device. I then checked my /proc/scsi/scsi and could find my usd device details.I then created the following directory as my mount point /mnt/usb .

When I try to mount the device using the following command mount -t vfat /dev/sdb /mnt/usb then decive does not mount as it is unable to locate /dev/sdb.

Experts will you kindly assist me in providing me with a way of mount a usb device under Linux.

The Duke
  • 2
1 Solution
Maciej SsysadminCommented:
/dev/sdb is just device. You need to have some partition(s) on this device to mount it.
If you have some already, you can check them with fdisk -l /dev/sdb
If you don't have them - create them :) (start with fdisk "/dev/sdb" command, and then choose proper options).

Then - assuming you have created one partition - it will be named /dev/sdb1. So, to mount your drive run:
First, create mount point with command: "mkdir -p /mnt/sdb1", then mount your drive to this newly craeted directory: "mount /dev/sdb1 /mnt/sdb1"
command mount -t vfat /dev/sdb1 /mnt/usb

add the partition number  1

check with  #  ls /dev/sd*
also check #   mount

to see if it has not been automatically mounted for you already.
LinuxDukeAuthor Commented:
The usb is mount under /dev/sdb when you use fdisk -l /dev/sdb it  shows you and you get the device mount point from dmesg. To mount it you use mount -t vfat /dev/sdb /mnt/usb which is similar to diepes answer.
Maciej SsysadminCommented:
I gave the same solution (fdisk instead of ls, but if you run this, you should see, that it doesn't matter). May I know, what diepes wrote, which I didn't?

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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