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 Thu 24 Jul 2014, 16:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
mkSFS ... FIXED app. for making SFS files.
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Mon 02 Jun 2008, 05:47    Post_subject:  mkSFS ... FIXED app. for making SFS files.  

This is an old app. I wrote about a year ago, it seems to work well, consider it testing.
The original GUI was small & simple, but for it to do what's needed it had to grow to this.
It makes SFS files from: directories, & iso & squash files, & also ext2 & ext3 image files.
I haven't tried iso & the 2 ext image file types, but it should be good.

When making Squash files, the top dir. & it's contense, or just it's contense can be stored.
So the GUI has 2 list boxes, the top one keeps the top dir., the bottom one just the contense.
If there's only one dir. in the top list box, a dummy dir. "/+" is stored with it to keep the dir.

It auto mounts & unmounts the files: iso, squash, ext2, & ext3.
Rxvt runs the make squashfs command which gives a progress bar, it runs
once for the entire top list box & once for each item in the bottom list box.
So the top list is stored as a group & the bottom items are appended one at a time.
The Help is spartan, if more help is needed to explain the GUI I'll write somemore.
Let me know how it works...

I'm removing it again... Still problems with some with the functioning.
==================
mksfs.png
 Description   Fairly simple to understand, & small enough to fit on a 800x600 screen.
 Filesize   35.6 KB
 Viewed   1441 Time(s)

mksfs.png


Edited_times_total
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 03 Jun 2008, 09:55    Post_subject:  

I think there was a small bug in mksfs, I changed 2 lines in the beginning.
It did not create a file "dir.lst", but a folder "dir.lst".
So you could not add directories.
I attach the patched version.
EDIT: removed, as Sunburnt updated his package.

Looks very good at first sight Smile
Different to SFS-Combiner, you now also can build SFS files, if you have no temporary Linux-partition!

Mark

_________________
my recommended links

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Tue 03 Jun 2008, 14:44    Post_subject:  

Thanks Mark; I don't know why I didn't run into the problem testing it,
but yesterday it popped up on me too & I caught it.

I've streamlined the code somemore & I'll post it after more testing.
It won't do any more than it does now, but some functions are better.
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Thu 12 Jun 2008, 19:13    Post_subject:  

Sorry about the broken app., it's an old project & was peppered with errors.

I've used the reworked version for awhile now & it's working good... SunBurnt
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Sun 15 Jun 2008, 03:42    Post_subject:  

22 downloads as of the 14th of June 2008, does anyone have a reply?

How is it working guys ??? ... Someone talk to me, I need to know!

Tell me about how it's working good, or... tell me it screws up doing whatever.
Back to top
View user's profile Send_private_message 
charnisingh

Joined: 06 Oct 2007
Posts: 138

PostPosted: Mon 16 Jun 2008, 06:36    Post_subject: mkSFS
Sub_title: tested
 

Hi Sunburnt,

i tried mkSFS but sorry to report that i could make any headway..

may be fault is mine as i could not understand where to put what even if i tried many times but i could not make it respond. presently i use MU sfsCombiner it works very fine and some movements are visible
immediately.

regards, Charni.
Back to top
View user's profile Send_private_message 
erikson


Joined: 27 Feb 2008
Posts: 735
Location: Ghent, Belgium

PostPosted: Tue 17 Jun 2008, 09:05    Post_subject:  

sunburnt wrote:
22 downloads as of the 14th of June 2008, does anyone have a reply? How is it working guys ??? ... Someone talk to me, I need to know!

I'm interested, will use it and report... but where do I get it? I assume it's temporarily withdrawn for correction?

_________________
If it ain't broke, don't fix it. --- erikson
hp/compaq nx9030 (1.6GHz/480MB/37.2GB), ADSL, Linksys wireless router
http://www.desonville.net/
Puppy page: http://www.desonville.net/en/joere.puppy.htm

Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 17 Jun 2008, 10:53    Post_subject:  

there was an error in checking, if a file was ext2/ext3/iso/squashfs.
I always got the message "BAD source item in list".
(muppy 0083 = Puppy 3).

So I modified around line 108:
from:
Code:
   if [ "$FS" != 'ext2' -o "$FS" != 'ext3' -o "$FS" != 'iso' -o "$FS" != 'squashfs' ];then
......


to:
Code:
  if [ "$FS" != 'ext2' ];then
    if [ "$FS" != 'ext3' ];then
      if [ "$FS" != 'iso' ];then
        if [ "$FS" != 'squashfs' ];then
   xmessage -title " ERROR..." "
  BAD source item in list! 

  $LINE 
   " &
   touch /tmp/mkSFS/sfs.exit
        fi
      fi
    fi
  fi


So I replaced the "-o" with seperate "if"s.
I attach my patched version.
I'm currently trying to build a 1 gigabyte SFS on a slow network-computer, so I could not test yet, if it works.

Mark
mksfs-mufixed.tar.gz
Description  for TESTING only!
gz

 Download 
