Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 22 Apr 2018, 02:46
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to automount a USB flash drive?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
canbyte


Joined: 10 Jan 2009
Posts: 266
Location: Hamilton, Canada

PostPosted: Sun 27 May 2012, 21:12    Post subject:  

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.

_________________
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

Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1399
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Mon 28 May 2012, 00:29    Post subject:  

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/artifact/72f3d71c300f661ce279c17553e85815cf807e65
Back to top
View user's profile Send private message 
canbyte


Joined: 10 Jan 2009
Posts: 266
Location: Hamilton, Canada

PostPosted: Mon 28 May 2012, 11:33    Post subject:  

Hi Stu90. Awesome! Works perfectly. Thanks. Love yer pic too Smile

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

_________________
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

Back to top
View user's profile Send private message 
bala4dj

Joined: 14 May 2012
Posts: 8
Location: Canada

PostPosted: Thu 31 May 2012, 13:05    Post subject:    

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 !!
Back to top
View user's profile Send private message 
canbyte


Joined: 10 Jan 2009
Posts: 266
Location: Hamilton, Canada

PostPosted: Sat 02 Jun 2012, 16:11    Post subject:  

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/viewtopic.php?p=631516#631516
Back to top
View user's profile Send private message 
f_sielka

Joined: 11 Sep 2017
Posts: 2

PostPosted: Mon 26 Feb 2018, 17:59    Post subject:  

Hi,

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

Thanks,
Filip
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 10303
Location: Charleston S.C. USA

PostPosted: Mon 26 Feb 2018, 20:23    Post subject:  

entered in error.
_________________
I have found, in trying to help people, that 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 Shocked

Last edited by bigpup on Mon 26 Feb 2018, 20:35; edited 1 time in total
Back to top
View user's profile Send private message 
jafadmin

Joined: 19 Mar 2009
Posts: 751

PostPosted: Mon 26 Feb 2018, 20:33    Post subject:  

FWIW:
drive_all.tar.gz
Description 
gz

 Download 
Filename  drive_all.tar.gz 
Filesize  6.31 KB 
Downloaded  4 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0632s ][ Queries: 13 (0.0225s) ][ GZIP on ]