Sponsored Content
Operating Systems Linux Debian automount specific USB-disk to specified path Post 302259522 by Corona688 on Tuesday 18th of November 2008 10:34:09 AM
Old 11-18-2008
I have these udev rules for an IDE-to-USB device:
Code:
# /etc/udev/rules.d/10-local.rules
# The raw device
SYSFS{product}=="Cypress AT2LP Demo RC17", SYSFS{serial}=="000000000000", KERNEL=="sd?", NAME="%k", SYMLINK+="hotswap-bay"
# Its partitions
SYSFS{product}=="Cypress AT2LP Demo RC17", SYSFS{serial}=="000000000000", KERNEL=="sd?*", NAME="%k", SYMLINK+="hotswap-bay%n"

It generates the symlinks /dev/hotswap-bay1, /dev/hotswap-bay2, etc. when the device is detected. You may wish to forgo the symlinks and just make the device itself named that instead of whatever the kernel gives it, i.e. %k.

Note that debian probably keeps its local rules in a slightly different filename, though it does apparently have /etc/udev/rules.d

This page from the debian wiki shows you how to obtain the parameters to identify the device with.
 

10 More Discussions You Might Find Interesting

1. SCO

an usb falsh disk under 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

USB Pen Drive & Hard Disk

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

How to detect usb storage arrival and its mount path from C

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

500Gb Maxtor USB disk on Solaris 9

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

USB flash drive/keyfob will not automount

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

External USB disk cannot be mounted

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

RHEL4&5 Automount for USB/CDROM/DVDROM

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

Unmount USB disk

Hi, How can I unmount an usb disk using the command umount? (3 Replies)
Discussion started by: Guccio
3 Replies

9. Red Hat

install redhat linux 5 into usb disk

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

backup the whole system to a usb disk.

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
BCHARGE(1)						      General Commands Manual							BCHARGE(1)

NAME
bcharge - program to set BlackBerry handhelds to 500mA SYNOPSIS
bcharge DESCRIPTION
bcharge is a program that sends a special handshake to all BlackBerry devices it finds on the USB bus. This handshake causes the device to reset itself, and then request 500mA instead of the usual 100mA. This allows proper charging on Linux. It is safe to run this command multiple times, as it only changes devices that are not already set to 500mA, or are not in the desired mode. OPTIONS
-o For Blackberry Pearl devices, using this switch causes bcharge to set the Product ID to 0001. When the Pearl is in 0004 mode, two USB interfaces are presented: one for database access and one for mass storage. In 0001 mode, only the database access is available. Before bcharge is run, the Pearl shows up with a Product ID of 0006, which only gives mass storage functionality. You must run bcharge for the Pearl before using btool. -d This switch is for the Blackberry Pearl to switch it back to 0004 dual mode after having run bcharge with the -o option. Alter- nately, newer devices (such as Storm with product ID of 8007) will be switched to 0004. Since a Pearl in mode 0001 is practically indistinguishable from a classic Blackberry, the -d switch is needed to tell bcharge that you really are working with a Pearl. -g Guess whether Dual mode is needed. If USB Interface Class 255 is not found on the device (the class used for database access), then dual mode is set. Otherwise, the device is left as is. -h Help summary. -p devpath If your system runs a kernel with CONFIG_USB_SUSPEND enabled (some Ubuntu kernels have this turned on, as well as some Fedora 7 ker- nels), then you also need to adjust the suspend state to avoid going into power saving mode. This option is used when run from udev, using a rule such as: BUS=="usb", SUBSYSTEM=="usb_device", ACTION=="add", SYSFS{idVendor}=="0fca", SYSFS{idProduct}=="0001", SYMLINK+="bb-%k", GROUP="plugdev", MODE="0660", RUN="/usr/sbin/bcharge -p %p" When using this option, you will almost always need to be root. -s path Specify the mount point for the sysfs filesystem. On most systems this is mounted at /sys which is the default. AUTHOR
bcharge and this manual page were written by Chris Frey <cdfrey@foursquare.net> for the Barry project. http://www.netdirect.ca/software/packages/barry October 7, 2010 BCHARGE(1)
All times are GMT -4. The time now is 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy