How to mount a USB drive on Red Hat Linux

Solved
hilko -  
 ser -
Hello,

I can't mount my USB stick on Red Hat Linux 8.0, could you tell me the command to mount the stick?

9 answers

[Dal] Posted messages 6122 Registration date   Status Contributor Last intervention   1 108
 
Hello hilko,

As root, create a directory that will be your mount point, if you haven't already done so. For example, "mkdir /mnt/usbflash".

Load the USB disk management module (in case it wasn’t loaded on startup) by running modprobe usb-storage

Connect the USB flash drive

cat /proc/scsi/scsi should indicate the connected hardware (USB flash drives are recognized as SCSI disks).

Mount it by running mount -t vfat /dev/sda1 /mnt/usbflash (try without "-t vfat" at first, if you get an error message requiring the type, add it, if your drive is properly formatted as fat32)

The content of your USB flash drive should now be accessible under /mnt/usbflash

When you're done, run umount /mnt/usbflash before removing the USB drive.

Dal
42