How to mount usb-stick in RedHat

In this article you will learn fast and easy  way to install usb-stick under RedHat

1. First you need to plug in your pendrive to usb port
2. Check if pendrive is visible in your system:
# fdisk -l

Disk /dev/sda: 10.5 GB, 10522664960 bytes
255 heads, 63 sectors/track, 1279 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c4e75

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        1280     9762816   8e  Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 8954 MB, 8954839040 bytes
255 heads, 63 sectors/track, 1088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/VolGroup-lv_swap: 1040 MB, 1040187392 bytes
255 heads, 63 sectors/track, 126 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb: 15.9 GB, 15938355200 bytes
255 heads, 63 sectors/track, 1937 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00ef95dc

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1938    15564768+   c  W95 FAT32 (LBA)

 

 

As you can see mine usb-stick is visible as /dev/sdb  with mount point: /dev/sdb1

3. We have to create directory into which we will mount our usb-stick:
# mkdir /mnt/usb-stick
3. Last thing is to mount usb to created dir:
# mount  /dev/sdb1 /mnt/usb-stick

 

Leave a Response