khanyawar
asked on
Cannot install USB flash drive on RedHat Linux release 9....
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...
regards,
yawar
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...
regards,
yawar
ASKER
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
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
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/targe t0/lun0/pa rt1 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/targe t0/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
nedvis
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/targe
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/targe
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
nedvis
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
the file name is ns-allinone-2.29.2.tar.tar
P.S i think u deserve more than 50 points for helping me out. thanks alot
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:
http://prdownloads.sourceforge.net/nsnam/ns-allinone-2.29.2.tar.gz?download
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
nedvis
Original package is g-ziped tar archive ns-allinone-2.29.2.tar.gz as foun here:
http://prdownloads.sourceforge.net/nsnam/ns-allinone-2.29.2.tar.gz?download
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
nedvis
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-allinon e-2.29.2.t ar.gz ( to decompress file ) and then untar file
tar /home/user-name/ns-allinon e-2.29.2.t ar
cp /mnt/usb/ns-allinone-2.29.
( synthax is: cp ( for copy) source ( /mnt/usb/ns-allinone-2.29.
then as root execute this command :
gunzip /home/user-name/ns-allinon
tar /home/user-name/ns-allinon
ASKER
thanks nedvis, thanks a lot man!
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!
nedvis
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!
nedvis
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 :
ls
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
nedvis