LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-29-2006, 01:09 AM   #1
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
Exclamation USB FLASH DRIVE dosen't work


Hi,
I have Ubuntu (Edgy Eft)6.10.
Today my sister gave me HI-SPEED USB 2.0 FLASH Drive (Transcend's JetFlash)
First i read instructions, and try to mount it on /media/jetfalsh
by adding this line

"/dev/sda1 /media/jetflash auto users,defaults,noauto,user 0 0"

in /etc/fstab& crate a directory in

"/media/jetflash".

then try to mount by this as su

"mount /dev/sda1 /media/jetflash"

but i can't mount it. I get error massage that
"mount: special device /dev/sda1 does not exist"
what can i do?
Another error massage is in dmesg | more
"hub 1-0:1.0: over-current change on port 1
hub 1-0:1.0: over-current change on port 2"
what is that for?
Is there any bios problem or i connect usb wrong or usb port is not working ????????
Another thing in FLASH Drive manuall there is
When Connecting to a computer successfully unit's LED will light up
but ican't find any light.

help me to solve this problem.

Thanks
 
Old 12-29-2006, 01:47 AM   #2
carcam
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
It seems that your kernel is not detecting the device. Could you please post the output of this command?

Code:
dmesg |grep usb
 
Old 12-29-2006, 06:03 AM   #3
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Hi carcam
Here is your commands output
(command :# dmesg |grep usb)

[ 8207.340762] usbcore: registered new driver libusual
[ 8207.821789] usbcore: registered new driver usb-storage
[ 64.356273] Modules linked in: 8139too usb_storage scsi_mod libusual isofs udf binfmt_misc apm cpufreq_userspace cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand cpufreq_conservative msdos nls_iso8859_1 nls_cp437 vfat fat nls_utf8 ntfs ipv6 af_packet fuse lp snd_mpu401 snd_mpu401_uart tsdev snd_intel8x0 parport_pc parport serio_raw snd_ac97_codec snd_ac97_bus snd_rawmidi snd_seq_device floppy snd_pcm_oss snd_mixer_oss snd_pcm snd_timer 8139cp evdev analog gameport mii psmouse snd soundcore snd_page_alloc pcspkr hw_random shpchp pci_hotplug i2c_i810 i2c_algo_bit i2c_core intel_agp agpgart ext3 jbd uhci_hcd usbcore ide_generic ide_cd cdrom ide_disk piix generic processor fbcon tileblit font bitblit softcursor vesafb capability commoncap

I think it registered usb storage device, i can see a drive(: jetflash) under computer:/// but i can't mount it. I think i have correct my fstab or mount it manually, I don't know.

any solution? ans me,
Thanks a lot
 
Old 12-29-2006, 09:32 AM   #4
carcam
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Wink

Quote:
Originally Posted by brijesh_david
Hi,
I have Ubuntu (Edgy Eft)6.10.
Today my sister gave me HI-SPEED USB 2.0 FLASH Drive (Transcend's JetFlash)
First i read instructions, and try to mount it on /media/jetfalsh
by adding this line

"/dev/sda1 /media/jetflash auto users,defaults,noauto,user 0 0"

in /etc/fstab& crate a directory in

"/media/jetflash".

then try to mount by this as su

"mount /dev/sda1 /media/jetflash"
Are you really trying to mount the usb with this command? Ithink that the correct one is:

mount /media/jetflash

Nevertheless the problem is that your kernel is not creating the sda1 device. You can see the device at computer:/// because it takes the information from fstab. Could you please post these commands?:

Code:
#dmesg |grep sda
#lsusb
I'm sorry about making you post so much, but I am not really a linux hacker and I need extra information.

BTW it would be nice if you post the kernel you are using and your distro. ;o)
 
Old 12-29-2006, 10:16 AM   #5
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Hi carcam
Here is your commands output

# dmesg |grep sda
(nothing happen)
# lsusb
Bus 001 Device 001: ID 0000:0000
I have Ubuntu (Edgy Eft)6.10 Linux 2.6.17-10-generic(i386)
C library GNU C Library ver 2.4(unstable)

ok, this information u want,
Thx for helping.
 
Old 12-29-2006, 10:19 AM   #6
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Ok carcam now i have diffrent output when i use this command :
# dmesg |grep usb
[ 28.098296] usbcore: registered new driver usbfs
[ 28.100168] usbcore: registered new driver hub
[ 28.111231] usb usb1: configuration #1 chosen from 1 choice


so is this work for me? what is usbcore? can i mount it by "usbcore"
Any idea????
 
Old 12-29-2006, 10:25 AM   #7
carcam
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by brijesh_david
Hi carcam
Here is your commands output

# dmesg |grep sda
(nothing happen)
Ok, here is the problem, your kernel is not creating the device for jetflash. I think that you need the ehci_hcd module so as root:

Code:
#modprobe ehci_hcd
And after this your jetflash should work.
 
Old 12-29-2006, 11:07 AM   #8
carcam
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by brijesh_david
Ok carcam now i have diffrent output when i use this command :
so is this work for me? what is usbcore? can i mount it by "usbcore"
Any idea????
usbcore is a kernel module. I reckon that it is the basic module that the kernel needs to work with the USB.

Well, now it seems that your kernel recognizes the usb, so is it working now? If it isn't, please post me the other replies for the commands I told you some posts ago.

PD: It is really weird that your reply to my last post came some minutes before, isn't it? ;o)
 
Old 12-29-2006, 12:40 PM   #9
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Well carcam
after ur instuctions i run (without su)
# modprobe ehci_hcd then error msg
FATAL: Error inserting ehci_hcd (/lib/modules/2.6.17-10-generic/kernel/drivers/usb/host/ehci-hcd.ko): Operation not permitted
but after with
# sudo modprobe ehci_hcd

nothing i see yet, i tried in but i can't find any usb flash drive in my comp.
Here is fstab


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb4
UUID=ac475dc7-5675-42a6-b045-356fdb1ee0fc / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb1
UUID=920b8676-c432-4e60-ba98-3e28f2886943 /boot ext3 defaults 0 2
# /dev/hda1
UUID=F0909A3C909A096C /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda5
UUID=88DCA682DCA669E0 /media/hda5 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda6
UUID=A4B0BD1AB0BCF440 /media/hda6 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /dev/hdb2
UUID=5AA6-E4A9 /media/hdb2 vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/hdb3
UUID=03eae80f-256f-48ae-bfd6-1fb3b781a26c none swap sw 0 0
#/dev/hdc
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/sda1 /media/jetflash
/dev/sda1 /media/jetflash auto users,defaults,noauto,user 0 0


i can work on above 5 hd drives, and a dvd writer also, but when i want to open
(i can see jetflash as drive also) it give error msg
mount: special device : /dev/sda1 does not exist

so now what i have to do???????
 
Old 12-29-2006, 12:49 PM   #10
carcam
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by brijesh_david
Well carcam
after ur instuctions i run (without su)
# modprobe ehci_hcd then error msg
FATAL: Error inserting ehci_hcd (/lib/modules/2.6.17-10-generic/kernel/drivers/usb/host/ehci-hcd.ko): Operation not permitted
but after with
This is completely normal, you have to be Superuser to insert modules in the kernel.

Quote:
Originally Posted by brijesh_david
# sudo modprobe ehci_hcd

nothing i see yet, i tried in but i can't find any usb flash drive in my comp.
Here is fstab
Ok, if you have no output, the module has been successfully inserted. You can check this typing lsmod.

Perhaps your usb is getting the sdb device instead of sda. Could you please make a "dmesg |grep sda" and "dmesg |grep sdb". Every command I ask you to type must be executed as root, of course.

Quote:
Originally Posted by brijesh_david
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdb4
UUID=ac475dc7-5675-42a6-b045-356fdb1ee0fc / ext3 defaults,errors=remount-ro 0 1
# /dev/hdb1
UUID=920b8676-c432-4e60-ba98-3e28f2886943 /boot ext3 defaults 0 2
# /dev/hda1
UUID=F0909A3C909A096C /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda5
UUID=88DCA682DCA669E0 /media/hda5 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda6
UUID=A4B0BD1AB0BCF440 /media/hda6 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /dev/hdb2
UUID=5AA6-E4A9 /media/hdb2 vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/hdb3
UUID=03eae80f-256f-48ae-bfd6-1fb3b781a26c none swap sw 0 0
#/dev/hdc
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
# /dev/sda1 /media/jetflash
/dev/sda1 /media/jetflash auto users,defaults,noauto,user 0 0


i can work on above 5 hd drives, and a dvd writer also, but when i want to open
(i can see jetflash as drive also) it give error msg
mount: special device : /dev/sda1 does not exist

so now what i have to do???????
Your fstab seems ok, so don't worry about it.
 
Old 12-29-2006, 02:05 PM   #11
neeyo
LQ Newbie
 
Registered: Oct 2001
Location: Some hole I dug.
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
I hate to ask the obvious, but, the flash drive is plugged in to your computer when you're trying to mount it, right?
 
Old 04-11-2007, 12:56 PM   #12
brijesh_david
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks lot carcam
I have solution, i search lot try lot
finally i put usb-pci-card and i found that ubuntu take(mount) flashdrive as easy as cd/dvd, ubuntu mount it
under media/usbdisk
Now I have no problem,
Thanks a lot for every thing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 01:28 PM
Debian upgade, and now usb flash drive doesn't work xucaen Debian 5 10-10-2006 12:51 PM
I want my Flash (USB) Drive to work! NauticX Linux - Hardware 7 12-15-2003 05:15 PM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration