Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 13:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Puppy Python Mount v0.05
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: 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
ppy-mount005.tar.gz
Description 
gz

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

 Download 
Filename  ppy-mount004.tar.gz 
Filesize  2.03 KB 
Downloaded  382 Time(s) 

Last edited by alexandrion on Wed 04 May 2011, 15:57; edited 15 times in total
Back to top
View user's profile Send private message 
TLM


Joined: 09 Mar 2010
Posts: 173
Location: Central United States

PostPosted: Sat 30 Apr 2011, 23:46    Post subject:  

Downloading now. Will try and post back.
Back to top
View user's profile Send private message 
TLM


Joined: 09 Mar 2010
Posts: 173
Location: Central United States

PostPosted: 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
View user's profile Send private message 
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: Sun 01 May 2011, 06:31    Post subject:  

new version available! Very Happy
Back to top
View user's profile Send private message 
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: Sun 01 May 2011, 23:52    Post subject:  

version 0.03 available
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: 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:
screen10.png
 Description   output of blkid
 Filesize   199.38 KB
 Viewed   1254 Time(s)

screen10.png

screen9.png
 Description   
 Filesize   104.14 KB
 Viewed   1230 Time(s)

screen9.png


_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: 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
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: 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
View user's profile Send private message 
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: 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 Smile


p.s. new release available
Back to top
View user's profile Send private message 
alexandrion


Joined: 19 Feb 2011
Posts: 105

PostPosted: Wed 04 May 2011, 16:00    Post subject:  

v0.05 available Smile
it no longer crashes if you insert a unformatted drive Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Filesystem
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0659s ][ Queries: 13 (0.0087s) ][ GZIP on ]