xFileMount.pup -mount, unmount many file types - GUI

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#31 Post by sunburnt »

I wrote a GUI utility for making new Squash files as I'm sure many have,
but then Puppy should have tools like this as they've very small & useful.

The remaster scripts (there's quite a few) make new Squash & Gzip images.
Alot of the time apps. added to the big Squash file need config files in /etc,
which is in the Gzip file (initrd.gz = Puppy2) or (image.gz = Puppy1).
Also the WindowManager menus are in /root in the Gzip image file.

These scripts make it easy, just setup Puppy how you want it & remaster.
Puppy runs so many different ways, the scripts remaster just a few of them.

User avatar
lederlunge
Posts: 17
Joined: Sat 12 Nov 2005, 13:19

#32 Post by lederlunge »

is there any chance to teach this application to work with tar.gz files ?

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#33 Post by sunburnt »

Hi lederlunge; Puppy has a Gzip app., but I find half the time that it doesn't work.
Yes GZip & Tar functions could be added to it, I thought about that,
but they don't really perform file mounting as such, so I didn't include it.

I'm in the process of adding some new capabilities to xfilemount, so I'll
keep compression formats in mind for upgrading it to a multi use app.

kleung21
Posts: 28
Joined: Sat 18 Nov 2006, 07:11
Location: Toronto, Ontario

#34 Post by kleung21 »

Sunburnt...

Thanks for this utility - I find it very useful.

User avatar
lederlunge
Posts: 17
Joined: Sat 12 Nov 2005, 13:19

#35 Post by lederlunge »

i have not understood how to make a *.tar.gz file with Gzip.

thanx anyway

###################
# :shock: let there be SMOKE :lol: #
###################

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#36 Post by sunburnt »

kleung21; Thanks... Nice to hear about one's efforts being useful to others!


lederlunge; Here's some code snips for Tar & Gzip from my collection:

### To extract files from a tar + gzip archives, ".tar.gz" & ".tgz".
gunzip < (file.tar.gz) | tar xvf -
gunzip < (file.tgz) | tar xvf -

### To compress files to a tar + gzip archive, do BOTH lines: tar then gzip.
tar -cvf (newFileName.tar) (Path&Files)
gzip -9 (newFileName.tar)

### To tar files & to untar files, cf = compress files & xf = extract files.
tar -cvf (newfile.tar) (path & files)
tar -xf (path & file.tar)

### To extract Gzip files, use gunzip
gunzip (file.gz)


All of these are typed into Xterm, while in the file's dir.

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#37 Post by Pizzasgood »

You can add a -z tag to the tar command and it does the gunzip part automatically:
tar -zxf file.tar.gz
[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]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#38 Post by sunburnt »

PizzasGood; I assume that this compression command wouldn't work?

tar -zcf file.tar

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#39 Post by Gn2 »

Use the built-in man help files

Code: Select all

(man) tar  gzip bzip2
If not included, See the list , right side of Page

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#40 Post by sunburnt »

It does work... except the correct command line would be:

tar -zcf FileName.tar.gz *

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#41 Post by Gn2 »

Be VERY careful with syntax - tar creates an archive and ADDS files or directories to that archive -
Use of compression utilities along with tar complicates further !
If just compression is wanted tar is not Req'd - any compressed files/folders may be archived as one - added/removed later.

It is strongly advised > create a temporary folder, copy non-essential files there & then play with variations of the CLI &
varied parameters to see results.
It will also be noted - the order of parameters is important !

Single files or directories may be added (concatenated) or pulled out of the archives.

READ the man files carefully

User avatar
lederlunge
Posts: 17
Joined: Sat 12 Nov 2005, 13:19

#42 Post by lederlunge »

after
#uncompress with

tar xvzf backup.tar.gz

and repack with

tar cvzf backup.tar.gz home/ usr/ opt/

the file is somewhat broken and the mashine cannot boot -...and i cannot listen to christmas songz.

holy sh**!

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#43 Post by wow »

Small update, now has support for the new mime database(Puppy-2.13), and also the old mime structure for xFileMount. It works for Puppy-2.xx and Puppy 1.xx, older versions I don't know :oops: (icons not included 8) )

Supported files: *.3fs; *.2fs; *.iso; *.sfs; *.squashfs; *.sqfs; *.fs;*.img

sunburnt, with the new mime database it is possible to add mime types for filenames such as: initrd, initrd.gz, image, image.gz. But, Is it safe to do it?

And about the icons I'll release a new Icon Theme for Puppy-2.13/ROX-Filer-2.5 tomorrow.
Attachments
MIME-Types-xfilemount_rev2.pup
updated for puppy 2.13
(2.07 KiB) Downloaded 577 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#44 Post by sunburnt »

wow; I see no problem with adding specific files as mime types,
the image files aren't executable anyway, so it shouldn't matter.

As I see it, if clicking on a file in ROX doesn't have anyother purpose,
then setting a mime type for the file should be okay.


lederlunge; I missed your post (I don't know why I wasn't emailed).
I'm not sure just what your trying to do, or what your saying has happened.

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#45 Post by wow »

Well, I'll make an optional dotpup for those types later.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#46 Post by wow »

[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#47 Post by sunburnt »

Really NICE. I like 'em better than the first ones... & I liked them!

wow; What app(s) & methods are you using to make these icons?

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#48 Post by wow »

The original idea comes from mattahan and you can download the real Icon Set at his website. I only did some small modifications with Gimp and made the DotPup. Actually, I just made icons for types like .pet; .pup; .3fs; .2fs; .img; .fs and .sfs.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

MIME Types rev 2.1 for xFileMount

#49 Post by wow »

Updated again, now covering all the file types supported for xFileMount (types like image.gz, initrd only for Puppy-2.13 and up):
*.fs; *.sfs; *.squashfs; *.sqfs *.2fs; *.3fs; *.iso; *.img; image; image.gz; initrd; initrd.gz; initrd* and initrd*.gz

Requires: sunburnt's xFileMount.pup

Also, PupGant icon theme was updated to show icons for all those new types. [Read more]
Attachments
MIME-Types-xfilemount_rev2.1.pup
(2.4 KiB) Downloaded 637 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#50 Post by disciple »

Does this mean anything to anyone?:

Code: Select all

# xfilemount zdrv_216.sfs

#####   FILE     = /mnt/hdb5/zdrv_216.sfs
#####   EXT.X    = sfs
#####   FileType = Squash
#####   TYPE     = squashfs
#####   MntPt    = /mnt/-mnt-hdb5-zdrv_216.sfs

mount: Mounting /mnt/hdb5/zdrv_216.sfs on /mnt/-mnt-hdb5-zdrv_216.sfs failed: Invalid argument
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
It's working fine for ext2 files, but not sfs

Post Reply