xFileMount.pup -mount, unmount many file types - GUI
xFileMount.pup -mount, unmount many file types - GUI
As per Pizzasgood's suggestion... I rewrote my file mounting utility to work with ROX.
The DotPup adds the menu item: "Un_Mount" to ROX's: "Open With..." menu.
It mounts & unmounts: initrd.gz, initrd, image.gz, image, ISO, Squash (.fs, .sfs),
SAVE files (.2fs, .3fs), ext2 & ext3 image files, & prompts if it can't identify the file type.
For unmounting, the file or the mount dir. can be used.
xfilemount also is a GUI & will also accept command line input.
Example: xfilemount (FileName)
This will mount the file if it's unmounted, or will unmount it if it's mounted.
To Use:
Right click the file, hover on: File '(FileName)', click on: Open With..., then click: Un_Mount.
NEW version ...
============
Thanks to "wow" it now will mount / unmount file types: .fs, .sfs, .2fs, .3fs, .iso
by just clicking on them in ROX, a popup tells when UnMounting a file.
The DotPup adds the menu item: "Un_Mount" to ROX's: "Open With..." menu.
It mounts & unmounts: initrd.gz, initrd, image.gz, image, ISO, Squash (.fs, .sfs),
SAVE files (.2fs, .3fs), ext2 & ext3 image files, & prompts if it can't identify the file type.
For unmounting, the file or the mount dir. can be used.
xfilemount also is a GUI & will also accept command line input.
Example: xfilemount (FileName)
This will mount the file if it's unmounted, or will unmount it if it's mounted.
To Use:
Right click the file, hover on: File '(FileName)', click on: Open With..., then click: Un_Mount.
NEW version ...
============
Thanks to "wow" it now will mount / unmount file types: .fs, .sfs, .2fs, .3fs, .iso
by just clicking on them in ROX, a popup tells when UnMounting a file.
- Attachments
-
- xFileMount.pup
- Tested but... nothing's perfect in this world, please report problems.
- (2.91 KiB) Downloaded 1377 times
Last edited by sunburnt on Fri 15 Dec 2006, 06:48, edited 1 time in total.
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
In the newer rox, there is a menu item that says something like "add custom entry". It lets you add custom entries, but only for the type of file you rightclicked to bring up the menu. Or at least that's how it worked when I toyed with it. I don't have it installed right now, and it's a version or two newer now also.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
NOTE: I've noticed that using xfilemount in GUI mode that it doesn't popup the "unmount" dialog.
This means that for initrd.gz & image.gz files that they won't be re-gzipped!
The weard thing is I can't see why I'm getting the error:
./xfilemount: line 202: syntax error: unexpected end of file
Here's the last part of the script, it pops up ROX & instead of Popping up the xmessage it errors.
rox $MntPt
if [ -n "$1" ];then ##### end of command argument section
exit 0
if
# success mounting, & info. dialog
xmessage -center "
Success mounting the file:
$FILE
The file is mounted on: $MntPt
When ready, click [okay] to unmount the file.
=============================================
"
unmnt_file
This means that for initrd.gz & image.gz files that they won't be re-gzipped!
The weard thing is I can't see why I'm getting the error:
./xfilemount: line 202: syntax error: unexpected end of file
Here's the last part of the script, it pops up ROX & instead of Popping up the xmessage it errors.
rox $MntPt
if [ -n "$1" ];then ##### end of command argument section
exit 0
if
# success mounting, & info. dialog
xmessage -center "
Success mounting the file:
$FILE
The file is mounted on: $MntPt
When ready, click [okay] to unmount the file.
=============================================
"
unmnt_file
- darkerror05
- Posts: 276
- Joined: Sat 17 Jun 2006, 22:10
- Location: Rochester NY, USA
I installed the dotpup in a fresh 2.10 live cd boot and it doesnt work in rox. I see the entery in the open with dialog but next to it instead of the normal picture it gives one that reads "error". And when clicked it does nothing. It seems that the dotpup isnt actaully installing an exacutable anywhere or atleast I cant find one. Any idea why this is?
-darkerror
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
The forum has been updated and John probably forgot to re-enable editing or something. He didn't notice because he can edit anything anyway. I'll go PM him...
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
- darkerror05
- Posts: 276
- Joined: Sat 17 Jun 2006, 22:10
- Location: Rochester NY, USA
Pizzasgood;
Also the forums email notifications don't work, the link URL is different than my Bookmarks link.
So I have to check my email, then use the Bookmark link & search for post.
darkerror05; Is there a file: /usr/bin/xfilemount
Here's the dotpup.sh commands to install it:
cp -f ./xfilemount /usr/bin
ln -s /usr/bin/xfilemount /root/Choices/SendTo/Un-Mount
mv -f /root/Choices/SendTo/Un-Mount /root/Choices/SendTo/(Un)Mount
The copy command should work, the DotPup installer does "cd" to that dir.
ALSO... DOES ANYONE SEE the FILE DOWNLOAD ABOVE? I don't see it.
Also the forums email notifications don't work, the link URL is different than my Bookmarks link.
So I have to check my email, then use the Bookmark link & search for post.
darkerror05; Is there a file: /usr/bin/xfilemount
Here's the dotpup.sh commands to install it:
cp -f ./xfilemount /usr/bin
ln -s /usr/bin/xfilemount /root/Choices/SendTo/Un-Mount
mv -f /root/Choices/SendTo/Un-Mount /root/Choices/SendTo/(Un)Mount
The copy command should work, the DotPup installer does "cd" to that dir.
ALSO... DOES ANYONE SEE the FILE DOWNLOAD ABOVE? I don't see it.
- darkerror05
- Posts: 276
- Joined: Sat 17 Jun 2006, 22:10
- Location: Rochester NY, USA
darkerror05; I just did a test (again) to see if the DotPup installer was in: /root/DotPupTmpDir
Here's the test dotpup.sh file I made into "test.pup":
#!/bin/sh
xmessage " `pwd` "
It popped up a dialog saying: /root/DotPupTmpDir
So the command: "cp -f ./xfilemount /usr/bin" should work just fine.
The DotPup installer is so simple, it's hard to imagine it won't work.
HAS ANYONE ELSE TRIED this DotPup ? PLEASE POST IF IT WORKS !!!
Here's the test dotpup.sh file I made into "test.pup":
#!/bin/sh
xmessage " `pwd` "
It popped up a dialog saying: /root/DotPupTmpDir
So the command: "cp -f ./xfilemount /usr/bin" should work just fine.
The DotPup installer is so simple, it's hard to imagine it won't work.
HAS ANYONE ELSE TRIED this DotPup ? PLEASE POST IF IT WORKS !!!
Yes, I've tried your DotPup, it works and I like itsunburnt wrote:HAS ANYONE ELSE TRIED this DotPup ? PLEASE POST IF IT WORKS !!!
![Smile :)](./images/smilies/icon_smile.gif)
Note: I'm having problems mounting if the path has spaces, e.g. /mnt/hda9/Puppy Iso/212.iso
Maybe you can edit your script to solve this.
Thanks
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
- Pizzasgood
- Posts: 6183
- Joined: Wed 04 May 2005, 20:28
- Location: Knoxville, TN, USA
I see an attachment at the top of the page, but it doesn't let me use it. It says I'm not authorized. I PM'd John again and pointed him to this thread...
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
[img]http://www.browserloadofcoolness.com/sig.png[/img]
MIME-types for xFilemount rev2
http://www.murga-linux.com/puppy/viewto ... 7765#87765
MIME-info; MIME-types for xFilemount, enables click mount/unmount for .2fs; .3fs; .fs; .iso; .sfs files. (old version)
[download]
[MOVED]MIME-icons for xFileMount (added all in the Longhorn Rox theme)
![Image](http://static.filefront.com/images/personal/r/rockinfreak/67968/piooppgfob.jpg)
http://www.murga-linux.com/puppy/viewto ... 7765#87765
MIME-info; MIME-types for xFilemount, enables click mount/unmount for .2fs; .3fs; .fs; .iso; .sfs files. (old version)
[download]
[MOVED]MIME-icons for xFileMount (added all in the Longhorn Rox theme)
![Image](http://static.filefront.com/images/personal/r/rockinfreak/67968/piooppgfob.jpg)
Last edited by wow on Fri 05 Jan 2007, 01:25, edited 6 times in total.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
Pizzasgood; Thanks guy...
wow; I'll look at it, should be fixable, & I've found another small bug-a-boo.
Perhaps add ".img" to the mime list?
Another way would be to use MU's Drag-n-Drop desktop icons,
but most of the time I can't see my desktop & the icons anyway.
If I can figure out how to do it, I'll make mods to ROX's right click menu.
There's alot of instantainous power in the right click menu, it's by far
the quickest way to get things done easily, but why can't we mod them?
I've yet to find a OS or WM that lets the user mod the right click menu (easily).
wow; I'll look at it, should be fixable, & I've found another small bug-a-boo.
Perhaps add ".img" to the mime list?
Another way would be to use MU's Drag-n-Drop desktop icons,
but most of the time I can't see my desktop & the icons anyway.
If I can figure out how to do it, I'll make mods to ROX's right click menu.
There's alot of instantainous power in the right click menu, it's by far
the quickest way to get things done easily, but why can't we mod them?
I've yet to find a OS or WM that lets the user mod the right click menu (easily).
I can't because "image" does not have an extension and if I change the default action for that file type(and for .gz too) all the "something"/"something.gz" files will be forced to be opened with xFileMountsunburnt wrote:Perhaps add ".img" to the mime list?
![Embarassed :oops:](./images/smilies/icon_redface.gif)
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]
wow; A number of the floppy images & some HD imaging apps. use the ".img" extention.
These would be auto. recognized & extentionless files would popup the types dialog.
Another common image file extention type: ".nbi" = (Network Boot Image)
I'll look into other types of images & compression formats for mime additions.
These would be auto. recognized & extentionless files would popup the types dialog.
Another common image file extention type: ".nbi" = (Network Boot Image)
I'll look into other types of images & compression formats for mime additions.
More suggestions
Work with the messages: if there are no more loop devices your app shows an error message, but it isn't specific and users maybe get confused. (e.g. mount pup_saveX.3fs then popup a message "Dont forget to unmount pup_saveX.3fs")
How about showing a list with the files already mounted and buttons for unmount them?
So, I've mirrored your script here(But doesn't seem to work if you click it, I'd to unzip and install manually running "dotpup.sh")
Hope this helps.
How about showing a list with the files already mounted and buttons for unmount them?
No, I can see anything, or even attach something. And if anyone can't see it, how to download?sunbunt wrote:ALSO... DOES ANYONE SEE the FILE DOWNLOAD ABOVE? I don't see it.
![Confused :?](./images/smilies/icon_confused.gif)
Hope this helps.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]