Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Fedora. How do I mount/use USB memory devices? I inserted such a device in a USB port. dmesg gives the following:
hub 3-3:1.0: new USB device on port 1, assigned address 3
ehci_hcd 0000:00:02.2: qh dd9a6180 (#0) state 1
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1004
hub 3-3:1.0: new USB device on port 4, assigned address 4
ehci_hcd 0000:00:02.2: qh dd9a6280 (#0) state 1
scsi6 : SCSI emulation for USB Mass Storage devices
Vendor: I0MEGA Model: Mini 64*IOM Rev: 3.04
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi6, channel 0, id 0, lun 0, type 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
updfstab: numerical sysctl 1 23 is obsolete.
How do I now access that device? Would this also work for a USB digital camera?
You could try to do something similar with a USB camera but be careful though. My digital camera hard locked when I plugged it into my PC and tried to access it under linux.
Same result:
[root@localhost /]# mount -t vfat /dev/sda6 /mnt/usbdrive
mount: /dev/sda6 is not a valid block device
How do you determine the device name to use (ie /dev/sdaX)? In the output I provided earlier, all I see is sda (no number), and it's emulating SCSI for it.
That will list all partitions that linux recognizes including usb storage devices. From that you can deduce the device file. For example, here's the relevant output for my external usb hard drive:
Quote:
Disk /dev/scsi/host1/bus0/target0/lun0/disc: 122.9 GB, 122941341696 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host1/bus0/target0/lun0/part2 * 2 13090 105137392+ 5 Extended
/dev/scsi/host1/bus0/target0/lun0/part5 2 13090 105137361 b Win95 FAT32
The "/dev/scsi" is your first clue since all usb storage devices run under scsi emulation. I have an extended partition with a FAT32 logical drive which is designated /dev/sda5(note the part5 at the end of the /dev/scsi line). I think you get the idea.
As for your camera, it looks like there's some proprietary interface between linux and the storage media. I wouldn't try writing to it if I were you.
Last edited by kilgoretrout; 11-23-2003 at 12:21 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.