Cannot install USB flash drive on RedHat Linux release 9....

Posted on 2006-05-30
Medium Priority
Last Modified: 2013-12-05
hello everybody, am facing a rather common problem (i think)...
i am new to linux. i was told i have to mount a USB drive to use it. i have tried some commands to mount the drive but in vain. i could really use step by step instructions what exactly i need to do here.

actually i want to install NS2 software on my redhat linux. and a compressed copy of NS2 is in my USB. i cannot connect to the internet from linux to download NS2 there, so i want to copy it from my USB. but am stuck.

please help...

Question by:khanyawar
  • 6
  • 3
LVL 20

Expert Comment

ID: 16791612
Open terminal window and login as superuser ( su).
Now try to get more informations about hardware detected by kudzu ( RedHat )
type :   dmesg

and carefully read lines that contain references to USB . There must be one indicating USB key is detected  and good sign that USB flash memopry is detected is if you can see correct information about storage capacity ( e.g. 128 Mb or 256 Mb etc.)
Most likely your USB flash memory is detected as a SCSI storage in which case it would be identified  as  device
 /dev/sda   or    /dev/sda1  

As a superuser ( root) create USB ( or flash )  directory in /mnt  ( mount) folder as a
mount point for the USB flash memory .

Type:   mount   /dev/sda    /mnt/USB
or        mount   /dev/sda1  /mnt/flash
or        mount   /dev/sda   /mnt/flash

( depending on what naming you choose for your USB device)
and press <ENTER> key
Right after that change to  /mnt/USB  ( or /mnt/flash)  and  type :
to get the list of files displayed on screen an verify USB memory stick is mounted .
If your jumpdrive or USBflas is nmounted properly you can use either Nautilus ( in Gnome) or Konqueror ( in KDE desktop environment) to acces copy and modify your files.
REMEMBER : To mount USB ( or any other storage within Linux files system) you have to
login as root ( su - superuser)
good luck

Author Comment

ID: 16810364
how do i creat a directory USB in /mnt?

and also when i execute dmesg i can see a long list of detected hardware but i cant seem to find any sda or sda1 entry.
the last 2 lines read:
hub.c: new USB device 00:1f.2-2, assigned address 2
usb.c: USB device 2 (vend/prod 0xea0/0x2168) is not claimed by any active driver
LVL 20

Expert Comment

ID: 16811957
To create mount point for USB flash drive open terminal console and type :
su    ( to login as root with system administration privileges )
type root password

now type :      cd    /mnt       ( to change to /mnt directory )
type:               mkdir usb       ( or usbflash if you like)  and press enter
type:               ls                    ( "eL-eS"  to get the list of subfolders within  /mnt folder and to
make sure you ca see newly created usb ( or  usbflash  subfolder   )  
   If you can see it you've just created mount point for your USB flash drive !!!
Once you plug your physical USB flash drive in usb port , you have to mount USB flash device
in order to see its contents.
      As I said before "most likely your USB flash memory is detected as a SCSI storage in which case it would be identified  as  device    /dev/sda    or     /dev/sda1" .  Sometimes other Linux distributions (Like Debian based Xandros) will identify USB flash drives as  /dev/scsi/host1/bus0/target0/lun0/part1   and will automatically mount jumpdrive in /var/autofs/zip.1/zip.1. From what I know RedHat Linux 9 won't automount the drive so you have to manually mount USB device. To do that  make sure USB jumpdrive is pluged in and as root ( or su superuser) type:

mount   /dev/sda1   /mnt/usb

then type:    cd   /mnt/usb      ( access USB drive)
and then type :   ls          ( to get the files list displayed)
Still having difficulties? OK,then type in terminal console windows ( as  root/superuser)
      dmesg  | tail             ( note there is a pipe character between words "dmesg" and "tail"
this should return the message similar to this one:

Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 501759 512-byte hdwr sectors (257 MB)
sda: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
scsi singledevice 1 0 0 0
so you should be able to identify device and mount it porperly


If you're having difficulties mounting USBdrive  e.g. Linux is complaining about missing information in
/etc/fstab   file  you can edit  fstab  ( file system table configuration file) and add the line that reads:

/dev/sda1      /mnt/usb     vfat     rw,user,umask=0222 0 0
or this variation
/dev/sda1     /mnt/usb      vfat     noauto,rw,users,umask=0 0 0

and save it . Now try one more time command :    mount /dev/sda1 /mnt/usb

good luck

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

LVL 20

Accepted Solution

nedvis earned 400 total points
ID: 16812062
RH9 supports both USB1 and USB2 type drives
When using ext3 journals file system, USB devices attached to system will cause
a kernel panic during startup if you use fstab.
Instead, mount them with  command:

   mount -t ext3 /dev/sda1 /mnt/usb

On some older kernels <= 2.4.x and/or without all the USB features
enabled you may have to mount it manually. Provided the device is
properly detected when plugged into the port you would use the "mount"
command to do something like this:

   mount -t vfat /dev/sda1 /mnt/usb


Author Comment

ID: 16814485
thanks i can access my USB now !!, as u might have guessed i am total useless with linux. can u tell me how i can safely copy a .tar file from my USB in to the hard disk and then extract it?
the file name is ns-allinone-2.29.2.tar.tar, its a software called NS2.

P.S i think u deserve more than 50 points for helping me out. thanks alot
LVL 20

Expert Comment

ID: 16818425
Are you sure NetworkSimulation installation file name is ns-allinone-2.29.2.tar.tar ?
Original package is  g-ziped tar archive ns-allinone-2.29.2.tar.gz as foun here:

You can decompress files with the extension  .tar.gz  using the gunzip and tar commands as follows:

 gunzip filename.tar.gz

 tar xvf filename.tar


LVL 20

Expert Comment

ID: 16818506
To copy tar.gz archive file from your USB jumpdrive to the hard disk type:

   cp    /mnt/usb/ns-allinone-2.29.2.tar.gz     /home/user-name

( synthax  is:    cp ( for copy)  source (  /mnt/usb/ns-allinone-2.29.2.tar.gz  )  target  (  /home/user-name )
 then as root execute this command :
  gunzip  /home/user-name/ns-allinone-2.29.2.tar.gz    ( to decompress file ) and then untar file
  tar  /home/user-name/ns-allinone-2.29.2.tar  


Author Comment

ID: 16823422
thanks nedvis, thanks a lot man!
LVL 20

Expert Comment

ID: 16823638
It's my pleasure !
Have a nice weekend!
I just came from Alum Creek Lake ( Delaware,Ohio, USA) with two 4lb catfish and two 7lb carp.
Tomorrow morning hopefully my bag will be filled with even more fish!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month16 days, 21 hours left to enroll

864 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