11-17-2008
automount specific USB-disk to specified path
I was just talking to a friend of mine about a problem I have, and he suggested that udev could probably help me. Allthough he couldn't give me any hints on how to accomplish what i want to.
I have read the manual and searched google, but without any good info... here's the thing...
I am running Debian Etch, and have 3 USB disks.
I would like to give them "names" in order to correctly automount them to some specific path.
For simplicity, lets call the Seagate, Maxtor and Samsung.
I would like to allways mount them into /share/USB/Seagate, /share/USB/Maxtor and /share/USB/Samsung
The problem is just that they never have the same devicename. Seagate can at one time be sda1, and the next sdc1.
How can I make it so that no matter what devicename the disks got, the Seagate disks allways automounts in /share/USB/Seagate and so on?
10 More Discussions You Might Find Interesting
1. SCO
is it possible to access an usb flash disk under sco unixware 7.11?
and how to do?
any help is apreciated (0 Replies)
Discussion started by: nabil_boussetta
0 Replies
2. Filesystems, Disks and Memory
Hi Guys,
I have an external USB Hard Disk Drive on which I have 3 partitions and it works fine under Windows XP but when I am using Red Hat Linux 5 I don't see any icon for this USB HDD. Also I am not able to browse my USB Pen Drive. However, I can use it under Mandrake Linux without any... (4 Replies)
Discussion started by: indiansoil
4 Replies
3. Programming
Hi, I am a newbi to linux,
i wana to write a program in C that can detect arrival of a usb flash memory. I want also to find the actual mount point of new inserted flash disk. can anyone help me?
thanks a lot (6 Replies)
Discussion started by: aghashahi
6 Replies
4. Solaris
Does anyone succesfully is able to get the drive to work on Solaris 9?
The OS recognizes the drive, however 'format -e' says "drive type unknown'
I then set CHS manually, but only 120Gb shows.
thanks. (2 Replies)
Discussion started by: tuan_quan
2 Replies
5. Ubuntu
I am working on an Ubuntu Linux 8.10 system that I do not want to reboot. For some reason, USB flash drives (mass storage devices) now no longer automount. I want to restore that functionality without rebooting. I can manually mount and unmount these things by doing:
cd /media
sudo mkdir thing... (4 Replies)
Discussion started by: ropers
4 Replies
6. SuSE
Hi,
I am running Suse on a fujitsu server. The problem is that it will no fully load the usb external disk. When plugged in, dmesg shows that indeed a usb disk has been plugged in ,but gives no devpath e.g sda,sdb.
lsusb shows the disk vendor (western digital) but nothing else.Whats goin on... (2 Replies)
Discussion started by: ulemsee
2 Replies
7. Red Hat
Hi Guys,
as above, how do I enable automount for USB/CDROM/DVDROM in RHEL4 & 5?
I have searched the forum on this topic but didn't find any.
Also searched the net but it seems confusing and there are different ways to do things depending on the distros.
Btw, I am on RHEL command line only... (4 Replies)
Discussion started by: DrivesMeCrazy
4 Replies
8. Shell Programming and Scripting
Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies
9. Red Hat
Hi,
I have 2 question.
1)how can I install the redhat linux 5 into USB disk and boot from USB disk forever.
2) how can I backup an existing redhat linux from hd to USB by disk image and make the USB bootable afterward ,
so I can use usb disk to boot the linux in another machine ....
Please... (0 Replies)
Discussion started by: chuikingman
0 Replies
10. Solaris
Hi dears, i´m working with a sun sparc server(M4000) , solaris 10 installed.
I need a little help, because i wanna know if is it possible to backup the whole system in a usb disk.
I´m gonna explain you a little more why i want to do it.
Currently i have installed a Solaris 10 working with... (5 Replies)
Discussion started by: botella
5 Replies
lsusb(8) Linux USB Utilities lsusb(8)
NAME
lsusb - list all USB devices
SYNOPSIS
lsusb [options]
DESCRIPTION
lsusb is a utility for displaying information about all USB buses in the system and all devices connected to them.
To make use of all the features of this program, you need to have Linux kernel 2.3.15 or newer which supports the /proc/bus/usb interface.
OPTIONS
-v Tells lsusb to be verbose and display detailed information about all devices.
-vv Tells lsusb to be very verbose and display even more information (actually everything the PCI device is able to tell).
-s [[<bus>]:][<devnum>]]
Show only devices in specified bus and devnum.
-d [<vendor>]:[<product>]
Show only devices with specified vendor and product ID. Both ID's are given in hexadecimal and may be omitted.
-p <procpath>
Use another path instead of /proc/bus/usb.
-D <device>
Do not scan the /proc/bus/usb directory, instead display only information if the device whose device file is given.
-t Tells lsusb to dump the physical USB device hierarchy as a tree.
FILES
/usr/share/hwdata/usb.ids
A list of all known USB ID's (vendors, products, classes, subclasses and protocols).
/proc/bus/usb
An interface to USB devices provided by the post-2.3.15 Linux kernels. Contains per-bus subdirectories with per-device files and a
devices file containing a list of all USB devices.
SEE ALSO
lspci(8)
AUTHOR
Thomas Sailer, <sailer@ife.ee.ethz.ch>.
usbutils-0.2 14 September 1999 lsusb(8)