LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2013, 10:32 PM   #1
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
USB Flash drive unable to detect on Mandriva 2010.2


USB Flash Drive unable to mount on Mandriva 2010.2. Some USB Device are detected example of these are printers, usb bluetooth, etc. Only Mass Storage are not detected. Thanks in advance.

Last edited by tailinlinux; 01-12-2013 at 02:20 AM.
 
Old 01-10-2013, 05:00 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
as root tail /var/log/messages as you plug in the usb device. you should see it as /dev/sdX_something_or_other, or once you have it plugged into the computer run fdisk -l. both work for identifying the device. the tail will give you more details about what the system sees and if it is able to access the device or not. you will get errors if it is unable to access the device.

once you get that info report back with fdisk -l, or the /dev/sdX# from /var/log/messages and ill help you mount and access the device.
 
Old 01-10-2013, 09:37 PM   #3
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by lleb View Post
as root tail /var/log/messages as you plug in the usb device. you should see it as /dev/sdX_something_or_other, or once you have it plugged into the computer run fdisk -l. both work for identifying the device. the tail will give you more details about what the system sees and if it is able to access the device or not. you will get errors if it is unable to access the device.

once you get that info report back with fdisk -l, or the /dev/sdX# from /var/log/messages and ill help you mount and access the device.
result of tail /var/log/messages
Quote:
[root@linux58 aries_baluyot]# tail /var/log/messages
Jan 11 10:21:10 linux58 smbd[17232]: [2013/01/11 10:21:10.553766, 0] lib/util_sock.c:675(write_data)
Jan 11 10:21:10 linux58 smbd[17232]: [2013/01/11 10:21:10.553986, 0] lib/util_sock.c:1432(get_peer_addr_internal)
Jan 11 10:21:10 linux58 smbd[17232]: getpeername failed. Error was Transport endpoint is not connected
Jan 11 10:21:10 linux58 smbd[17232]: write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
Jan 11 10:21:10 linux58 smbd[17232]: [2013/01/11 10:21:10.554129, 0] smbd/process.c:79(srv_send_smb)
Jan 11 10:21:10 linux58 smbd[17232]: Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
Jan 11 10:28:26 linux58 kernel: usb 1-8: new high speed USB device using ehci_hcd and address 2
Jan 11 10:28:27 linux58 kernel: usb 1-8: New USB device found, idVendor=090c, idProduct=1000
Jan 11 10:28:27 linux58 kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 11 10:28:27 linux58 kernel: usb 1-8: SerialNumber: 12051580005333
result of fdisk -l
Quote:
[root@linux58 aries_baluyot]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa316a316

Device Boot Start End Blocks Id System
/dev/sda1 * 1569 9729 65553232+ f W95 Ext'd (LBA)
/dev/sda2 1 1568 12594928+ 83 Linux
/dev/sda5 1569 2077 4088511 82 Linux swap / Solaris
/dev/sda6 2078 9729 61464658+ 7 HPFS/NTFS

Partition table entries are not in disk order
thanks in advance
 
Old 01-11-2013, 01:41 AM   #4
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 848

Rep: Reputation: 107Reputation: 107
At first glance, I would suspect that your USB device isn't formatted. Also, for "fdisk -l" to be useful, you need to specify the device for the correct drive--the USB drive. /dev/sda is almost always reserved for your operating system's system disk.

Please do this and post the output:
ls /dev/sd*

and:
lsusb

and (as root):
blkid

and (as root):
for i in `ls /dev/sd*` ; do fdisk -l "$i" ; done

Please note that the "`" marks in the above are "backticks," which are found to the left of the "1" key on your keyboard (QWERTY). When in doubt, copy and paste.

Thanks for using "quote" tags, above; please use "code" tags for these, as they'll be pretty long and might contain characters that would get turned into smileys.

If your drive isn't formatted, it won't show up in most places until you format it. We can help you with that. If it IS formatted and isn't showing up, the above commands should reveal as much, and we can go from there.

--Dane

Last edited by DaneM; 01-11-2013 at 01:43 AM.
 
Old 01-11-2013, 02:46 AM   #5
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Original Poster
Rep: Reputation: 25
Please see results

