From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 1 Aug 2015 05:47:30 -0700 (PDT) From: Userx Xbw To: voidlinux Message-Id: <2ad7a1ef-4460-427b-ac1d-4a9f46185b3e@googlegroups.com> In-Reply-To: References: Subject: Re: (how to) automount USB ports MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_138_212485009.1438433250973" ------=_Part_138_212485009.1438433250973 Content-Type: multipart/alternative; boundary="----=_Part_139_1775915092.1438433250974" ------=_Part_139_1775915092.1438433250974 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit It'd have to be generic in order to get past an UID because the creator of the product can in no way know each make or model of what is going to be plugged into the usb and used. it can only go by what types of devices use a USB port, then start their having to come up with a solution to be able to recognize just what it is that was just plugged into the USB Port. an external HDD, usb mouse, external Keyboard, usb stick. the list goes no hence the term *Universal Serial Bus. * take MATE, E, XFCE4 and other DE , not WM and they all seem to have this worked out, but the how they do it is hard to find, someone has to know and does not want to share this knowledge. Instead they tell us how to manually mount it using autofs and other means, or hard code it for just one specific USB Stick as if that is the only one I will ever use my entire life. while if using a DE in how ever they set it up will just work no matter what you plug into it. I have FATDOG on a USB stick, it will know the /dev/sdc , sdd, sde and if I have a usb stick split into more then one partitions. it shows sdc1 sdc2 or sdd1 sdd2 etc. like it does a blkid on it to know what it is looking at then goes from their. but where is the how to's on getting this done? if someone that just takes off and starts up their own distro like MATE or anyone else. How did they get this information to do this? When I can google my fingers off and not find out the how to do it like they did, but for some reason they know this secret. In Slackware I installed openbox, did not do anything special with mounting drives, and my PCMANFM just sees what ever it is I plug into the USB Port, it just works. if their is a label attached to the device then it will show that name if no label is attached it will give it a generic number / name. nevertheless it knows what it is and how much space is on it, etc. this tells me that their is a procedure that can be tied into that is or has to be a system wide but not really because depending on the model of the Linux being used, ie. VOid, Exbuntu, or what ever name someone comes up with to call their version of Linux. this is a split thought because the auto mounting is now like it is split, if my pcmanfm works for automounting in one de / wm but not another one on the same linux system it cannot be a system wide set up, so now I got to look at who is auto mounting and where are all of their files it uses to get this done to try and copy what they did so that another wm / de will do the same thing just like they are doing it not having to type in a UUID because even a UUID is unique and no longer can the system deal with that random USB Stick someone hands you to plug in then just auto mount it. like Windows and some of the Linux DE's. How they are doing it is what I am looking for. On Friday, July 31, 2015 at 10:19:26 AM UTC-5, Userx Xbw wrote: > > 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)? > > > ------=_Part_139_1775915092.1438433250974 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
It'd have to be generic in order to get past an UID be= cause the creator of the product can in no way know each make or model of w= hat is going to be plugged into the usb and used. it can only go by what ty= pes of devices use a USB port, then start their having to come up with a so= lution to be able to recognize just what it is that was just plugged into t= he USB Port. an external HDD, usb mouse, external Keyboard, usb stick. the = list goes no hence the term Universal Serial Bus.

=C2=A0take= MATE, E, XFCE4 and other DE , not WM and they all seem to have this worked= out, but the how they do it is hard to find, someone has to know and does = not want to share this knowledge. Instead they tell us how to manually moun= t it using autofs and other means, or hard code it for just one specific US= B Stick as if that is the only one I will ever use my entire life.

= while if using a DE in how ever they set it up will just work no matter wha= t you plug into it. I have FATDOG on a USB stick, it will know the /dev/sdc= , sdd, sde and if I have a usb stick split into more then one partitions. = it shows sdc1 sdc2 or sdd1 sdd2 etc. like it does a blkid on it to know wha= t it is looking at then goes from their.

but where is the how to'= ;s on getting this done? if someone that just takes off and starts up their= own distro like MATE or anyone else. How did they get this information to = do this?

When I can google my fingers off and not find out the how t= o do it like they did, but for some reason they know this secret. In Slackw= are I installed openbox, did not do anything special with mounting drives, = and my PCMANFM just sees what ever it is I plug into the USB Port, it just = works. if their is a label attached to the device then it will show that na= me if no label is attached it will give it a generic number / name. neverth= eless it knows what it is and how much space is on it, etc.

