Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
hello, how can i access files stored in a usb storage device???
i'm on red hat 9, i already sticked it in the usb port but nothing happens
it is formatted in fat32 (i think) because the files were stored using windows xp
can you help me with this please??, i have to work on this files and haven't a lot of time
Typing in 'dmesg' in a terminal will show you something like
scsi2 : SCSI emulation for USB Mass Storage devices
Vendor: LEXAR Model: JUMPDRIVE SECURE Rev: 2000
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 502880 512-byte hdwr sectors (257 MB)
sda: assuming drive cache: write through
Attached scsi disk sda at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0, type 0
USB Mass Storage device found at 2
The line "SCSI device sda: 502880 512-byte hdwr sectors (257 MB)
sda: assuming drive cache: write through" lets you know it is mounted as device /dev/sda, so you can then mount it as /dev/sda1 (1 being the first partition).
As root (su -) type
mount /dev/sda1 /mnt/usb
Your device is now mounted. If you want to enable write access, using your favorite text editor (I'm using vi in this example) open up /etc/fstab (as root) and add the following line:
Hello, I have the same issue with the USB harddrive (using Mandrake 10.0), and I have a thread a couple pages down. My problem is that when I use dmesg, there is no reference to any sda. If you view my post "Autodetect", I placed the dmesg output relevant to USB. Thanks.
Is there a way to programmatically determine what device (/dev/sdxx) a usb drive is mapped to? Specifically, I do not want to rely on dmsg: a script will be doing this, not a human. My question is for Linux 2.6.
Well the physical devices count up from a in the order they are detected, i.e. the order they are plugged in, or if plugged in at boot, the order the kernel sees them. the 1,2,3... just refers to the physical partitions you have on the device. If you have udev installed on your system they are statically mapped until you unplug them. If heard someone tried to do this by parsing the output of dmesg. I don't think he ever got it to work.