LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Accessing a USB pendrive.. (https://www.linuxquestions.org/questions/linux-hardware-18/accessing-a-usb-pendrive-203492/)

KNIVES 07-10-2004 04:05 PM

Accessing a USB pendrive..
 
I got it in, but im not sure how to mount it..
i searched for a topic, a guy said he culdnt umount one, and he used the
mount /dev/sda1 /mnt/usbHD
command to mount it, since he was on redhat 8, and im on 9, i tried that, but it didnt work...
So now im not entirely sure how to get it workin..:confused:
:newbie:
:cry:

idaho 07-10-2004 05:02 PM

Your USB thumbdrive will be mounted as if it were a SCSI device. The /dev/sda1 device file is the way your system connects to the first partition on its first SCSI device. If the "mount /dev/sda1 /mnt/usbHD" invocation did not work, it is because something else is being treated as the first SCSI device, or the /mnt/usbHD mount location did not exist.

If you provide the following information, I am sure someone here can help you:
1) the contents of /proc/scsi/scsi
2) the error message displayed when your mount attempt fails

Vincent_Vega 07-10-2004 05:04 PM

Make a mount directory (/mnt/pendrive or whatever), plug it in and mount it. It will probably show up at /dev/sda1 but you can find out which /dev it is by checking:
tail /var/log/messages

Shouldn't be too difficult.

raulgotor 07-11-2004 11:27 AM

Thanks for your answers. When i have a moment, ill try it, and say what happens.

Thank you!

KNIVES 07-11-2004 03:43 PM

"If you provide the following information, I am sure someone here can help you:
1) the contents of /proc/scsi/scsi
2) the error message displayed when your mount attempt fails"

1) Using the cat ./scsi command, i get
"Attached Devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD+RW ND1100A REV: 108B
Type: CD-ROM ASCI SCSI revision: 02"

2)Using the `mount /dev/sda1 /mnt/usbHD' command, i get:
"mount: you must specify the file system type"

------

Im going to try what Vincent_Vega said..
heres wut i did:
# mkdir /mnt/usb
# mnt /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device
# tail /var/log/messages

I read the messages, and the basicly said that (im think) the usb stick was assigned an address, and it didnt accept the address. Like:
USB assigned address 2
USB cant accept address
and then it said address 3..

i can type out the whole log if needed..=/

idaho 07-11-2004 05:35 PM

The contents of /proc/scsi/scsi that you show indicate that your USB device is not being seen.

Was the USB drive connected to your system when you did this?

Quote:

1) Using the cat ./scsi command, i get
"Attached Devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD+RW ND1100A REV: 108B
Type: CD-ROM ASCI SCSI revision: 02"

Vincent_Vega 07-11-2004 10:30 PM

Unplug the drive, type this command:
tail -s 3 -f /var/log/messages
Now insert the drive to the USB port and look for something like this after a second or two
:
Attached scsi disk sda aat scsi5, channel 0, id 0, lun 0

That 'sda' means you'll mount it at sda, probably sda1 or sda0 possibly...maybe even sda5 in this case since it says scsi5. I can't say for sure. If you don't see a line like that let us know. I think you might.


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