I tried and then disconnected my phone, but Raspberry Pi OS complains I should safely eject using GUI (and funnily enough when I open the pull-down menu from the top-right the phone actually disappears from the list of devices!
How can I find out what else Raspberry Pi's eject button is doing, and somehow invoke the same action from the CLI? Surely its binary must be located somewhere on the whole filesystem... (problem is where to look for it!)
I often temporarily plug my phone in to download data with some quick commands, and then need to plug the phone out again, and having to eject each time is tedious!
# PS
- I ejected HiSuite as it was the only thing visible inside (I know many more things are mounted from , but how do I know what's related to my phone? I wouldn't want to eject the SSD my system is running on etc!
# Personal research
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://unix.stackexchange.com/question ... ct-command
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://unix.stackexchange.com/question ... s-in-linux
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://stackoverflow.com/questions/374 ... e-from-adb
- `adb -s SERIAL push /home/alinuxchap/Documents/dat/Hk/man/eject.txt /data/local/tmp & adb -s SERIAL reconnect`
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://askubuntu.com/questions/334994/ ... n-one-line
- `A & B`
- https://www.google.com/search?as_q=rasp ... type=&tbs=
- https://www.youtube.com/watch?v=K-CHqJVHj4c
- `sudo eject /media/alinuxchap/HiSuite`
- viewtopic.php?t=105809
- https://www.google.com/search?as_q=adb+ ... type=&tbs=
Thanks for your patience, hope this makes sense, otherwise I'm one comment away from responding![Wink ;)]()
Code:
adb -s <INSERT DEVICE SERIAL NUMBER HERE> push /home/alinuxchap/Documents/dat/Hk/man/eject.txt /data/local/tmp & adb -s <INSERT DEVICE SERIAL NUMBER HERE> reconnect && eject /media/alinuxchap/HiSuiteHow can I find out what else Raspberry Pi's eject button is doing, and somehow invoke the same action from the CLI? Surely its binary must be located somewhere on the whole filesystem... (problem is where to look for it!)
I often temporarily plug my phone in to download data with some quick commands, and then need to plug the phone out again, and having to eject each time is tedious!
# PS
- I ejected HiSuite as it was the only thing visible inside
Code:
/media/Code:
/proc/mounts# Personal research
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://unix.stackexchange.com/question ... ct-command
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://unix.stackexchange.com/question ... s-in-linux
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://stackoverflow.com/questions/374 ... e-from-adb
- `adb -s SERIAL push /home/alinuxchap/Documents/dat/Hk/man/eject.txt /data/local/tmp & adb -s SERIAL reconnect`
- https://www.google.com/search?as_q=bash ... type=&tbs=
- https://askubuntu.com/questions/334994/ ... n-one-line
- `A & B`
- https://www.google.com/search?as_q=rasp ... type=&tbs=
- https://www.youtube.com/watch?v=K-CHqJVHj4c
- `sudo eject /media/alinuxchap/HiSuite`
- viewtopic.php?t=105809
- https://www.google.com/search?as_q=adb+ ... type=&tbs=
Thanks for your patience, hope this makes sense, otherwise I'm one comment away from responding
Statistics: Posted by BlueBerries — Tue May 20, 2025 3:19 pm — Replies 0 — Views 37