LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use Use "USB Flash Drives" in Slackware?? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-use-usb-flash-drives-in-slackware-419666/)

DdOs 02-26-2006 03:43 AM

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!!!

Nylex 02-26-2006 03:52 AM

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).

xgreen 02-26-2006 04:16 AM

and do not forget to specify filesystem
Code:

mount -t vfat /dedv/sda1 /mnt/usb

Nylex 02-26-2006 04:21 AM

You might not need to. I don't for mine!

xgreen 02-26-2006 04:25 AM

Nylex,

cool ... could u explain to me

Thanks

Nylex 02-26-2006 04:31 AM

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.

SaintsOfTheDiamond 02-26-2006 10:10 AM

Quote:

Originally Posted by Nylex
You might not need to. I don't for mine!

Same here, but I usually specify it anyway. :cool:

DdOs 02-27-2006 02:49 AM

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!!!

rjrouquette 02-27-2006 11:25 PM

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.

DdOs 03-03-2006 04:53 AM

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!!!

rjrouquette 03-04-2006 09:00 PM

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.

DdOs 03-06-2006 04:06 AM

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

rjrouquette 03-06-2006 07:40 PM

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

rjrouquette 03-06-2006 07:44 PM

I forgot to ask you a question.

Did you use a security program on your thumbdrive.

trumpet_tom 03-09-2006 06:43 PM

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


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