| Author |
Message |
Iguleder

Joined: 11 Aug 2009 Posts: 1614 Location: Israel, somewhere in the beautiful desert
|
Posted: 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
Changelog:
002:
- Added Yeject, a tool for ejecting removable drives
- Small bug fix
| Description |
|

Download |
| Filename |
ymount-002.pet |
| Filesize |
1.97 KB |
| Downloaded |
451 Time(s) |
| Description |
|
| Filesize |
69.1 KB |
| Viewed |
622 Time(s) |

|
| Description |
|

Download |
| Filename |
ymount-001.pet |
| Filesize |
1.65 KB |
| Downloaded |
322 Time(s) |
_________________ Shahor, my Puppy concept
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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.
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
| Description |
ymount not showing sda2 |
| Filesize |
10.92 KB |
| Viewed |
1475 Time(s) |

|
Last edited by L18L on Sun 11 Sep 2011, 09:20; edited 1 time in total
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
|
|
Back to top
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 1614 Location: Israel, somewhere in the beautiful desert
|
Posted: Tue 05 Jul 2011, 14:49 Post subject:
|
|
Thanks for the bug report
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.
_________________ Shahor, my Puppy concept
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: Tue 05 Jul 2011, 15:35 Post subject:
Ymount 002 Subject description: bugfix for small partitions |
|
| Iguleder wrote: | Thanks for the bug report
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
|
| Description |
sda2 is displaying now |
| Filesize |
7.1 KB |
| Viewed |
1424 Time(s) |

|
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
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
| Description |
|
| Filesize |
19.14 KB |
| Viewed |
1398 Time(s) |

|
Last edited by L18L on Sun 11 Sep 2011, 09:18; edited 2 times in total
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
- 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
| Description |
|

Download |
| Filename |
ymount-031.pet |
| Filesize |
2.48 KB |
| Downloaded |
285 Time(s) |
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
| Description |
extract to / contains just /bin/ymount and /usr/local/ymount/functions
|

Download |
| Filename |
ymount-032.tar.gz |
| Filesize |
2.14 KB |
| Downloaded |
287 Time(s) |
| Description |
|
| Filesize |
11.76 KB |
| Viewed |
1345 Time(s) |

|
Last edited by L18L on Sun 11 Sep 2011, 09:17; edited 1 time in total
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Sat 23 Jul 2011, 07:59 Post subject:
|
|
Nice work guys
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
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: Sat 30 Jul 2011, 09:47 Post subject:
Ymount 002 Subject description: all available partitions |
|
| stu90 wrote: | Nice work guys
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
left button "preferences" will control this or default behavior
| Description |
pet coming soon... |
| Filesize |
13.73 KB |
| Viewed |
1218 Time(s) |

|
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
| Description |
yad required
|

Download |
| Filename |
ymount-0.4.pet |
| Filesize |
4.89 KB |
| Downloaded |
276 Time(s) |
Last edited by L18L on Sun 11 Sep 2011, 09:16; edited 1 time in total
|
|
Back to top
|
|
 |
sheldonisaac
Joined: 21 Jun 2009 Posts: 287 Location: Philadelphia, PA
|
Posted: 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
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1711 Location: Burghaslach, Germany
|
Posted: 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
|
|
 |
Iguleder

Joined: 11 Aug 2009 Posts: 1614 Location: Israel, somewhere in the beautiful desert
|
Posted: 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
_________________ Shahor, my Puppy concept
|
|
Back to top
|
|
 |
|