LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2003, 06:55 AM   #1
PenGPow
Member
 
Registered: Jun 2003
Location: Seychelles
Distribution: RedHat 8.0, Gentoo
Posts: 32

Rep: Reputation: 15
Desperately need help in mounting usb drive


hello everyone.

I need some help with something, okay i have a usb thumb drive that i want to use under my redhat 8.0 laptop, but i can't mount it, since i don't know the correct /dev/ thing.

I was checking that if i could mount the usb thumb drive then .. i would go further and buy a lacie big disk, for my backup.

please help, i desperate

Penguin Power

 
Old 06-24-2003, 07:26 AM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

insmod usb-storage
and after that the usb thumb shoulb be known as /dev/sda1
then do a mount /dev/sda1 /your_mount_point
and everything is done fine

if you got other usb/scsi devices on your notebook then you have to use on of the /dev/sd* devices

cu
 
Old 06-24-2003, 07:54 AM   #3
PenGPow
Member
 
Registered: Jun 2003
Location: Seychelles
Distribution: RedHat 8.0, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
thx for the quick reply, but i c these error now.

when i type insmod usb-storage, i get the following

Using /lib/modules/2.4.18-14/kernel/drivers/usb/storage/usb-storage.o
insmod: a module named usb-storage already exists

and when i type mount /dev/sda1 /mnt/usb i get the following error,

mount: /dev/sda1 is not a valid block device

what am i doing wrong. ooh and the notebook specs are

a sony vaio pcg-z600hek.

i tries plugging the drive on the replicator port and on the port in the nitebook itself , but still it says the same thing

what am i doing wrong !

Penguin Power
 
Old 06-24-2003, 08:25 AM   #4
PenGPow
Member
 
Registered: Jun 2003
Location: Seychelles
Distribution: RedHat 8.0, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
Got It :)

Hi again,

i got it working now and that really makes me a happy penguin ! hehe. the device was /dev/sdb1 , and now everything works

thx a bunch,

Penguin Power.
 
Old 06-24-2003, 09:12 AM   #5
RazorSA
LQ Newbie
 
Registered: Jun 2003
Posts: 1

Rep: Reputation: 0
Redhat 9 ... When I plug my USB drive in, it mounts it, and picks up the name of the drive 100%.

BUT .. there are files in the drive, and they are not detected.

The drive is formatted FAT
 
Old 11-15-2003, 01:13 AM   #6
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
try this

Maybe your distro isn't mounting the thumbdrive as FAT. Explicitly specifying the file system type to mount might work. Try this:

mount -t vfat /dev/sda1 /mnt/flashdrive

or whatever your mount point is set to. Also, if you have other usb devices installed, the thumbdrive might show up as a different SCSI device.

lsusb

will show your usb devices. If you have another device installed, you might try something along the lines of:

mount -t vfat /dev/sdb1 /mnt/flashdrive

also make sure that you have the usb-storage module loaded.

lsmod |less

will show you all loaded modules. If you don't see usb-storage then type:

modprobe usb-storage

Try the mount thingy again and everything should be gravy. If you want it to be mounted on boot you can edit your /etc/fstab and add the following:

/dev/sda1 /mnt/flashdrive vfat noauto,user,fat=12 0 0

Good luck.
 
Old 12-10-2003, 11:59 AM   #7
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
Hello,
I'm having similar problems with my SanDisk Cruzer 256Mb, I get /dev/sda1 is not a valid block device (this only started after I plugged in that damn drive , now whenever I plug in a usb device it is in /dev/sdbx, its swapped them over for some reason!)

Anyhow I tried lsusb and I get

linux:/home/rob # lsusb
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0a81:0101 Chesen Electronics Corp.
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 045e:006a Microsoft Corp.
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 006: ID 0781:8185 SanDisk Corp. <- my drive!!

does that mean my sandisk is on dev/sda6? I tried mounting that and it came up with the same "sda6 is not a valid block device"
 
Old 12-10-2003, 01:09 PM   #8
PenGPow
Member
 
Registered: Jun 2003
Location: Seychelles
Distribution: RedHat 8.0, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
heya,
as far as i know if your devicde is not sda then it cannot be on the 6'th partition, try using fdisk as follow :

try one of these.

fdisk /dev/sda
fdisk /dev/sdb
fdisk /dev/sdc
fdisk /dev/sdd

one of these should be your drive, if that particular device is not present then fdisk will give you some error, but if not and it gives you a prompt thing then type 'p' to display the partition(s) on your usb drive. :

thse should look like /dev/sda1 or /dev/sda2 or /dev/sdb1 etc ........

then you can mount the desired partition on the usb drive:

mkdir /mnt/usb_drive
mount /dev/sXY /mnt/usb_drive

(where X represents your device : i.e a,b,c or d) and (Y represents the partition you want to mount on the drive ! )
 
