| Author |
Message |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Sat 30 Apr 2011, 14:33 Post subject:
Puppy Python Mount v0.05 Subject description: a simple mounting tool written in python |
|
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
 |
| Description |
|

Download |
| Filename |
ppy-mount005.tar.gz |
| Filesize |
2.1 KB |
| Downloaded |
365 Time(s) |
| Description |
v0.04
|

Download |
| Filename |
ppy-mount004.tar.gz |
| Filesize |
2.03 KB |
| Downloaded |
281 Time(s) |
Last edited by alexandrion on Wed 04 May 2011, 15:57; edited 15 times in total
|
|
Back to top
|
|
 |
TLM

Joined: 09 Mar 2010 Posts: 171 Location: Central United States
|
Posted: Sat 30 Apr 2011, 23:46 Post subject:
|
|
Downloading now. Will try and post back.
|
|
Back to top
|
|
 |
TLM

Joined: 09 Mar 2010 Posts: 171 Location: Central United States
|
Posted: Sun 01 May 2011, 00:48 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Sun 01 May 2011, 06:31 Post subject:
|
|
new version available!
|
|
Back to top
|
|
 |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Sun 01 May 2011, 23:52 Post subject:
|
|
version 0.03 available
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2201 Location: UK
|
Posted: Mon 02 May 2011, 07:24 Post subject:
|
|
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:
| Description |
output of blkid |
| Filesize |
199.38 KB |
| Viewed |
1096 Time(s) |

|
| Description |
|
| Filesize |
104.14 KB |
| Viewed |
1098 Time(s) |

|
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Mon 02 May 2011, 08:25 Post subject:
|
|
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
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2201 Location: UK
|
Posted: Mon 02 May 2011, 11:39 Post subject:
|
|
| 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...
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Mon 02 May 2011, 12:35 Post subject:
|
|
| 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
|
|
Back to top
|
|
 |
alexandrion

Joined: 19 Feb 2011 Posts: 105
|
Posted: Wed 04 May 2011, 16:00 Post subject:
|
|
v0.05 available
it no longer crashes if you insert a unformatted drive
|
|
Back to top
|
|
 |
|