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

Posted on 2006-05-30
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
    LVL 20

    Expert Comment

    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

    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

    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

    LVL 20

    Accepted Solution

    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

    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

    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

    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

    thanks nedvis, thanks a lot man!
    LVL 20

    Expert Comment

    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!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    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…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now