Old 12-10-2003, 01:10 PM   #9
PenGPow
Member
 
Registered: Jun 2003
Location: Seychelles
Distribution: RedHat 8.0, Gentoo
Posts: 32

Original Poster
Rep: Reputation: 15
just a side note to quit from fdisk type q
 
Old 12-10-2003, 01:15 PM   #10
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
I just tried that and I get

"Unable to open /dev/sdd" etc. for all of them
 
Old 12-10-2003, 03:08 PM   #11
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
I get the following output from dmesg if it helps anyone work out what's going on

usb.c: USB disconnect on device 00:03.2-5 address 7
hub.c: new USB device 00:03.2-6, assigned address 8
usb.c: error getting string descriptor 0 (error=-32)
usb.c: error getting string descriptor 0 (error=-32)
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8
Device not ready. Make sure there is a disc in the drive.
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 2097144
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 2097144
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
unable to read partition table
Device not ready. Make sure there is a disc in the drive.
I/O error: dev 08:10, sector 0
Device not ready. Make sure there is a disc in the drive.
Device not ready. Make sure there is a disc in the drive.
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Info fld=0xa00 (nonstd), Current sd00:00: sns = 70 2
Raw sense data:0x70 0x00 0x02 0x00 0x00 0x0a 0x00 0x00
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 2097144
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 2097144
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
I/O error: dev 08:10, sector 0
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
lost async page write due to I/O error on 08:10
unable to read partition table
Device not ready. Make sure there is a disc in the drive.
I/O error: dev 08:10, sector 0
Device not ready. Make sure there is a disc in the drive.
 
Old 12-10-2003, 06:14 PM   #12
mickboda
Member
 
Registered: Jul 2002
Location: Sydney
Distribution: Kubuntu Edgy
Posts: 74

Rep: Reputation: 15
Hi dhbiker

look it's just a thought,

DO you know for a fact that your thumbdrive works (have you had it mounted and read / writing on other systems, other OS'es?

Regards

Mick
 
Old 12-11-2003, 02:59 AM   #13
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
yeah, it works fine in Windows 2000!! I don't understand why linux is complaining, I had my old usb pen working fine
 
Old 12-11-2003, 10:11 AM   #14
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
I've tried the disc again and I thought I'd gotten somewhere, I plugged it in looked a dmesg and was hopefull. I tried to mount it and the console hung and then the usb drive got switched off (the light on it went out). A little while later the console returned me to the prompt and a bit after that the usb stick got turned back on.

Here's my dmesg output:


hub.c: new USB device 00:03.2-5, assigned address 2
usb.c: USB device 2 (vend/prod 0x781/0x8185) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 1.25
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 512000 512-byte hdwr sectors (262 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. <---------this was the output up until the point where I tried to mount the device


usb_control/bulk_msg: timeout
usb.c: USB disconnect on device 00:03.2-5 address 2
hub.c: new USB device 00:03.2-5, assigned address 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0
SCSI disk error : host 1 channel 0 id 0 lun 0 return code = 6050000
I/O error: dev 08:00, sector 0
I/O error: dev 08:01, sector 0
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
I/O error: dev 08:01, sector 64
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01
lost async page write due to I/O error on 08:01

Any thoughts?

Maybe I'll give up on SuSE and try something else.....
 
Old 12-11-2003, 06:57 PM   #15
txmjafg
LQ Newbie
 
Registered: Oct 2003
Distribution: suse
Posts: 6

Rep: Reputation: 0
Hi,

I have some problems when trying to mount a cruzer mini 256 MB using SuSE 8.2, but I've made some progress; maybe this can help:

When I insert the flash drive, the computer makes a sound and the drive's led turns on; for about two minutes, the system tries to recognize it, (I do nothing); then the light turns off and later the same first sound is heard: the system gave up. At that point, I type the following commands:

# modprobe -r usb-storage
# modprobe usb-storage
# exit
% mount /mnt/usb # I added this mount point in the /etc/fstab file
% cp something /mnt/usb
% ls /mnt/usb/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/sda1 /mnt/usb ext3,vfat defaults,noauto,users 0 0

Of course this is not exactly the way the pen drive is suppoused to work, but this is better than not working at all. I'm still looking for a better solution.

/Jaime

something

My /etc/fstab look like this:
 
  


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
mounting a usb drive tvn Debian 3 12-25-2005 03:31 PM
USB drive mounting RohanShrivastav SUSE / openSUSE 10 06-08-2005 02:57 AM
Need help mounting USB drive mngmd Linux - Hardware 4 05-29-2005 09:06 PM
Mounting USB NTFS drive. aje Slackware 13 03-23-2005 03:51 AM
Mounting my USB external drive, USB 1.1 Devillion Linux - Hardware 4 01-04-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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