Tabbed Pmount
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Tabbed Pmount
This is pretty much a "proof of concept". I just took the pmount from 2.17-exp1 and squeezed it into tabs, without trying to pretty it up.
I tried to avoid making any other improvements, so any complaints about bad functionality should go to Barry (in my case, the swap partition is declared "unused" -- though it is used -- probably because it's mounted as "/initrd/dev/hda2", rather than "/dev/hda2").
The first version is just everything squeezed into tabs in the original order.
The second version has the tab order reversed (so you start with SATA/USB, then IDE HDs, then swap, cdroms and floppy). Note that the first (left most) tab is the one shown by default.
The third version is like the second, only the cdroms are put into a "cdroms" tab.
I tried to avoid making any other improvements, so any complaints about bad functionality should go to Barry (in my case, the swap partition is declared "unused" -- though it is used -- probably because it's mounted as "/initrd/dev/hda2", rather than "/dev/hda2").
The first version is just everything squeezed into tabs in the original order.
The second version has the tab order reversed (so you start with SATA/USB, then IDE HDs, then swap, cdroms and floppy). Note that the first (left most) tab is the one shown by default.
The third version is like the second, only the cdroms are put into a "cdroms" tab.
- Attachments
-
- pmount3.gz
- (6.73 KiB) Downloaded 543 times
-
- pmount.gz
- (6.3 KiB) Downloaded 515 times
-
- tpmount1.jpg
- (21.02 KiB) Downloaded 1267 times
-
- pmount2.gz
- (6.34 KiB) Downloaded 520 times
-
- tpmount2.jpg
- (19.78 KiB) Downloaded 1253 times
-
- tpmount3.jpg
- (18.89 KiB) Downloaded 1267 times
Last edited by Dougal on Tue 10 Jul 2007, 18:55, edited 4 times in total.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Pmount bug?
Dear Dougal,
As you can see from the attached, the last hda entry (hda1) has been "merged" with hda10 on my machine. The drive contains three ntfs partitions, two vfats, one reiser and one linux swap. Any ideas why this is so?
Apart from that infelicity, I like the new format, since the old one used to fill up my screen.
With kind regards,
vovchik
As you can see from the attached, the last hda entry (hda1) has been "merged" with hda10 on my machine. The drive contains three ntfs partitions, two vfats, one reiser and one linux swap. Any ideas why this is so?
Apart from that infelicity, I like the new format, since the old one used to fill up my screen.
With kind regards,
vovchik
- Attachments
-
- pmount.png
- (89.39 KiB) Downloaded 1217 times
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: Pmount bug?
Is it only in my version, or also in Barry's from 2.17-exp1? It's probably the result of running grep on something, without a space/delimiter after what you're searching for.vovchik wrote:As you can see from the attached, the last hda entry (hda1) has been "merged" with hda10 on my machine. The drive contains three ntfs partitions, two vfats, one reiser and one linux swap. Any ideas why this is so?
Example:
Code: Select all
probepart | grep 'hda1' | cut -d'|' -f1
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Haven't tried 2.17 yet
Dear Dougal,
I don't know whether it's also in Barry's version, since I only tried yours today and haven't yet installed 2.17e. I just tried the new pmount3 and it still shows hda10 (vfat) and home (hda1 -ntfs) lumped together as the last entry - as in the image attached above.
With kind regards,
vovchik
I don't know whether it's also in Barry's version, since I only tried yours today and haven't yet installed 2.17e. I just tried the new pmount3 and it still shows hda10 (vfat) and home (hda1 -ntfs) lumped together as the last entry - as in the image attached above.
With kind regards,
vovchik
Barry, one of the things that MUT does and Pmount doesn't is to show partitions hidden by Grub (Type: Amoeba). As I use multiple versions of Puppy on one drive, I find it useful to be able to mount alternative partitions, even though I have hidden them at boot.BarryK wrote:Yes, I've done some bugfixing since 2.17exp1.
I'll look at your script and see if I can patch in the fixes.
It looks nice with the tabs!
If you are going to be looking at merging in Dougal's excellent update, would it be possible to see if this problem can be solved as well? TIA.
Warren
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
reported hereWhoDo wrote:Barry, one of the things that MUT does and Pmount doesn't is to show partitions hidden by Grub (Type: Amoeba).
http://www.murga-linux.com/puppy/viewto ... 900#115900
Last edited by HairyWill on Sat 07 Jul 2007, 07:04, edited 1 time in total.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: Haven't tried 2.17 yet
I didn't touch that when fixing it, I'm leaving it for Barry to deal with.vovchik wrote: I just tried the new pmount3 and it still shows hda10 (vfat) and home (hda1 -ntfs) lumped together as the last entry - as in the image attached above.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Okay, this is the latest pmount, with a fix for the hda1 -- hda10 bug (I think). I haven't had time to apply Dougal's tabbed interface yet.
Note, this pmount is designed to work with the new probepart and probedisk in 2.17exp1, so may not be quite right in earlier puppies.
Note, this pmount is designed to work with the new probepart and probedisk in 2.17exp1, so may not be quite right in earlier puppies.
- Attachments
-
- pmount-217exp2.gz
- (6.68 KiB) Downloaded 497 times
Seems to work
Dear Barry,
As you can see from the screenshot, you found the main bug and fixed it. Thanks. The only minor thing left is that the disk capacity for hda1 (home) is shown as "." and not 41 GB - as it the case. You can understand why I think Dougal's tabbed approach is perfect for my installation. If I were to plug in another USB drive or flash, the listing would go off screen...and it's without scrollbars.
With kind regards,
vovchik
As you can see from the screenshot, you found the main bug and fixed it. Thanks. The only minor thing left is that the disk capacity for hda1 (home) is shown as "." and not 41 GB - as it the case. You can understand why I think Dougal's tabbed approach is perfect for my installation. If I were to plug in another USB drive or flash, the listing would go off screen...and it's without scrollbars.
With kind regards,
vovchik
- Attachments
-
- pmount1.png
- (101.84 KiB) Downloaded 1164 times
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: Seems to work
Not to mention if you had a floppy and a second cdrom...vovchik wrote:If I were to plug in another USB drive or flash, the listing would go off screen...and it's without scrollbars.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Where is the floppy, by the way?
Thanks Dougal. I do have a floppy - but it's not showing. I didn't notice that until you pointed it out. I do have a DVD RW, and that shows....
With kind regards,
vovchik
With kind regards,
vovchik
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
I've updated "pmount3" in the original post.
Changes:
- fixed all high-partition-number bugs (including the size)
- fixed ordering of partitions inside device frame (was backwards)
- added support for exotic partition types (assuming probepart sees them)
Changes:
- fixed all high-partition-number bugs (including the size)
- fixed ordering of partitions inside device frame (was backwards)
- added support for exotic partition types (assuming probepart sees them)
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Pmount3 - revised
Dear Dougal,
I get the following error with the revised pmount3:
Any idea why?
With kind regards,
vovchik
I get the following error with the revised pmount3:
Code: Select all
./pmount3
Killing old window
./pmount3: line 782: 16229 Terminated yaf-splash -font "8x16" -outline 0 -margin 4 -bg orange -text "Puppy Drive Mounter
Please wait, probing hardware..."
** ERROR **: gtkdialog: Error in line 21, near token '</notebook>': syntax error
aborting...
root$ [~/my-applications/bin/test/puppy-scripts]->
With kind regards,
vovchik
It's an error in the GTK syntax, which appears to be output to:
/tmp/pmountdlg.txt
mine is this:
I'm reviewing the output from pmount2 and it's a bit different. Something isn't nesting correctly in the loops I think.
/tmp/pmountdlg.txt
mine is this:
Code: Select all
<window title="Pmount Puppy Drive Mounter "icon-name="gtk-harddisk">
<vbox>
<text use-markup="true">
<label>"<b>DO NOT REMOVE MOUNTED MEDIA</b>"</label></text>
<notebook labels="sdb|sda|hda|cdroms">
<vbox><frame Drive: Maxtor 6 Y160P0 >
<hbox>
<text><label>"/dev/sdb2
51.1G ext3"</label></text>
<button>
<input file>/usr/local/lib/X11/pixmaps/hd24red.xpm</input>
<action>echo 'EXIT=/dev/sdb2_XXX_RED'</action>
</button>
</hbox> </notebook>
<hbox>
<button><input file stock="gtk-refresh"></input><label>REFRESH</label>
<action>echo 'EXIT=REFRESH'</action>
</button>
<button><input file stock="gtk-quit"></input><label>QUIT</label></button>
</hbox>
</vbox>
</window>