Skip to contentSkip to conversation

USB mass-storage hell

DISCUSSION Christian Axelsson 3 participants 3 messages Dec 1, 2003

lore
Share & tools
lore
#0 lore raw

I have this USB harddrive and a USB mp3-player, when I plug them in would like them to be mounted at /mnt/hd and /mnt/mp3 by auto. Is this possible using 2.6 and some supermount-like daemon?

Also, the device I plugin first becomes /dev/sda1 and the second /dev/sda2 (using devfs) so I cant rely upon device names here to do anything. Is there any ID of the USB-device aviable somewhere that can be of any use?

Signature · 2 lines
Christan Axelsson
[email protected]
#1 lore raw

Look at sysfs and the lsscsi application.

Matt

Quoted 19 lines · Christian Axelsson

I have this USB harddrive and a USB mp3-player, when I plug them in would like them to be mounted at /mnt/hd and /mnt/mp3 by auto. Is this possible using 2.6 and some supermount-like daemon?

Also, the device I plugin first becomes /dev/sda1 and the second /dev/sda2 (using devfs) so I cant rely upon device names here to do anything. Is there any ID of the USB-device aviable somewhere that can be of any use?

Signature · 9 lines
Christan Axelsson
[email protected]


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 6 lines
Matthew Dharm                              Home: [email protected] 
Maintainer, Linux USB Mass Storage Driver

I need a computer?
					-- Customer
User Friendly, 2/19/1998
#2 lore raw
In reply to Christian Axelsson
Quoted 3 lines · Christian Axelsson

I have this USB harddrive and a USB mp3-player, when I plug them in would like them to be mounted at /mnt/hd and /mnt/mp3 by auto. Is this possible using 2.6 and some supermount-like daemon?

Look at devlabel.

Quoted 4 lines

Also, the device I plugin first becomes /dev/sda1 and the second /dev/sda2 (using devfs) so I cant rely upon device names here to do anything. Is there any ID of the USB-device aviable somewhere that can be of any use?

Look at udev.

Good luck,

greg k-h