Filename  mksfs-mufixed.tar.gz 
Filesize  2.58 KB 
Downloaded  321 Time(s) 

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 17 Jun 2008, 12:35    Post_subject:  

no, there still is something wrong...
I think it is the issue described by sunburnt here:
http://murga-linux.com/puppy/viewtopic.php?t=26097&start=60
So this is a conceptual problem?

I combined 5 sfs files to one.

I now get this folderstructure in "/":
Quote:
# ls -1
archive
backup
bin
dev
etc
etc_1
etc_2
etc_3
initrd
lib
lib_1
lib_2
lost+found
malice
media
minisys
minisyscd
mnt
opt
proc
root
root_1
root_2
sbin
sys
test1
test2
tmp
usr
usr_1
usr_2
usr_3
usr_4
var
var_1


And the help requires an absolute Path:
Quote:
help() {
xmessage -center -title " Help for: SFS file maker." "`cat /usr/local/bin/mksfs.help`"
}


Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Tue 17 Jun 2008, 18:34    Post_subject:  

MU; Correct, mksquashfs creates duplicates of dirs. Did you do the files all at once, or one at a time?

I'll be testing if this command fixes it:
-no-duplicates do not perform duplicate checking

But then how does it fix it? Hopfully it just merges the files in the same dir., & last file rules.

Also this command should eliminate the need for a "dummy" dir. for just one path:
-keep-as-directory if one source directory is specified, create a root
directory containing that directory, rather than the
contents of the directory
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 17 Jun 2008, 19:50    Post_subject:  

sunburnt wrote:
MU; Correct, mksquashfs creates duplicates of dirs. Did you do the files all at once, or one at a time?

I'll be testing if this command fixes it:
-no-duplicates do not perform duplicate checking


I added all at once, but had the same result with just 2 folders I added to a new sfs.

-no-duplicates
This does not work for me.

It seems the only way would be to use a temporary folder.
To make this possible also on windows-partitions, an empty ext2 file could be created.
like such a 10 MB file:
Quote:
dd if=/dev/zero of=test.ext2 bs=1024k count=10
mkfs.ext2 test.ext2


This now could be mounted.

Disadvantage:
- requires another loop-device (if not added to /etc/fstab)
- lot of checks and free-space calculations.

These reasons currently hinder me, to add that to SFS-Combiner.
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Tue 17 Jun 2008, 20:31    Post_subject:  

MU said; I added all at once, but had the same result with just 2 folders I added to a new sfs.
I assume you ment that you added 2 dirs. one at a time, & it did the same thing (I'm not surprised).

So... Unfortunately this means that mksquashfs can't handle the merging of dir. trees. BUMMER!
It'd be way too much trouble to figure out if merging's needed, so an image file it is.
Oh well... Accepting the image compilcation as is, at least this simplifies the code & GUI.

Mark; Are you goin to add other file types & dirs. to your app.? If you do, mine's not needed.
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 17 Jun 2008, 20:41    Post_subject:  

sunburnt wrote:

So... Unfortunately this means that mksquashfs can't handle the merging of dir. trees. BUMMER!


yep Crying or Very sad

sunburnt wrote:

Mark; Are you goin to add other file types & dirs. to your app.? If you do, mine's not needed.


No, not in the next two months or so.
This week I look for the panel-issues in Muppy.
And my new girl-friend issues Wink

Then 2 weeks of server-installations.
Then I'd really need to upgrade some packages in Muppy, like firefox 3, Wine 1, Gtk 2.12 and such.
This will take another 3 weeks.
Then some unforseen issues like customer-requests, maybe new contracts...
So no time for a upgrade of SFS-Combiner, and I would highly appreciate, if you would continue mksfs instead Smile
Mark

_________________
my recommended links
Back to top
View user's profile Send_private_message Visit_website 
HairyWill


Joined: 26 May 2006
Posts: 2949
Location: Southampton, UK

PostPosted: Wed 18 Jun 2008, 02:42    Post_subject:  

sunburnt wrote:
Unfortunately this means that mksquashfs can't handle the merging of dir. trees. BUMMER!
I haven't read all the history to this so my suggestion may miss the point and be completely useless.

Why don't you use unionfs to union the 2 sfs and build the new one from the union?

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5009
Location: Arizona, U.S.A.

PostPosted: Wed 18 Jun 2008, 03:53    Post_subject:  

HarryWill; Excellent suggestion, in fact I had the same idea over a year ago but I forgot it!
I think it'll work because I'm sure that UnionFS can have several instances running.
It may not be what we'd hope for, but it does allow making an SFS file without an image file.
I'll look into it tomorrow. too late tonight to start on something new.
HarryWill... Thanks!

MU; Got it... I'm writing script libraries as I'm sick of rewriting the wheel. Razz
It's essentally writing a programming language, choosing syntax & all...
I'll look into Harry's idea & let you know ( FYI ).
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0891s ][ Queries: 12 (0.0043s) ][ GZIP on ]