public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Альфар <slaughterofshudras@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] UDEV
Date: Mon, 25 May 2009 22:15:06 +0300	[thread overview]
Message-ID: <7c65e4a70905251215t7c1183fg31f48f134d4732e6@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2549 bytes --]

Bus 003 Device 010: ID 152d:2338

Device Descriptor:

...

idVendor 0x152d

idProduct 0x2338

bcdDevice 1.00

iManufacturer 1

iProduct 2

iSerial 5

bNumConfigurations 1

Shared with Flock - The Social Web Browser
http://flock.com
lsusb –v

Shared with Flock - The Social Web Browser
http://flock.com


2009/5/25 Mark Knecht <markknecht@gmail.com>

> Hi,
>   I'm wondering what I need to read about and do to get a USB drive
> to auto-mount reliably at boot time? I don't know anything about udev
> so I tried what I thought used to work in my /etc/fstab file but it
> doesn't work. The drive mounts by hand just fine:
>
> MacMini linux # cat /etc/fstab | grep video
> /dev/sda1               /video          ext3            auto,rw         0 2
> MacMini linux # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda4             75890040  60601600  11433376  85% /
> udev                     10240       164     10076   2% /dev
> shm                     257396         0    257396   0% /dev/shm
> MacMini linux # mount /dev/sda1 /video
> MacMini linux # df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/hda4             75890040  60601604  11433372  85% /
> udev                     10240       164     10076   2% /dev
> shm                     257396         0    257396   0% /dev/shm
> /dev/sda1            157566568    192068 149370520   1% /video
> MacMini linux #
>
>   Must I use udev (and if so how - what do I study to make this work)
> or can I do this in fstab and I've just forgotten something simple?
>
>   Also, what's the feeling these days about the reliability of
> automounting by device? Would I be better to use e2label on the
> partition?
>
> Thanks in advance,
> Mark





run *lsusb –v*

you will see somethin like this

*Bus 003 Device 010: ID 152d:2338*

*Device Descriptor:*

*...dVendor           0x152d*

*  idProduct          0x2338*

*  bcdDevice            1.00*

*  **iManufacturer           1*

*  iProduct                2*

*  iSerial                 5*

*  bNumConfigurations      1*
Now make file /etc/udev/rule.d/z98-usb-flash.rules with this content

*SUBSYSTEM**=="block**", SYSFS**{idProduct**}=="2338",
SYSFS**{idVendor**}=="152d**", NAME**="name**" **RUN+="/bin/mount
/dev/name /media/name"*
*
Change idProduct and idVendor and to your data. And name too. With
this name your device will apear in /dev. And of course mkfir
/media/name
*


**

[-- Attachment #2: Type: text/html, Size: 4267 bytes --]

                 reply	other threads:[~2009-05-25 19:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c65e4a70905251215t7c1183fg31f48f134d4732e6@mail.gmail.com \
    --to=slaughterofshudras@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox