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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-26-2006, 03:43 AM
|
#1
|
|
LQ Newbie
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21
Rep:
|
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!!!
|
|
|
|
02-26-2006, 03:52 AM
|
#2
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
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).
|
|
|
|
02-26-2006, 04:16 AM
|
#3
|
|
Member
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389
Rep:
|
and do not forget to specify filesystem
Code:
mount -t vfat /dedv/sda1 /mnt/usb
|
|
|
|
02-26-2006, 04:21 AM
|
#4
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
You might not need to. I don't for mine!
|
|
|
|
02-26-2006, 04:25 AM
|
#5
|
|
Member
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389
Rep:
|
Nylex,
cool ... could u explain to me
Thanks
|
|
|
|
02-26-2006, 04:31 AM
|
#6
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
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.
|
|
|
|
02-26-2006, 10:10 AM
|
#7
|
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Rep:
|
Quote:
|
Originally Posted by Nylex
You might not need to. I don't for mine!
|
Same here, but I usually specify it anyway. 
|
|
|
|
02-27-2006, 02:49 AM
|
#8
|
|
LQ Newbie
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21
Original Poster
Rep:
|
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!!!
|
|
|
|
02-27-2006, 11:25 PM
|
#9
|
|
LQ Newbie
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6
Rep:
|
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.
|
|
|
|
03-03-2006, 04:53 AM
|
#10
|
|
LQ Newbie
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21
Original Poster
Rep:
|
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!!!
|
|
|
|
03-04-2006, 09:00 PM
|
#11
|
|
LQ Newbie
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6
Rep:
|
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.
|
|
|
|
03-06-2006, 04:06 AM
|
#12
|
|
LQ Newbie
Registered: Feb 2006
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 21
Original Poster
Rep:
|
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
|
|
|
|
03-06-2006, 07:40 PM
|
#13
|
|
LQ Newbie
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6
Rep:
|
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
|
|
|
|
03-06-2006, 07:44 PM
|
#14
|
|
LQ Newbie
Registered: Dec 2005
Location: Kenner, LA (Near New Orleans)
Distribution: Slackware 10.2
Posts: 6
Rep:
|
I forgot to ask you a question.
Did you use a security program on your thumbdrive.
|
|
|
|
03-09-2006, 06:43 PM
|
#15
|
|
Member
Registered: Dec 2004
Distribution: Slackware64-current
Posts: 95
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:06 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|