this is a script I wrote to auto mount drives at start up
and then place the folders mounted on the desktop

make it executable and
place it in /root/Startup no user interaction

cd and dvd drives are not mounted

the writing to the desktop was tricky generating a new PuppyPin
for whatever drives you have and doing all this without it being event driven fully automatic

if you notice that the code to mount and draw to the desktop is very compact and doesnt use any of these listed below
pmount
gtkdialog
eventmanager
partprobe,
probedisk and a few other small scripts/apps that are used while mounting

special features will be added
here's a nice little trick if you used my code in the mount_all3
a file got generated called PuppyPin-old
so if you need or want to toggle off the folder icons you could by doing this code snip

Code:

rox --pinboard=/root/Choices/ROX-Filer/PuppyPin-old

and to get the folders back again

Code:

rox --pinboard=/root/Choices/ROX-Filer/PuppyPin

MOUNT_ALL3

Code:

#!/bin/bash

# call it mount_all3 updated 11-06-2010 Joe Arose
# auto_mount all drives non cd and dvd
# now if you have to mount stuff from the command line only here's one
# don't unmount a drive that has your save file !
# this doesnt depend on xdialog

# added folders to be auto drawn and updated on the desktop
# with auto generating of the xml PuppyPin depending
# on whichever drives are used note that this is not event driven
# it is meant to be placed in /root/Startup so there is no user interaction
# major changes in how a list of drives is generated and multiple
# screen displays are detected

#remove out the /mnt/$drive because it keeps getting appended this wipes it clean each time
cat /root/Choices/ROX-Filer/PuppyPin | egrep -v "/mnt" >/root/Choices/ROX-Filer/PuppyPin1
mv /root/Choices/ROX-Filer/PuppyPin1 /root/Choices/ROX-Filer/PuppyPin

if you notice that the code above to mount and draw to the desktop is very compact and doesnt use any of these listed below
pmount
gtkdialog
eventmanager
partprobe,
probedisk and a few other small scripts/apps that are used while mounting

*I dont like to use "PuppyPin" but on the standard versions I will fix that

special features will be added
here's a nice little trick if you used my code in the mount_all2
a file got generated called PuppyPin-old
so if you need or want to toggle off the folder icons you could by doing this code snip

Code:

rox --pinboard=/root/Choices/ROX-Filer/PuppyPin-old

thanks aragon

Joe_________________debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users thoughEdited_times_total

Another small thing, Joe. I wouldn't mount the drives as 'loop' mounts since they are real partitions. Mounting them with the 'loop' option will disable any DMA access to the drives. 'loop' is only needed for partition images which you are filtering out of the list.

Thanks I'll fix it and remove the "loop" I recycled a snip of code from my dragNdrop SFS mounter a cut and paste

Thanks for catching that and taking the time to post

as always any suggestions are always very welcomed
I am adding the correct file system checking for the mount
thanks
Joe_________________debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

The new version is a big improvement with the refreshing of "PuppyPin". So I have commented out the separate drive icon code. There is one big bug though. The puppy home partition drive icon has the wrong icon and when clicked on give me three Rox-Filer windows. Two are at "/mnt/sda1" the other one is at "/initrd/mnt/dev_save".

big_bass wrote:

this started as a special request

I know and I am very gratefully.

Perhaps the simplest thing would be some thing like this:
This only works with drive partition icons enabled to my knowledge.

Code:

#!/bin/bash
# Half the code is from the "mount_all2" script by "big_bass"

for drive in `cat /tmp/list_of_drives` ; do
#Insert code here for extracting "args" parameter of drive partition icons from "/root/Choices/ROX-Filer/PuppyPin" and setting it to the variable "$driveargs".

/root/.pup_event/drive_$drive/AppRun "$driveargs"
done

_________________adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

I had to go about this differently to get the correct mount command
for each drive

@Hey vovchik good to hear from you

*mount does well guessing a linux partition but not for fat and ntfs correctly
if you find something that needs adjusting let me know this is working correctly for me

Joe

special features will be added
here's a nice little trick if you used my code in the mount_all3
a file got generated called PuppyPin-old
so if you need or want to toggle off the folder icons you could by doing this code snip

Code:

rox --pinboard=/root/Choices/ROX-Filer/PuppyPin-old

and to get the folders back again

Code:

rox --pinboard=/root/Choices/ROX-Filer/PuppyPin

_________________debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users thoughEdited_times_total

what does your symlink read when you hover over it with the mouse for home ?
Joe_________________debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

Its with the original drive icon not yours created by mount_all2/3._________________adobe flash is rubbish!
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/