How to automount a USB flash drive?

Booting, installing, newbie
Message
Author
User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#16 Post by canbyte »

Hi
I'm trying to follow the above instructions but can't understand what to do. Sorry - just a noob!

Barry said:" You can download the latest /usr/local/bin/drive_all,"

Download from where?

Assumed I should go to Barry's page
http://bkhome.org/blog/?viewDetailed=02835


and then to the woof2 page
http://bkhome.org/fossil/woof2.cgi/info/8ecbca0fdd
and logged in as instructed. Many links. No idea what to do next. It doesn't really look like i got to the right page.

nothing that looks like a script, Nothing called drive-all.

Hopefully someone can help.

Thanks in advance.
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

stu90

#17 Post by stu90 »

canbyte wrote:Hi
I'm trying to follow the above instructions but can't understand what to do. Sorry - just a noob!

Barry said:" You can download the latest /usr/local/bin/drive_all,"

Download from where?

Assumed I should go to Barry's page
http://bkhome.org/blog/?viewDetailed=02835


and then to the woof2 page
http://bkhome.org/fossil/woof2.cgi/info/8ecbca0fdd
and logged in as instructed. Many links. No idea what to do next. It doesn't really look like i got to the right page.

nothing that looks like a script, Nothing called drive-all.

Hopefully someone can help.

Thanks in advance.
first back up the script /usr/local/bin/drive_all
Now open it in text editor select every thing and delete then paste the code starting from #!/bin/sh on this page - Changes > [72f3d71c300f661c].
http://bkhome.org/fossil/woof2.cgi/arti ... 15cf807e65

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#18 Post by canbyte »

Hi Stu90. Awesome! Works perfectly. Thanks. Love yer pic too :-)

Now I wonder if it possible to have another go at what bala4dj was looking for earlier in this thread as it would be great for what I have in mind - more fully described here

http://www.murga-linux.com/puppy/viewtopic.php?t=78617

He had asked for unlimited mounting/ unmounting (without human action). He discovered there is a natural allowance for removing flash drive up to 9 times which explains why my kids say 'never mind the formalities, just do it' with regards to ignoring their windows eject function. Barry said 'no way', mentioning the windows 'standard'. Makes sense, especially if one tries to unplug the stick in the middle of a write operation.

I think/ hope there might be a way around this. Would it be possible to write a script that would automatically upon detecting drive mounted, undertake an operation ( ie. up/download/play a file) and then to automatically/ immediately unmount the drive? All the user would have to do is wait a prescribed number of seconds/ minutes and then remove their (now unmounted) stick. Possible? Script available?

If there is such a script, I would imagine that it could be tacked onto the end of the same drive_all file so the whole operation is seamless??.

Thanks
[color=orange]1. Dell Dimension E521, AMD Athln 64, 2 GHz 1.93GB ram,
Puppy 533 on CD, accesses flash drive only,
FFox Nightly12.0
2. Compaq P3 733Hz 375RAM
Printer: Oki C3400 > LAN [/color]

bala4dj
Posts: 8
Joined: Mon 14 May 2012, 21:08
Location: Canada

#19 Post by bala4dj »

Well Canbyte, I really appreciate that you brought the same thing which i m looking for, Unlimited usb mount and un-mount without clicking anything.
I strongly believe that there can be script written for this, I tried to edit the drive_all scripts and it is able to mount and unmount by itself but only for a limited no# of time. I still waiting for some one to help me on this !! Unlimited mount / un-mount !! Even i m ready to pay them who can right a script for me on this !! lol !!

User avatar
canbyte
Posts: 264
Joined: Sat 10 Jan 2009, 20:20
Location: Hamilton, Canada

#20 Post by canbyte »

Hi Bala4dj
Looks like we're on our own on this but let's persevere or maybe someone can suggest a forum/thread for noobs to learn how to write script.
----
EDIT: Inserting a note to caution that USB flashdrives can apparently be used to steal your files, passwords etc. Ran across a couple of youtubes showing how while searching on writing script. Scary. Creates a question whether I want to proceed on this. On the positive side, a number of sites came up that described scripts for windows and Linux to autoload mp3 files.
----


So far I found that Drive_all is written in a script, possibly not Bash but something more basic called sh - further discussion at link below.

I'll suggest following the same logic as i am, at least till we figure out how to do this stuff. Per my previous post this involves asking drive_all to do an operation like copy a file and then automatically unmounting. Then when the stick is pulled it is already unmounted. Is this possible in your instance (at least as a first iteration?

Info on scripts moved to a new thread - script for noobs. http://www.murga-linux.com/puppy/viewto ... 516#631516

f_sielka
Posts: 2
Joined: Mon 11 Sep 2017, 19:58

#21 Post by f_sielka »

Hi,

Could anyone please share the drive_all file as I need the USB automount on plugin option available as well.

Thanks,
Filip

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#22 Post by bigpup »

entered in error.
Last edited by bigpup on Tue 27 Feb 2018, 00:35, edited 1 time in total.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#23 Post by jafadmin »

FWIW:
Attachments
drive_all.tar.gz
(6.31 KiB) Downloaded 71 times

Post Reply