Puppy Python Mount v0.05

Filemanagers, partitioning tools, etc.
Post Reply
Message
Author
User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

Puppy Python Mount v0.05

#1 Post 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
Attachments
ppy-mount005.tar.gz
(2.1 KiB) Downloaded 932 times
ppy-mount004.tar.gz
v0.04
(2.03 KiB) Downloaded 849 times
Last edited by alexandrion on Wed 04 May 2011, 19:57, edited 15 times in total.

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#2 Post by TLM »

Downloading now. Will try and post back.

User avatar
TLM
Posts: 183
Joined: Tue 09 Mar 2010, 05:14
Location: Central United States

#3 Post 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.

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#4 Post by alexandrion »

new version available! :D

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#5 Post by alexandrion »

version 0.03 available

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#6 Post 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:
Attachments
screen9.png
(104.14 KiB) Downloaded 1695 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#7 Post 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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#8 Post 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...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#9 Post 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

User avatar
alexandrion
Posts: 105
Joined: Sat 19 Feb 2011, 06:45

#10 Post by alexandrion »

v0.05 available :)
it no longer crashes if you insert a unformatted drive :D

Pelo

ppy-mount does the job. Merci .

#11 Post 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"

Post Reply