LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 02-26-2006, 03:43 AM   #1
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Rep: Reputation: 15
Question How to use Use "USB Flash Drives" in Slackware??


Hi..

I am a nwebie in Linux.. I am using Slackware 10.2 with Dropline GNOME 2.12.2 !! I want to use my USB Flash Drive with linux, How I can do that?? Can anyone please, help me??

Thank You!!

DdOs

------------------------------------------------
Let the Last One to be Known, Better than YOU!!!
 
Old 02-26-2006, 03:52 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to mount it. First create a mount point for it with something like "mkdir /mnt/usb" (you'll need to be root to do this). Next, plug your flash drive in and run "dmesg". You should see something like the following (this is my output, yours may be different):

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Model: USB Flash Memory Rev: 1.04
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 499712 512-byte hdwr sectors (256 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

The bit in bold is the important bit, as it tells you the device file to which your flash drive is attached. Now you can run mount (again, as root). Using the device given, you'd do a "mount /dev/sda1 /mnt/usb". Obviously if yours isn't attached to sda1, then change it appropriately. You can then cd into that directory (/mnt/usb) and access your files there. Before you unplug your flash drive, you should unmount it ("umount /dev/sda1" for example).
 
Old 02-26-2006, 04:16 AM   #3
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
and do not forget to specify filesystem
Code:
 mount -t vfat /dedv/sda1 /mnt/usb
 
Old 02-26-2006, 04:21 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You might not need to. I don't for mine!
 
Old 02-26-2006, 04:25 AM   #5
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
Nylex,

cool ... could u explain to me

Thanks
 
Old 02-26-2006, 04:31 AM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Explain what? For my flash drive, I can mount it with "mount /dev/sda1 /mnt/usb" and I don't have any problems. I don't have a line for it in my fstab, either.
 
Old 02-26-2006, 10:10 AM   #7
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
Quote:
Originally Posted by Nylex
You might not need to. I don't for mine!
Same here, but I usually specify it anyway.
 
Old 02-27-2006, 02:49 AM   #8
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Thanx you all!! i tried "dmesg" it showed me this :-

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: JetFlash Model: TS64MJF2L Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0sda: Unit Not Ready, sense:
Current 00:00: sns = 70 6
ASC=28 ASCQ= 0
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sns = 70 6
ASC=28 ASCQ= 0
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

But when i tried to mount /dev/sda1 it returns an error

root@CDC:~# mount /dev/sda1 /mnt/USB
mount: /dev/sda1 is not a valid block device

and one more thing..

sda : block size assumed to be 512 bytes, disk size 1GB.

my flash drive is only 64MB.. by the way.. other manufacture information was correct!! it's from JetFlash (Transcend)

What to do now??

Thank You!!

DdOs

--------------------------------------------------------
Let the Last One to be Known, Better than YOU!!!
 
Old 02-27-2006, 11:25 PM   #9
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
Here is what my system typically logs when connect my drive:

root@rjrlaptop:/var/log# tail messages
Feb 27 23:10:38 rjrlaptop kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Feb 27 23:10:43 rjrlaptop kernel: Vendor: LEXAR Model: JUMPDRIVE SPORT Rev: 3000
Feb 27 23:10:43 rjrlaptop kernel: Type: Direct-Access ANSI SCSI revision: 00
Feb 27 23:10:43 rjrlaptop kernel: SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
Feb 27 23:10:43 rjrlaptop kernel: sda: Write Protect is off
Feb 27 23:10:43 rjrlaptop kernel: SCSI device sda: 506880 512-byte hdwr sectors (260 MB)
Feb 27 23:10:43 rjrlaptop kernel: sda: Write Protect is off
Feb 27 23:10:43 rjrlaptop kernel: sda:<7>usb-storage: queuecommand called
Feb 27 23:10:43 rjrlaptop kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Feb 27 23:10:43 rjrlaptop kernel: Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 0, type 0

Is your thumb drive USB 2.0 and if so do you have EHCI enabled.
This should not really be an issue but you never know.
 
Old 03-03-2006, 04:53 AM   #10
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Thanx guys... But as I am a Newbie.. can you please give me any detailed Suggestion!!! :S that will be more better for me to understand and to work with...

Thank you all

Waiting for your Reply!!

DdOs

------------------------------------------------
Let the Last One to be Known, Better Than YOU!!!
 
Old 03-04-2006, 09:00 PM   #11
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
According to your dmesg output, the drive was successfully detected and your system was even able to detect the model number. It appears however that something is wrong with your flash drive. dmesg reported that the current sense was 0, this seems suspicious because it means that your thumbdrive is not using any power. It may be that your thumbdrive is ultra-low power but it is more likely that something is wrong with the thumb drive. Does your drive work on other machines.
 
Old 03-06-2006, 04:06 AM   #12
DdOs
LQ Newbie
 
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by rjrouquette
According to your dmesg output, the drive was successfully detected and your system was even able to detect the model number. It appears however that something is wrong with your flash drive. dmesg reported that the current sense was 0, this seems suspicious because it means that your thumbdrive is not using any power. It may be that your thumbdrive is ultra-low power but it is more likely that something is wrong with the thumb drive. Does your drive work on other machines.

rjrouquette

Yes, my Thumb Drive is OK with other systems.. but all those systems are WINDOWS XP/98.. and this is true i haven't tried with any other Linux OS!! Because I don't know how to do that!!!

So, what should i do now.. should i try to mount that again from Different USB port??

Thank you again....

DdOs
 
Old 03-06-2006, 07:40 PM   #13
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
Well, the good news is that there is nothing wrong with your thumb drive. Swapping USB ports is certainly worth a try but I don't think that it should make a difference.

I looked up the user's manual for your drive.
The manual says that it can be mounted with the command:
mount –a –t msdos /dev/sda1 /mnt/jetflash
 
Old 03-06-2006, 07:44 PM   #14
rjrouquette
LQ Newbie
 
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6

Rep: Reputation: 0
I forgot to ask you a question.

Did you use a security program on your thumbdrive.
 
Old 03-09-2006, 06:43 PM   #15
trumpet_tom
Member
 
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95

Rep: Reputation: 19
I don't know if you've got it working or not but it looks like your device is sda rather than sda1. I just looked this up to get my usb flash drive working and removing that 1 made all the difference.

tom
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
lost writing ability on usb-stick / not possible with protocol "drives" - how to fix? ungua Suse/Novell 3 11-24-2004 08:11 PM
"Unable to open USB device "usb://hp/LaserJet%201000": No such device" lordshipmayhem Mandriva 2 08-08-2004 04:56 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM


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

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