Quote:
-bash-4.1$ ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda6
Quote:
[root@linux58 aries_baluyot]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 090c:1000 Feiya Technology Corp. Flash Drive
Quote:
[root@linux58 aries_baluyot]# blkid
/dev/sda2: UUID="532acbd8-9b27-4e85-b21e-3fec8181d870" TYPE="ext3"
/dev/sda5: UUID="4c32f399-017e-4071-b27b-377ca0af3a0f" TYPE="swap"
/dev/sda6: UUID="468fff8e-3a22-4725-a3c2-0f05a11ee7a5" TYPE="ext4"
Quote:
[root@linux58 aries_baluyot]# for i in `ls /dev/sd*` ; do fdisk -l "$i" ; done

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa316a316

Device Boot Start End Blocks Id System
/dev/sda1 * 1569 9729 65553232+ f W95 Ext'd (LBA)
/dev/sda2 1 1568 12594928+ 83 Linux
/dev/sda5 1569 2077 4088511 82 Linux swap / Solaris
/dev/sda6 2078 9729 61464658+ 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sda2: 12.9 GB, 12897206784 bytes
255 heads, 63 sectors/track, 1567 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda2 doesn't contain a valid partition table

Disk /dev/sda5: 4186 MB, 4186635264 bytes
255 heads, 63 sectors/track, 508 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda5 doesn't contain a valid partition table

Disk /dev/sda6: 62.9 GB, 62939810304 bytes
255 heads, 63 sectors/track, 7651 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda6 doesn't contain a valid partition table
[root@linux58 aries_baluyot]# for i in `ls /dev/sd6` ; do fdisk -l "$i" ; done
ls: cannot access /dev/sd6: No such file or directory
[root@linux58 aries_baluyot]# for i in `ls /dev/sd*` ; do fdisk -l "$i" ; done

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa316a316

Device Boot Start End Blocks Id System
/dev/sda1 * 1569 9729 65553232+ f W95 Ext'd (LBA)
/dev/sda2 1 1568 12594928+ 83 Linux
/dev/sda5 1569 2077 4088511 82 Linux swap / Solaris
/dev/sda6 2078 9729 61464658+ 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sda2: 12.9 GB, 12897206784 bytes
255 heads, 63 sectors/track, 1567 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda2 doesn't contain a valid partition table

Disk /dev/sda5: 4186 MB, 4186635264 bytes
255 heads, 63 sectors/track, 508 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda5 doesn't contain a valid partition table

Disk /dev/sda6: 62.9 GB, 62939810304 bytes
255 heads, 63 sectors/track, 7651 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda6 doesn't contain a valid partition table
 
Old 01-11-2013, 08:15 AM   #6
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
interesting. the lsubs shows the flash drive, but none of the others show that the system did anything with it.

try this. while running tail -f /var/log/messages (this will catch the end of the file thus any changes you will see on the screen) and remove the flash drive. wait no less then 30sec. then plug the flash drive back in.

Odds are that it will be detected as /dev/sdb as sda is your internal HDD.

If the system still does not see the flash drive as a /dev/sdX, then we have problems that might be out of my skill set to help.

do we know for 100% that this flash drive works? if so what OS have you tested it in? is it formatted FAT32 or NTFS or other?
 
Old 01-11-2013, 09:48 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by tailinlinux View Post
USB Flash Drive unable to detect on Mandriva 2010.2. Some USB Device are detected example of these are printers, usb bluetooth, etc. Only Mass Storage are not detected. Thanks in advance.
Based on what you posted, it looks like the flash drive isn't working. The reason is you're only seeing /dev/sdaxx, which is your hard drive. You should also see /dev/sdbxx, which would (at the very least), be the un-formatted stick. You don't.

Does this same device work in another machine? Has it EVER worked? As root, with the drive unplugged, run "dmesg -c", then plug the drive in and run "dmesg", and post the results.
 
Old 01-11-2013, 02:38 PM   #8
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 848

Rep: Reputation: 107Reputation: 107
I've seen this kind of thing before with problematic flash drives, so I concur with the others here that it looks to be non-functional due to a hardware problem in the drive. If you're certain that it (still) works with other machines and/or other operating systems, we can go from there, but it looks "dead" to me.
 
Old 01-11-2013, 07:18 PM   #9
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Original Poster
Rep: Reputation: 25
@ TBone and DaneM

Yes it is working in other device or operating system.
My BIOS configure correctly. Any Mass Storage is not
working on my mandriva. I Think it is block or something.
I suspect that someone configure my system to do not detect
mass storage.

Thanks for the reply.
 
