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 Sat 30 Aug 2014, 02:30
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Ymount 002
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 7 [102 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 25 Jun 2011, 05:46    Post subject:  Ymount 002
Subject description: A lighter alternative to Pmount
 

Here's a lighter alternative to Pmount, written with Yad (instead of the slower gtkdialog).

This one is a bit friendlier, it requires the same amount of clicks but lets you choose the partition according to the device it resides on. It also comes with a similar tool for safe removal of removable drives.

It should work on any recent kernel that uses the SCSI subsystem (e.g sda1 instead of hda1).

The only requirements it has are Yad (as mentioned earlier) and guess_fstype, which comes with all puppies these days.

Not heavily tested (especially optical media), but works with my netbook's hard drive and two flash drives Smile

Changelog:
002:
- Added Yeject, a tool for ejecting removable drives Smile
- Small bug fix
ymount-002.pet
Description 
pet

 Download 
Filename  ymount-002.pet 
Filesize  1.97 KB 
Downloaded  620 Time(s) 
ymount.png
 Description   
 Filesize   69.1 KB
 Viewed   788 Time(s)

ymount.png

ymount-001.pet
Description 
pet

 Download 
Filename  ymount-001.pet 
Filesize  1.65 KB 
Downloaded  481 Time(s) 

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Mon 04 Jul 2011, 12:53    Post subject: Re: Ymount 002
Subject description: A lighter alternative to Pmount
 

Iguleder wrote:
Not heavily tested

Testresult on freshly booted drake0.1 see picture. Sad

Have to boot wary now...

Edited: same result in wary512


Edited 2011-09-11
Link to latest version provided always here:
http://www.murga-linux.com/puppy/viewtopic.php?p=557739
ymount.png
 Description   ymount not showing sda2
 Filesize   10.92 KB
 Viewed   1658 Time(s)

ymount.png


Last edited by L18L on Sun 11 Sep 2011, 09:20; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 05 Jul 2011, 14:35    Post subject: Re: Ymount 002
Subject description: A lighter alternative to Pmount
 

Hi iguleder,

changing
Code:
partition_size=$(echo "scale=1; `cat /sys/class/block/$partition/size` * 512 / 1000000000" | bc)
in functions
to
Code:
partition_size=$(echo "scale=1; `cat /sys/class/block/$partition/size` * 512 / 1000000" | bc)

will make it visible
Code:
#partition=sda2
# echo "scale=1; `cat /sys/class/block/$partition/size` * 512 / 1000000" | bc
16.4
#

my sda2 has size of 16 M (used as boot partition)
It is needed to be mounted if I want to edit grub/menu.lst Smile
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Tue 05 Jul 2011, 14:49    Post subject:  

Thanks for the bug report Smile

If I find enough time, I'll rewrite these tools. I want to compile a 64-bit kernel for 5.2.6 and rewrite my kernel build script before I mess with Yad again.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 05 Jul 2011, 15:35    Post subject: Ymount 002
Subject description: bugfix for small partitions
 

Iguleder wrote:
Thanks for the bug report Smile

If I find enough time, I'll rewrite these tools. I want to compile a 64-bit kernel for 5.2.6 and rewrite my kernel build script before I mess with Yad again.

Here is the fix:

/usr/local/ymount/function line 54
Code:
#            echo "$partition_size GB"   
                partition_size=`echo $partition_size | cut -d '.' -f 1`
                if [ $partition_size -gt 1000 ] ; then
                    partition_size=$(echo "scale=1; `echo $partition_size` / 1000" | bc)
                echo "$partition_size GB"
                else   
                echo "$partition_size MB"
                 fi
ymount.png
 Description   sda2 is displaying now
 Filesize   7.1 KB
 Viewed   1591 Time(s)

ymount.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 06 Jul 2011, 07:47    Post subject: ymount 002
Subject description: addendum to bugfix
 

sorry,
/usr/local/ymount/function line 43
has to be changed to
Code:
      partition_size=$(echo "scale=1; `cat /sys/class/block/$partition/size` * 512 / 1000000" | bc)

in order to get M instead of G
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 06 Jul 2011, 13:39    Post subject: ymount
Subject description: 003
 

Hi iguleder,
you wrote:
If I find enough time, I'll rewrite these tools. I want to compile a 64-bit kernel for 5.2.6 and rewrite my kernel build script before I mess with Yad again.

No need to mess with yad for you.
yad is fun

Will upload next version soon Smile

Edit
Here it is.
Note, in my example rox is empty but clicking the refresh button of rox makes the content display

Edited again
sorry, please change line 89 of /usr/local/ymount/functions from
Code:
   if [ "$(is_mounted $1)" != "true" ]
to
Code:
   if [ "$(is_mounted $1)"  = "-" ]
and then if you mount a mounted partition another rox will be opened. (same behavior as with pmount)

2011-07-08 Attached pet deleted, see next post

Edited 2011-09-11
Link to latest version provided always here:
http://www.murga-linux.com/puppy/viewtopic.php?p=557739
ymount-003.png
 Description   
 Filesize   19.14 KB
 Viewed   1563 Time(s)

ymount-003.png


Last edited by L18L on Sun 11 Sep 2011, 09:18; edited 2 times in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Fri 08 Jul 2011, 05:54    Post subject: ymount
Subject description: version 0.3.1
 

test on drake01 failed: unmount does NOT work
test on lupu525 successful

bugs:
- does not show in menu (any HELP appreciated)
start it from console
Code:
ymount

- closing the application by pressing x does not yet work (I will work on this)

Anyhow here is ymount031.pet
applied the above mentioned fix
added version in title
ymount-031.pet
Description 
pet

 Download 
Filename  ymount-031.pet 
Filesize  2.48 KB 
Downloaded  441 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Fri 08 Jul 2011, 15:21    Post subject: Re: ymount
Subject description: version 0.3.2
 

L18L wrote:
- closing the application by pressing x does not yet work (I will work on this)

forget this please.

start it from console
ymount sda
or
ymount

improvement in unmounting
no pet (I am yet no petmaker)
changes in attached ymount-032

Edited 2011-09-11
Link to latest version provided always here:
http://www.murga-linux.com/puppy/viewtopic.php?p=557739
ymount-032.tar.gz
Description  extract to /
contains just
/bin/ymount and /usr/local/ymount/functions
gz

 Download 
Filename  ymount-032.tar.gz 
Filesize  2.14 KB 
Downloaded  439 Time(s) 
ymount-032.png
 Description   
 Filesize   11.76 KB
 Viewed   1520 Time(s)

ymount-032.png


Last edited by L18L on Sun 11 Sep 2011, 09:17; edited 1 time in total
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sat 23 Jul 2011, 07:59    Post subject:  

Nice work guys Smile

I wonder though if it is possible to skip the first device selection gui and just have all available devises / partition in the same window with the mount unmount options ?

cheers.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 30 Jul 2011, 09:47    Post subject: Ymount 002
Subject description: all available partitions
 

stu90 wrote:
Nice work guys Smile

I wonder though if it is possible to skip the first device selection gui and just have all available devises / partition in the same window with the mount unmount options ?

cheers.

Something like this Question

left button "preferences" will control this or default behavior
ymount-0.4.png
 Description   pet coming soon...
 Filesize   13.73 KB
 Viewed   1372 Time(s)

ymount-0.4.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 30 Jul 2011, 12:52    Post subject: ymount
Subject description: version 0.4
 

Here is ymount-0.4.pet

Edited 2011-09-11
Link to latest version provided always here:
http://www.murga-linux.com/puppy/viewtopic.php?p=557739
ymount-0.4.pet
Description  yad required
pet

 Download 
Filename  ymount-0.4.pet 
Filesize  4.89 KB 
Downloaded  426 Time(s) 

Last edited by L18L on Sun 11 Sep 2011, 09:16; edited 1 time in total
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 405
Location: Philadelphia, PA

PostPosted: Sat 30 Jul 2011, 13:54    Post subject: Re: ymount
Subject description: version 0.4
 

L18L wrote:
Here is ymount-0.4.pet

Thanks a lot.

May I ask a question?

I downloaded that ymount-0.4.pet to my /mnt/sda5/sources directory, and clicked it in Rox filer. (Oh,this is Puppy Lucid 5.25)

It installed, and said a menu entry was under System
But it wasn't.

I found /bin/ymount, but it didn't run.

So I looked in this Murga forum, and found yad-0.12.4-i486
and downloaded that .pet and installed it.

After that, ymount works from the command line, but there is no menu entry that I could find.

I looked and found /ymount.desktop

Can I somehow have a menu entry, maybe under Filesystem?
Is that possible, or desirable?

Thanks a lot,

Sheldon
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sat 30 Jul 2011, 14:08    Post subject: Re: ymount
Subject description: version 0.4
 

Hi Sheldon,
thanks for testing
you wrote:
Can I somehow have a menu entry, maybe under Filesystem?

Sorry I am not (yet) a good petmaker.

If you install the original pet from Iguleder you will get the manu entry, and then reinstall 0.4.

Or better, maybe the other yad fan (hello stu90) would be so nice and make a correct pet ???

Cheers

PS ymount-0.4 was made in wary511, running now in squeeze
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 30 Jul 2011, 14:27    Post subject:  

I won't be home for a few days, but once I get home I want to take a look at Ymount and get it working well so we can use it for dpup. Could be a very good replacement for Pmount, as you said.

I'll make sure to make a good Puppy-independent PET that can be used on any Puppy.

Cheers Smile

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Display posts from previous:   Sort by:   
Page 1 of 7 [102 Posts]   Goto page: 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.0959s ][ Queries: 13 (0.0063s) ][ GZIP on ]