LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-14-2008, 02:16 AM   #1
paq7512
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
Usb Flash Drives Not Working On Linux


I have not a clue what I am doing wrong. My flash drives work fine in Windows on the same machine. But when I plug into linux opensuse 10.3 or Mandriva 2008 they won't mount. If i have the flash drive plugged in while the computer is booting it will work fine. Then booted on the desktop I can view my files. So what I do is unmount, but then plug in it does not work. Maybe a problem with power management? This machine is a IBM M51 8142.
I have tried 2 flash drives neither work.
Clean install won't make them work either, fully updated
 
Old 05-14-2008, 04:39 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
What does dmesg show after you plug the devices in? Do you get a device file for them to /dev? If you do, try manually mounting: first make a mount directory (or use existing if you like)
Code:
mkdir -p /media/usb
then try mounting (if the device is not sdb1, change it according to your system):
Code:
mount /dev/sdb1 /media/usb
then see if there's anything in /media/usb, or if you got error messages. If there is error about the device file, it's either wrong or nonexistent.
 
Old 05-14-2008, 09:35 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
From my observations : When a flash disk is aging it "dies" first in linux
but can still be used in windows (xp) for some time.
 
Old 05-14-2008, 11:02 AM   #4
paq7512
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
dmesg, pulled a list of 21 pages according to openoffice.org, and i searched for /dev or dev and nothing came up. As far as the two second commands it says mount: you must specify the filesystem type
 
Old 05-14-2008, 06:16 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I have no problems with my flash drive.
The line for it in fstab ...

# Entry for /dev/sdc1 :
UUID=D8EF-EB4A /media/GLENNSFLASH vfat defaults,user,nosuid,noauto 0 0

This line may be written..as..
/dev/sdc1 /media/GLENNSFLASH vfat defaults,user,nosuid,noauto 0 0

You must create a folder for it first.

use the -t for file system type when runnibg mount...
mount -t vfat /media/GLENNSFLASH for instance, as Bouncer0 wrote above.

I have trouble with my phone, nokia it is fat16, and although the directories can be seen,
when it can be mounted (sometimes) I cannot write to or copy from it.

Works ok in winxp with the nokia software. go figure.
 
Old 05-15-2008, 04:03 PM   #6
paq7512
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
? bump ? I am lost....
 
Old 05-15-2008, 06:11 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Have you read the fstab wiki?
http://wiki.linuxquestions.org/wiki/Fstab

regards, Glenn

ps. /dev/sdc1 /media/GLENNSFLASH vfat defaults,user,nosuid,noauto 0 0 only root may mount

Last edited by GlennsPref; 05-15-2008 at 06:41 PM.
 
Old 05-15-2008, 06:49 PM   #8
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
On 2008.1, I have no fstab entries for my USB drives. I just plug them in and Hal (and the WM) takes care of mounting them.

Jim
 
Old 05-23-2008, 08:55 PM   #9
nafan
Member
 
Registered: May 2004
Location: /dev/bed
Distribution: Mandriva 2009.0 Powerpack
Posts: 172

Rep: Reputation: 30
paq7512: can you show us the last output of dmesg?? The output relating to the usb flash drive will not have /dev/ or dev in it...

Run dmesg once, without the usb flash drive plugged in, making a note of the last few lines. Plug in your usb flash drive, wait for a few seconds and run dmesg again, then copy and paste the changed bit of dmesg's output.

For example, my usb key adds the following to the end of the dmesg output:
Code:
usb 1-3: new high speed USB device using ehci_hcd and address 6
usb 1-3: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access     Ut163    USB2FlashStorage 0.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
 
  


Reply



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
Both USB Flash Drives already fried digiplaya Linux - Hardware 7 06-02-2006 05:22 PM
usb flash drives Mandrake 10.0 kostial Mandriva 2 06-19-2005 07:50 PM
udev, USB Flash Drives, and usb-mount talkingwires Debian 13 11-07-2004 12:15 PM
USB Flash Drives Last Attacker Linux - Hardware 3 06-11-2004 03:36 PM
More trouble with certain usb flash drives... Jeeper Linux - Hardware 2 04-01-2004 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration