Read the script within `Nautilus→Right Clk→Eject Remov...`?

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Read the script within `Nautilus→Right Clk→Eject Remov...`?

Postby bkpsusmitaa » 2017-08-15 02:03

Since Debian Wheezy there lies options for Ejecting Removable Media in Nautilus, even the oldest ones that are difficult to power-off and remove.
How can I access the script that is used in `Nautilus→Right Clk→Eject Removable Media` system-wide? Other file managers don't have this facility.

I also need to know which Kernel module writes the Bind and Unbind files associated with the USB devices? Please note this post: Manual driver binding and unbinding
... In order to unbind a device from a driver, simply write the bus id of the device to the unbind file ...

&
... simply write the bus id of the device you wish to bind, into the bind file for that driver ...


What specifically do the Bind and Unbind files do? They don't appear to be executable files! I have skimmed the Administrator's Handbook but didn't find any entry. Maybe, I am overlooking. Where do I find this part?

The Debian Manual Pages has the Bind & Unbind pointers here , struct_usb_composite_driver - groups configurations into a gadget but I am not clear how they work.

I also don't know what particularly this code
Code: Select all
echo 'x-y' | sudo tee /sys/bus/usb/drivers/usb/unbind
does!
Last edited by bkpsusmitaa on 2017-08-15 03:01, edited 2 times in total.
bkpsusmitaa
 
Posts: 310
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore

Re: Read the script within `Nautilus→Right Clk→Eject Remov..

Postby orythem27 » 2017-08-15 02:54

bkpsusmitaa wrote:How can I access the script that is used in `Nautilus→Right Clk→Eject Removable Media` system-wide?

In modern versions of Debian, most file managers use udisks2 for removable volume management. Not sure if this is true for pre-systemd releases.

bkpsusmitaa wrote:Other file managers don't have this facility.

Really?

bkpsusmitaa wrote:I also need to know which Kernel module writes the Bind and Unbind files associated with the USB devices?

Watch the live stream of syslog by either "journalctl -f" or "tail -f /var/log/syslog" while inserting usb devices. Usually you would see some actions under the hood.

bkpsusmitaa wrote:I have skimmed the Administrator's Handbook but didn't find any entry. Maybe, I am overlooking. Where do I find this part?

Watch the live stream of syslog by either "journalctl -f" or "tail -f /var/log/syslog" while ejecting removeable medias in Nautilus. Usually you would see some actions under the hood.
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re:Read the script within `Nautilus→Right Clk→Eject Remov..?

Postby bkpsusmitaa » 2017-08-15 03:10

orythem27 wrote:
bkpsusmitaa wrote:Other file managers don't have this facility.

Really?

Yes, like pcmanfm doesn't do that. Knoppix has LXDE windows manager. It doesn't have the facility.

bkpsusmitaa wrote:I also need to know which Kernel module writes the Bind and Unbind files associated with the USB devices? Please note this post: Manual driver binding and unbinding
... In order to unbind a device from a driver, simply write the bus id of the device to the unbind file ...
&
... simply write the bus id of the device you wish to bind, into the bind file for that driver ...


What specifically do the Bind and Unbind files do? They don't appear to be executable files! I have skimmed the Administrator's Handbook but didn't find any entry. Maybe, I am overlooking. Where do I find this part?

The Debian Manual Pages has the Bind & Unbind pointers here , struct_usb_composite_driver - groups configurations into a gadget but I am not clear how they work.

I also don't know what particularly this code

Code: Select all
echo 'x-y' | sudo tee /sys/bus/usb/drivers/usb/unbind


does!
The other parts of my original post have been quoted above. Those parts also need to be addressed to. I was editing the post when you replied.
bkpsusmitaa
 
Posts: 310
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable