LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Desperately need help in mounting usb drive (https://www.linuxquestions.org/questions/linux-software-2/desperately-need-help-in-mounting-usb-drive-67675/)

PenGPow 06-24-2003 06:55 AM

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

:(

stony 06-24-2003 07:26 AM

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

PenGPow 06-24-2003 07:54 AM

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

PenGPow 06-24-2003 08:25 AM

Got It :)
 
Hi again,

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

thx a bunch,

Penguin Power.

RazorSA 06-24-2003 09:12 AM

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

enigmasoldier 11-15-2003 01:13 AM

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.

dhbiker 12-10-2003 11:59 AM

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 :mad: , 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" :mad:

PenGPow 12-10-2003 01:09 PM

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

PenGPow 12-10-2003 01:10 PM

just a side note to quit from fdisk type q ;)

dhbiker 12-10-2003 01:15 PM

I just tried that and I get

"Unable to open /dev/sdd" etc. for all of them :cry:

dhbiker 12-10-2003 03:08 PM

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.

mickboda 12-10-2003 06:14 PM

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

dhbiker 12-11-2003 02:59 AM

yeah, it works fine in Windows 2000!! I don't understand why linux is complaining, I had my old usb pen working fine :scratch:

dhbiker 12-11-2003 10:11 AM

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

txmjafg 12-11-2003 06:57 PM

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:

txmjafg 12-11-2003 07:01 PM

Sorry, I did something wrong when posting. This is the message again:

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
something

My /etc/fstab look like this:

/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

dhbiker 12-12-2003 04:45 AM

that doesn't work for me, hda is my hard disc! i've tried fdisk on all hda,b,c d, etc. the same for sd as well. The damn stick just doesn't show up!!!

it comes up in lsusb and if I go to yast2 it shows up there in the hardware information.

has anyone found this problem using suse 9? I may well just upgrade :(


All times are GMT -5. The time now is 09:06 PM.