Puppy Python Mount v0.05
- alexandrion
- Posts: 105
- Joined: Sat 19 Feb 2011, 06:45
Puppy Python Mount v0.05
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
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
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
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 935 times
-
- ppy-mount004.tar.gz
- v0.04
- (2.03 KiB) Downloaded 850 times
Last edited by alexandrion on Wed 04 May 2011, 19:57, edited 15 times in total.
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]
- alexandrion
- Posts: 105
- Joined: Sat 19 Feb 2011, 06:45
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
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
As far as I know, no it cant.. However, post goingnuts a message, he will know more about it...alexandrion wrote:interesting, do you happen to know if blkid can also output the size of the device?
[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]
- alexandrion
- Posts: 105
- Joined: Sat 19 Feb 2011, 06:45
i checked on the internet and i couldn't find any way to display sizesc0ttman wrote:As far as I know, no it cant.. However, post goingnuts a message, he will know more about it...alexandrion wrote:interesting, do you happen to know if blkid can also output the size of the device?
howver, probepart acts beautifully
p.s. new release available
- alexandrion
- Posts: 105
- Joined: Sat 19 Feb 2011, 06:45
ppy-mount does the job. Merci .
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"
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"