Thanks that now mounts my drives. However it does not update the state of the desktop drive icons. What about you create a new thread for "mount_all"?big_bass wrote:ok, it was more of an idea how to keep it simple (not intended to distract from sunburts thread and his GUI I have used his work before on my slackware box ) just a special request fill in no rox or xdialog required
no user interaction either
here it is with the fixes
place it in Startup
Joe
Code: Select all
#!/bin/sh # call it mount_all updated 10-17-2010 Joe Arose # auto_mount all drives # now if you have to mount stuff from the command line only here's one # unmount in /mnt manually # don't unmount a drive that has your save file ! # you have to "refresh" to see the updated mounts in ROX # this doesnt depend on xdialog or rox #---------------------------------------- # generate /tmp/list_of_drives #---------------------------------------- #to be safe remove out the loop mounted stuff and the swap partion if there is one from the list blkid | egrep '(hd|sd)' | egrep -v "/dev/loop*" | egrep -v "swap" | cut -f 1 -d ':' | sed 's/\/dev\///'>/tmp/list_of_drives for drive in `cat /tmp/list_of_drives` ; do mkdir -p /mnt/$drive mount -o loop /dev/$drive /mnt/$drive done
Auto-Drive ... Mounts ALL removable media.
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
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/
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/
to keep things uncluttered in this thread I started a new one all new post will be there
this started as a special request
note this is a different objective a non GUI non event driven
fully automatic at start up and trying to maintain a simple script
and have it place the mounted folders automatically on the desktop too
*the event driven drive icons are not updated I havent poked into that yet
http://www.murga-linux.com/puppy/viewto ... 342#461342
Joe
this started as a special request
note this is a different objective a non GUI non event driven
fully automatic at start up and trying to maintain a simple script
and have it place the mounted folders automatically on the desktop too
*the event driven drive icons are not updated I havent poked into that yet
http://www.murga-linux.com/puppy/viewto ... 342#461342
Joe