this te= lls me that their is a procedure that can be tied into that is or has to be= a system wide but not really because depending on the model of the Linux b= eing used, ie. VOid, Exbuntu, or what ever name someone comes up with to ca= ll their version of Linux.

this is a split thought because the auto = mounting is now like it is split, if my pcmanfm works for automounting in o= ne de / wm but not another one on the same linux system it cannot be a syst= em wide set up, so now I got to look at who is auto mounting and where are = all of their files it uses to get this done to try and copy what they did s= o that another wm / de will do the same thing just like they are doing it n= ot having to type in a UUID because even a UUID is uniqu= e and no longer can the system deal with that random USB Stick someo= ne hands you to plug in then just auto mount it. like Windows and some of t= he Linux DE's.

How they are doing it is what I am looking for. =



On Friday, July 31, 2015 at 10:19:26 AM UTC-5, Userx Xbw wr= ote:
O' Ta= y, I have a few different WM/DE installed here on VOidLiNux -- now this aut= omounting of the USB Ports, is getting me=C2=A0 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 t= o see the USB mounted devices, what ever they are and reguardless if it is = on, /dev/sdc . /dev/sdd , /dev/sde=C2=A0 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 stoppe= d -- 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 dw= m when I am using pcmanfm, but in my de lxde and E they work with their res= pective filemanangers, and on the deaktops, minus the desktop, in i3 and dw= m, because they are titling wm. nevertheless the filemanagers within these = two wm and others should still have this same capability to automount USB P= orts.

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 th= at something just got pluged into it so figure it out then deal with it acc= ordingly. 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/use= rx/4489-120D=C2=A0 <--- that being my android Ph /dev/sdc
/run/media/= userx/winlinux=C2=A0 <--- that being my external HDD /dev/sdd

the= se are generic mount points that to me have to be getting generated automat= iclly 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 limitin= g 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 exam= ple they show this,

$ udevinfo -a -p /sys/block/sdc/ | grep mo=
del
    ATTRS{model}=3D=3D"Ext HDD 1021    "


Now,= that we have model attribute, we can add it to /etc/udev/rules.d/custom.ru= les by following line:

SUBSYSTEM=3D=3D"scsi", ATTRS{model}=3D=3D"Ext HDD 1021 =
   ", SYMLINK+=3D"Iomega%n"

I understand in /et= c/udev/rules.d/ the only file I have in their so far is this one, 10-networ= k.rules

SUBSYSTEM=3D=3D"net", ACTION=3D=3D"add",= ATTR{address}=3D=3D"00:21:6a:be:c7:08", NAME=3D"wlan0&= quot;

where the ATTR is hard coded because the MAC address never cha= nges, and the ATTRS for a USB will,

this is my andriod ph /run/medi= a/userx/4489-120D
=C2=A0userx@void :^rules.d^ @~&udevadm info -a -p= /sys/block/sdc | grep model
=C2=A0=C2=A0=C2=A0 ATTRS{model}=3D=3D"= File-CD Gadget=C2=A0 "

this is my external HDD /run/media/userx= /winlinux
=C2=A0userx@void :^rules.d^ @~&udevadm info -a -p /sys/bl= ock/sdd | grep model
=C2=A0=C2=A0=C2=A0 ATTRS{model}=3D=3D"=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 "

as you can see between /dev/sdc and /dev/sdd the AT= TRS 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 pl= anly see they are not using the /etc/udev/rules.d/ with USB Ports. VOidLiNu= x is showing 4489-120D and the lable on the HDD winlinux as mount points, t= he example for autofs says I got a use the output of udev model one shows s= omething and the other is left blank on my laptop, two different things, me= aning 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 bet= ter way to do it.

so the question would be. How do I plug i3 and dw= m and anything else (wm/de) I need to in order to use this methoid of behav= or that VOidLiNux is having with the DE and E? Especially when using any nu= mber of FileManagers. what little "secret" program and or meth ar= e they using to get this auto USB Port mount to work that I can tie into wh= en using pcmanfm in i3 and dwm (so far)?


------=_Part_139_1775915092.1438433250974-- ------=_Part_138_212485009.1438433250973--