Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to install usb flash memory stick on RH Enterprse 3

Status
Not open for further replies.
Dec 18, 2002
59
GB
Hi Gurus,
Please advise how I can make my Red hat Enterprise version 3
running 2.4.21-32.0.1.EL kernel to automatically mount and umount the flash usb memory stick.
Many thanks
 
I don't ever recall I could do that with a 2.4.x kernel. AFAIK, you'll need 2.6.x and the HAL daemon.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Hi zeland,
But I Can't do it on fedora 3 running 2.6.9-1.667 kernel either?
I can mount as root by hand but not as normal user? ideally I would like it to mount automatically for all the users?
any ideas? Thanks for your help
 
I can't remember if FC3 has HAL & DBUS. FC4 does and it does what you want. Try getting HAL and see if you can make it work on FC3.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Hi

You can setup RH to mount automatically without the HAL daemon, youhave to edit your /etc/fstab with something like the following depending on your environment:

# to enable a RH 9.0 pc top mount a usb device enter the following in the
# /etc/fstab as root

/dev/sda1 /mnt/usb auto noauto,user,owner,sync 0 0

# Then create the mount point

mkdir /mnt/usb

# Set the permissions to 777

chmod 777 /mnt/usb

and any user can issue the mount usb command

Under Fedora Core 3 it changed when you connect a usb device you will need to check what FC3 recognises it as, once it's inserted the fstab updates automatically, this will allways be /media/device for exammple /media/Kingston or /media/USB_DEVICE

once you know what it's called just create the mount point and then you can mount it as normal.

Bamber
 
Hi Bamber, Thanks for your time.
I tried by doing all as above ie adding the entry in /etc/fstab and chmod 777 /mnt/usb, but I get the following message after trying to mount:-

$ mount /mnt/usb
mount: /dev/sda1 is not a valid block device



please note the usb flash drive works fine on windows xp.
any ideas?
 
This might mean that your flash drive is not sda1 or not detected. With your flash drive pluged in, try doing a fdisk -l as root to see what device node points to your flash drive.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Hi Zeland/Bamber
Here is what I get from fdisk -l

root]# fdisk -l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 4863 18579172+ f Win95 Ext'd (LBA)
/dev/hda5 2551 4080 12289693+ 7 HPFS/NTFS
/dev/hda6 4795 4862 546178+ 82 Linux swap
/dev/hda7 4081 4794 5735173+ 83 Linux

Partition table entries are not in disk order
[root@cybermax root]#

/dev/sda1 is not recognised?
any ideas?


 
Your system might not be detecting your flash drive or USB Mass Storage supprt is not available. After you plugin your flash drive, do a dmesg | grep -i usb. You should see something like below:

usb 1-4: new high speed USB device using ehci_hcd and address 5
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: USB Model: Flash Drive Rev: 1.12
usb-storage: device scan complete

If you don't get any message with regards to your USB flash drive, you may need to look into your kernel to see if USB & USB Mass Storage support is enabled.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Hi zeland, Here is what I get for dmesg | grep -i usb

[root@cybermax root]# dmesg | grep -i usb
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe0854000, IRQ 5
usb-ohci.c: usb-00:03.0, Silicon Integrated Systems [SiS] USB 1.0 Controller
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
usb-ohci.c: USB OHCI at membase 0xe0856000, IRQ 5
usb-ohci.c: usb-00:03.1, Silicon Integrated Systems [SiS] USB 1.0 Controller (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
usb-ohci.c: USB OHCI at membase 0xe0858000, IRQ 5
usb-ohci.c: usb-00:03.2, Silicon Integrated Systems [SiS] USB 1.0 Controller (#3)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
ehci-hcd 00:03.3: Silicon Integrated Systems [SiS] USB 2.0 Controller
usb.c: new USB bus registered, assigned bus number 4
ehci-hcd 00:03.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22
hub.c: USB hub found
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: USB HID support drivers
hub.c: new USB device 00:03.3-3, assigned address 2
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=2 (error=-110)
hub.c: new USB device 00:03.3-3, assigned address 3
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=3 (error=-110)
hub.c: new USB device 00:03.0-1, assigned address 2
input0: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb1:2.0
hub.c: new USB device 00:03.3-3, assigned address 4
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=4 (error=-110)
hub.c: new USB device 00:03.3-3, assigned address 5
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
usb_control/bulk_msg: timeout
usb.c: USB device not accepting new address=5 (error=-110)

Zeland please note: I have no problem with a usb zip drive mounting, it is just the usb flash drive which seem not be recognised. If its the kernel that needs to be looked into please guide how I can enable or add the support for flash drives.
Many Thanks

 
Hi

Is the device connected on boot ?

Also i have seen it detect as hdb1 etc

Let me know, I will see what else I can think of.

Bamber

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top