From: Userx Xbw <use...@gmail.com>
To: voidlinux <void...@googlegroups.com>
Subject: (how to) automount USB ports
Date: Fri, 31 Jul 2015 08:19:26 -0700 (PDT) [thread overview]
Message-ID: <d3822a5b-25fc-4bb8-98b7-a5b93b09b578@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 4022 bytes --]
O' Tay, I have a few different WM/DE installed here on VOidLiNux -- now
this automounting of the USB Ports, is getting me very curious as to how
does lxde and Enlightenment automount when i3 and dwm does not, mostly
thinking in the manner of pcmanfm or simulaire FileManager when open up one
needs to see the USB mounted devices, what ever they are and reguardless if
it is on, /dev/sdc . /dev/sdd , /dev/sde etc... I was reading how to's on
this matter using autofs - then in my working this almost solution, when I
went to istall autofs and seen that is was going to install it. I stopped
-- said to myself, if it is not installed, then what is this system using
to do the same thing I want it to do already?
Just not in i3 or dwm when I am using pcmanfm, but in my de lxde and E they
work with their respective filemanangers, and on the deaktops, minus the
desktop, in i3 and dwm, because they are titling wm. nevertheless the
filemanagers within these two wm and others should still have this same
capability to automount USB Ports.
with autofs this help me how to post is telling me I have to get the make
of what ever it is that is pluged into it not just the fact that something
just got pluged into it so figure it out then deal with it accordingly. as
this is what my DE are doing.
example right now I have a little Andriod Phone pluged in so I can copy
some movies over onto it to watch , and a 1TB hard drive using an IDE to
USB adaptor.
/run/media/userx/4489-120D <--- that being my android Ph /dev/sdc
/run/media/userx/winlinux <--- that being my external HDD /dev/sdd
these are generic mount points that to me have to be getting generated
automaticlly and not like it is said to do using autofs where I have to
explicedly tell it the make of what ever it is I am pluging into the USB
port limiting the ability to just plug in what ever make of USB stick or
hdd / exteranl HDD to use in USB. (I maybe off on this thought a little)
but nevertheless, this instruction is telling me I have to write a file
in the example they show this,
$ udevinfo -a -p /sys/block/sdc/ | grep model
ATTRS{model}=="Ext HDD 1021 "
Now, that we have model attribute, we can add it to
/etc/udev/rules.d/custom.rules by following line:
SUBSYSTEM=="scsi", ATTRS{model}=="Ext HDD 1021 ", SYMLINK+="Iomega%n"
I understand in /etc/udev/rules.d/ the only file I have in their so far is
this one, 10-network.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:21:6a:be:c7:08",
NAME="wlan0"
where the ATTR is hard coded because the MAC address never changes, and the
ATTRS for a USB will,
this is my andriod ph /run/media/userx/4489-120D
userx@void :^rules.d^ @~&udevadm info -a -p /sys/block/sdc | grep model
ATTRS{model}=="File-CD Gadget "
this is my external HDD /run/media/userx/winlinux
userx@void :^rules.d^ @~&udevadm info -a -p /sys/block/sdd | grep model
ATTRS{model}==" "
as you can see between /dev/sdc and /dev/sdd the ATTRS will change
depending on what it is one plugs into it. as well as where are the files
VOidLiNux uses to get their auto mounts working, as I can planly see they
are not using the /etc/udev/rules.d/ with USB Ports. VOidLiNux is showing
4489-120D and the lable on the HDD winlinux as mount points, the example
for autofs says I got a use the output of udev model one shows something
and the other is left blank on my laptop, two different things, meaning I'd
ahve to type in every kind of mode that can be plugged into a USB to get it
to automount? when I can see VOidLiNux and others have a better way to do
it.
so the question would be. How do I plug i3 and dwm and anything else
(wm/de) I need to in order to use this methoid of behavor that VOidLiNux is
having with the DE and E? Especially when using any number of FileManagers.
what little "secret" program and or meth are they using to get this auto
USB Port mount to work that I can tie into when using pcmanfm in i3 and dwm
(so far)?
[-- Attachment #1.2: Type: text/html, Size: 4310 bytes --]
next reply other threads:[~2015-07-31 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 15:19 Userx Xbw [this message]
2015-08-01 4:54 ` JD Robinson
2015-08-01 5:18 ` JD Robinson
2015-08-01 12:47 ` Userx Xbw
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=d3822a5b-25fc-4bb8-98b7-a5b93b09b578@googlegroups.com \
--to="use..."@gmail.com \
--cc="void..."@googlegroups.com \
/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;
as well as URLs for NNTP newsgroup(s).