Page 1 of 1

Puppy Python Mount v0.05

Posted: Sat 30 Apr 2011, 18:33
by alexandrion
basically i created this script because i needed a tool to mount my removable media
i'm not using rox to render icons on my desktop so the only thing i have is pmount or the manual mount command
i'm not sure if i'm the only person with this problem but pmount would misbehave like 7/10 times so today i got ambitious and thought about creating my own tool for the job

introducing PPY-Mount (puppy mount tool)

v0.04
Image Image Image Image Image Image Image

it depends on python, yaf-splash and probedisk2, probepart (probedisk, yaf-splash and probepart are installed by default)
the default file manager used is thunar but you can easily change that to rox @ line 143 and 129

it's not perfect but it never failed me so far

extract in /usr/bin/

feedback highly appreciated

v0.05
- fixed the no-fs error, which crashed the program if any of the devices did not have a valid file system

v0.04
- improved gui
- added refresh / quit buttons
- the usb drives are now placed in the first tab since that's usually the point of interest
- the optical drive won't be displayed if the cdrom drive does not contain a cd in it (provided you have sr0 as your ONLY cdrom drive, i don't know how it behaves if you have multiple optical drives)
- code rewritten, it's much easier to understand now (if anybody wants to take a look to try to improve it or just to check it out )

v0.03
- new gui
- added tab design
- added cd-rom support
- most of the code rewritten to fit the new design

v0.02
- using probepart instead of mut since mut would not recognise ext4 (the mut option is still available)
- improved mount command, since the file systems are recognised now (the old option is still available)
- friendlier gui

v0.01
- the initial release
- perfect mount ability
- poor gui

Posted: Sun 01 May 2011, 03:46
by TLM
Downloading now. Will try and post back.

Posted: Sun 01 May 2011, 04:48
by TLM
Pmount has been working ok for me, however this script works well for me too. Sucessfully mounts thumb drives and partitions and unmounts them as well.

Posted: Sun 01 May 2011, 10:31
by alexandrion
new version available! :D

Posted: Mon 02 May 2011, 03:52
by alexandrion
version 0.03 available

Posted: Mon 02 May 2011, 11:24
by sc0ttman
Just a thought, entirely up to you whether you want this or not, but there is some tools called "blkid" and "blkid-name-generator" which can be used to get the volume label as well... Here is a screenshot of how I use it in Puplite:

Posted: Mon 02 May 2011, 12:25
by alexandrion
interesting, do you happen to know if blkid can also output the size of the device?

scanning my /dev/sda drive (9 partition)
probepart executes in 0.319 s
blkid executes in 0.109 s

but partprobe return the partition sizes as well
but if blkid executes faster (including the partition size) i'd be more than happy to use it

Posted: Mon 02 May 2011, 15:39
by sc0ttman
alexandrion wrote:interesting, do you happen to know if blkid can also output the size of the device?
As far as I know, no it cant.. However, post goingnuts a message, he will know more about it...

Posted: Mon 02 May 2011, 16:35
by alexandrion
sc0ttman wrote:
alexandrion wrote:interesting, do you happen to know if blkid can also output the size of the device?
As far as I know, no it cant.. However, post goingnuts a message, he will know more about it...
i checked on the internet and i couldn't find any way to display size
howver, probepart acts beautifully :)


p.s. new release available

Posted: Wed 04 May 2011, 20:00
by alexandrion
v0.05 available :)
it no longer crashes if you insert a unformatted drive :D

ppy-mount does the job. Merci .

Posted: Fri 10 Feb 2017, 09:38
by Pelo
Pmount unserviceable on my Puppy Slacko 5.3.3. ppy-mount does the job. Merci .
For Linux people :
sh-4.1# pmount
/usr/sbin/pmount: line 862: 7796 Terminated yaf-splash -bg orange -fg black -close never -fontsize large -text "$m_02"
/usr/sbin/pmount: line 863: 8407 Aborted /tmp/gtkdialog_pmount --file=/tmp/pmountdlg.txt_${MYPID} -G +"$X"+"$Y" > /tmp/pmountdlg_${MYPID} 2> /tmp/pmounterr
sh-4.1# ppy-mount
EXIT="Exit on timeout"