Old 01-11-2013, 07:22 PM   #10
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by lleb View Post
interesting. the lsubs shows the flash drive, but none of the others show that the system did anything with it.

try this. while running tail -f /var/log/messages (this will catch the end of the file thus any changes you will see on the screen) and remove the flash drive. wait no less then 30sec. then plug the flash drive back in.

Odds are that it will be detected as /dev/sdb as sda is your internal HDD.

If the system still does not see the flash drive as a /dev/sdX, then we have problems that might be out of my skill set to help.

do we know for 100% that this flash drive works? if so what OS have you tested it in? is it formatted FAT32 or NTFS or other?
It is still unmounted.
See result after running commands.
Quote:
[root@linux58 aries_baluyot]# tail -f /var/log/messages
Jan 12 08:19:47 linux58 kernel: usb 1-8: new high speed USB device using ehci_hcd and address 2
Jan 12 08:19:47 linux58 kernel: usb 1-8: New USB device found, idVendor=090c, idProduct=1000
Jan 12 08:19:47 linux58 kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 12 08:19:47 linux58 kernel: usb 1-8: SerialNumber: 12051580005333
Jan 12 08:20:01 linux58 nmbd[2149]: [2013/01/12 08:20:01.981356, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
Jan 12 08:20:01 linux58 nmbd[2149]: *****
Jan 12 08:20:01 linux58 nmbd[2149]:
Jan 12 08:20:01 linux58 nmbd[2149]: Samba name server LINUX58 is now a local master browser for workgroup WORKGROUP on subnet 192.168.50.158
Jan 12 08:20:01 linux58 nmbd[2149]:
Jan 12 08:20:01 linux58 nmbd[2149]: *****
Jan 12 08:20:56 linux58 kernel: usb 1-8: USB disconnect, address 2
Jan 12 08:21:12 linux58 kernel: usb 1-8: new high speed USB device using ehci_hcd and address 3
Jan 12 08:21:12 linux58 kernel: usb 1-8: New USB device found, idVendor=090c, idProduct=1000
Jan 12 08:21:12 linux58 kernel: usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 12 08:21:12 linux58 kernel: usb 1-8: SerialNumber: 12051580005333
 
Old 01-12-2013, 02:20 AM   #11
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Original Poster
Rep: Reputation: 25
Pardon for my post. It is detected, i mean unable to mount.
 
Old 01-12-2013, 04:13 AM   #12
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 848

Rep: Reputation: 107Reputation: 107
...but where is its /dev/ device?? If it doesn't have one (as previous posts indicate), then it can't be mounted, at all!

Please remove the drive, reboot your computer, wait for it to finish loading everything, insert the drive, and wait 1 minute. Then, re-run the commands I gave you previously and post their output. It's possible that it was in a "safely-removed" state when you last tried those commands.

--Dane
 
1 members found this post helpful.
Old 01-12-2013, 12:12 PM   #13
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
ok, so you ran tail -f /var/log/messages but you never plugged the USB device back into the system so you can find the /dev/sdX in order to mount.
 
Old 01-12-2013, 01:24 PM   #14
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by tailinlinux View Post
@ TBone and DaneM
Yes it is working in other device or operating system.
Which other system? What OS? And how is it formatted? Have you tried other USB sticks/external drives? Have you rebooted, or restarted the haldaemon? Does it show up under your USB device applet in your GUI?
Quote:
My BIOS configure correctly. Any Mass Storage is not working on my mandriva. I Think it is block or something. I suspect that someone configure my system to do not detect mass storage.
"Someone"??? Isn't this YOUR system? If it's yours...how could 'someone' modify things to make it not work? If it's not yours, are you sure your user has rights to see/mount external devices?

The Mandriva forums have some ideas:
http://forum.mandriva.com/en/viewtopic.php?t=119151
 
  


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
Mandriva 2010 wont access USB drive floppywhopper Mandriva 10 11-24-2010 11:18 PM
usb flash key mounts in knoppix live cd but not in mandriva 2010 moshebagelfresser Linux - Hardware 7 07-26-2010 11:46 PM
[SOLVED] Can Mandriva 2010.1 be Installed to a USB Hard Drive harley51 Mandriva 2 07-18-2010 06:28 PM
how to detect a usb flash drive? travis1205 Linux - Software 2 07-22-2007 07:04 AM
cant detect usb flash drive micro_xii SUSE / openSUSE 4 09-07-2006 10:26 AM


All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration