sfs_load-2.4 on-the-fly

Miscellaneous tools
Message
Author
R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#241 Post by R-S-H »

Hi,

the latest sfs_load 1.9.7 seems to have a bug which appears only on big sfs files.

In LazY Puppy I have installed two different versions of sfs_load. There is a modified version of 1.3.9 and also (original) 1.9.4. Using the modified version 1.3.9 it does load the LP2_LazarusFPCSuite.sfs without any problems - it's usable and works well after loaded.

When installing sfs_load 1.9.7 (1.9.6 seems to have this bug as well) and using sfs_load 1.9.7 to load the LP2_LazarusFPCSuite.sfs the files don't appear in the OS and also the sfs is not listed in $EXTRASFSLIST - even though, filemnt tells me it is in use by LazY Puppy when doing a single left-click onto the LP2_LazarusFPCSuite.sfs. So, it seems to appear in a pup_ro directory.

It is a huge file (308 MB) and it is loaded by its SFS P.L.U.S. RunScript which uses options: --skip-fixmenus --cli --quiet

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#242 Post by R-S-H »

Hi.

Here are some more information on this.

I did try to go back to the 1.3.9 / 1.9.4 combination from LazY Puppy 202-005 for the use in my private LazY Puppy 3 version. The modified version of 1.3.9 works well on the Lazarus SFS, but the 1.9.4 has this bug already existing.

Both, the 1.9.4 as well as the 1.9.7 do load a 283 MB Wine SFS (Gecko and Corel Suite installed) fine, but do not load the Lazarus SFS (308 MB). Neither by the RunScript nor manually by right-click action!

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

sfs_load-1.9.9

#243 Post by shinobar »

R-S-H wrote:When installing sfs_load 1.9.7 (1.9.6 seems to have this bug as well) and using sfs_load 1.9.7 to load the LP2_LazarusFPCSuite.sfs the files don't appear in the OS and also the sfs is not listed in $EXTRASFSLIST - even though, filemnt tells me it is in use by LazY Puppy when doing a single left-click onto the LP2_LazarusFPCSuite.sfs. So, it seems to appear in a pup_ro directory.
The issue is not the size but the permission of the SFS. You need to re-pack the LP2_LazarusFPCSuite.sfs. See the solution given by rcrsn51:
http://www.murga-linux.com/puppy/viewto ... 949#586949

The permission check is implemented in the sfs_load 1.9 and later.
Anyway, i improved the error treatent.
Try sfs_load-1.9.9.pet.
http://shino.pos.to/linux/puppy/

# 9 Jun 2013 v1.9.9: unmount on permission error (thanks to R-S-H), shrink skip list (PUPMODE=2)
#31 May 2013 v1.9.8: again fix was failed cleanwhite on flash with RAM mode (PUPMODE=5)
(snip)
# 7 Apr 2012 v1.9: clean up whiteout, BOOTCONFIG.save for remastered puppy, accept multiple files, read from standard input, permission check
Type 'sfs_load --help' on a virtual terminal to see the detail.
Attachments
image-1.jpg
permission error
(9.35 KiB) Downloaded 720 times
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#244 Post by R-S-H »

shinobar wrote:The issue is not the size but the permission of the SFS. You need to re-pack the LP2_LazarusFPCSuite.sfs.
Hi.

Thanks for the info and the link to the solution. That did the trick, sorry for calling this a bug in sfs_load 1.9.7.

Can you explain, why this permission check is needed in the new sfs_load and what would/could be the issue, if loading sfs files with wrong permissions using sfs_load version before 1.9 versions?

Thanks,

RSH

P.S.

Also again a big THANK YOU for the wonderful sfs_load application. LazY Puppy's SFS P.L.U.S. rises up and falls down with sfs_load!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#245 Post by sc0ttman »

I've been trying to get the --cli option to work in various version of sfs_load , in Akita, but I can't get it working ... The $GTKDIALOG commands seem to be run no matter what...

I even went through the whole file, using

[ -z $DISPLAY ] && do || dont

and so on, but it still would not work, after skipping the menus, i got errors saying:

failed to mount /dev

I tried all available commands, I think:

sfs_load --cli -q /path/to/sfsfile.sfs
sfs_load --cli /path/to/sfsfile.sfs
sfs_load -q --cli /path/to/sfsfile.sfs
sfs_load --quiet --cli /path/to/sfsfile.sfs

and so on...


I would love some help making this a CLI sfs loader that works when X is NOT running.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
jrb
Posts: 1536
Joined: Tue 11 Dec 2007, 19:56
Location: Smithers, BC, Canada

#246 Post by jrb »

sc0ttman wrote:I would love some help making this a CLI sfs loader that works when X is NOT running.
I've been running a modified version of sfs_load-1.3 for over a year which I use to load SFS's at startup. Since I don't use a pupsave file I needed something besides Boot Manager to do the job. I stripped (commented) out all the code that required user input (do you want to copy? etc.) so that SFS's are loaded automatically.

I just exited to prompt and loaded an SFS with it successfully from the command line.

Code: Select all

sfs_load-min /z.sfs
You can find my mods by searching for "jrb" in the script. You might have to compare with an unmodified version in some places. Looks like I deleted some sections rather than commented out. :oops:

Hope you find this useful, J
Attachments
sfs_load-min.tar.gz
uncompress this to get sfs_load-min
(18.55 KiB) Downloaded 426 times

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#247 Post by ASRI éducation »

jrb wrote:I've been running a modified version of sfs_load-1.3 for over a year which I use to load SFS's at startup. Since I don't use a pupsave file I needed something besides Boot Manager to do the job. I stripped (commented) out all the code that required user input (do you want to copy? etc.) so that SFS's are loaded automatically.
The idea of jrb seems interesting.
This reminds me of another idea ...

For several weeks, I am looking for a utility that allows users to install sfs integrated into an iso image.

My idea: offer a Puppy light, while allowing the user to simply add some popular applications (webbrowser, image editor, etc..)This, without having to download the applications (sfs files will be included in the iso, but separated from the main Puppy sfs).

sfsload will be used to mount/unmount the sfs (with optionl cli). It remains for me to design a GUI, If someone wants help, this is possible.

Cordialement,

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#248 Post by R-S-H »

Hi.

I do run in my LazY Puppy a modified version of sfs_load generally (I started to do this with the 1.3.9).

Currently I'm running a modified version of 1.9.9 and I did similar things as jrb mentioned.

For the SFS P.L.U.S. RunScripts in LazY Puppy I can use the modified version of sfs_load to load sfs files from a specific location. So, I do have several LazY Puppys and do load all the sfs files from one directory 'Modules'.

I can 'patch' my RunScripts after its creation to switch the sfs files location easily and immediately without to create new RunScripts.

I would like to add the SFS P.L.U.S. together with shinobar's sfs_load as an official SFS Package - but I'm helpless... ..and lost...

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#249 Post by R-S-H »

Hi!

I'm back!

No, not on development!

I'm back to version 1.3.9 - the modified one!

The new sfs_load seems to have some issues. I'm not sure if it is because of the modifications I've made. Yes, the modified 1.3.9 works perfect and it has the same modifications inside.

The issue:

I've tried to remove an icon from /usr/local/lib/X11/mini-icons and also a .desktop file from /usr/share/applications - everything worked well, so far.

Then I've tried to edit another .desktop file and since I've removed Geany from my LazY Puppy, I did load the LP2_Geany-0.20.sfs to edit the .desktop file.

After editing the file and unloading the LP2_Geany-0.20.sfs the previous removed icon and .desktop file returned into the os !!! :shock:

Back to 1.3.9 and everything works well!

RSH

Btw: I don't use any save file!
ASRI éducation wrote:My idea: offer a Puppy light, while allowing the user to simply add some popular applications (webbrowser, image editor, etc..)This, without having to download the applications (sfs files will be included in the iso, but separated from the main Puppy sfs).
LazY Puppy already can do this!
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#250 Post by ASRI éducation »

R-S-H wrote:
ASRI éducation wrote:My idea: offer a Puppy light, while allowing the user to simply add some popular applications (webbrowser, image editor, etc..)This, without having to download the applications (sfs files will be included in the iso, but separated from the main Puppy sfs).
LazY Puppy already can do this!
Hello RSH
I know your Lazy can do that, but the problem is that your solution is avaible only for your puplet.
I hope that this possibility becomes available for all Puppy ...

Off topic:
I've tested your Lazy, and I can say that it offers many interesting possibilities for users.
I'm like many geeks, I want to control my OS and its utilities, I like to test new versions while maintaining my favorites applications/utilities. With Lazy, I'm dependent on a version of its main developer, I lack of freedom (of course, my opinion is personal and subjective, it is only a reflection of my needs).
So, I encourage users to test/adopt lazy, but I also would like to propose adaptable good tools to other versions of Puppy.

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#251 Post by R-S-H »

ASRI éducation wrote:Hello RSH
I know your Lazy can do that, but the problem is that your solution is avaible only for your puplet.
I hope that this possibility becomes available for all Puppy ...
To make this available and usable in any other Puppy (maybe except FatDog) we first need a command line option in sfs_load, to skip the copy function - so, the SFS can be loaded from its original location.

But, if using this from CD, it will lock the CD drive after loading the first SFS from CD !!!

If we would have the command line option to skip the copy function, I could offer my new SFS P.L.U.S. (currently v3.3.5), which now can create RunScripts from ALL SFS files - no need to convert the SFS first to SFS P.L.U.S. format (but is still usable). Also: SFS dependencies can be added into the SFS P.L.U.S. RunScript (SFS P.L.U.S. SFS files do have their dependencies declared inside the SFS). Each RunScript can have its own location to load from !!!

The user will be able then to load the SFS and run the Program from CD (and everywhere else) just by its menu entry (as it would be installed).

The new SFS P.L.U.S. 3.3.5 (LazY Puppy will be replaced by the Name of your Puppy because of DISTRO_NAME is used for this)

Image

Image

Image

Information TAB on SFS PLUS SFS files
Image
Information TAB on standard SFS files attached below (just forgot to upload to imgur)

Image

This is currently my main development work (when I'm able to code, because I'm still fighting to quit smoking - and I've smoked a lot, when coding!)

Ok Guys, this is what I can offer: now, it's up to you !!!

RSH

EDIT:

I do use this in 7 LazY Puppy(s) based on 4 different Puppies.
Attachments
image-2.jpg
Information TAB on standard SFS files (not converted to SFS P.L.U.S.)
(56.27 KiB) Downloaded 654 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

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

#252 Post by sunburnt »

Any thoughts about making it a general purpose image file manager?

# Mainly so it can also load - unload ext2, ext3, ext4, and btrfs files.

This extends usefulness and fully manages the union stack file types.
.

User avatar
cimarron
Posts: 292
Joined: Fri 31 May 2013, 01:57

#253 Post by cimarron »

I really like sfs_load, and it works well on my Lupu 5.1.

My only question is about the bootconfig.save function. It apparently has something to do with remastering, but I don't understand its purpose. I remaster occasionally, and ended up with an extra sfs loading automatically on boot in the remaster, though I had unloaded it with sfs_load before doing the remaster. Confusing.

I noticed BK also mentioned an issue with this function on his blog (in the comments):
I did find what seemed like a problem. After using sfs_load, I then ran BootManager and unloaded the .sfs -- which does of course only take affect at next bootup, and after rebooting I saw that /etc/rc.d/BOOTCONFIG.save still had the .sfs in it's EXTRASFSLIST variable.
I think I was able to remove the function, by commenting out these lines in /usr/sbin/sfs_load (line 1380), like this:

Code: Select all

  # backup for remaster. not removed by unload
#  echo "# This file affects sfs_load only at the 1st boot of a remastered puppy." > $BOOTCONFIG.save
#  echo "EXTRASFSLIST='$EXTRASFSLIST'" >> $BOOTCONFIG.save
But does this remove something important? I don't get it. Anyway, I love being able to load Gimp and FreeOffice just when I need them.

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

CLI

#254 Post by Scooby »

I use sfs_load from the commandline.

load and unload works perfectly

However I miss an option to list loaded sfs-files in the terminal?

Is that something you would be willing to do?

I am sure it wouldn't be difficult since you already have the list in GUI mode.

If you are not willing to implement would you please direct me to right function or variable
so I can make a personal hack?

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#255 Post by RSH »

However I miss an option to list loaded sfs-files in the terminal?
Hi

This has taken hours of hours of heavy development! (Just kidding :lol: )

This lists all SFS Files stored in 'LASTUNIONRECORD' of /etc/rc.d/BOOTCONFIG. It might needed to be changed when using a save file to 'EXTRASFSLIST' inside the Script. Try to modify it for your needs.

The Terminal (xterm) stays open and will be still usable until it is closed..

The attached File is a fake '.gz' File - remove the '.gz' Extension and make executable.

Hope this will work.

RSH
Attachments
sfs_list_in_terminal.gz
Fake '.gz' File - remove the '.gz' Extension and make executable
(751 Bytes) Downloaded 358 times
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

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

#256 Post by sunburnt »

Hi RHS; Any thought to making sfs_load use ext2-3-4 and brtfs image files?

Just a thought to making it complete in it`s capability...

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#257 Post by Karl Godt »

Darn Hijackers !

Move your forks to your own threads !

PLEASE !

1000 pics I have to load :evil:
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#258 Post by Scooby »

RSH wrote: Hope this will work.
Yapp almost works, haven't got xterm so == small problem

Thanks for pointing me in the right direction though, used info to create bash function

Code: Select all

function list_sfs() {
	grep EXTRASFSLIST /etc/rc.d/BOOTCONFIG  | awk -F "=" '{ 
										        gsub("\047","",$2)
										        gsub("\042","",$2)
										        print $2
									                }'   
}

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#259 Post by RSH »

Darn Hijackers !

Move your forks to your own threads !

PLEASE !
Can't see any hijacker.

Also no one has posted and/or published a fork of sfs_load in this thread here.

So, what's the problem?

A few images, that shows possibilities of an application, that's set 'on top' of sfs_load to use sfs_load in a much smarter way, than it is possible by sfs_load's own gui?
sunburnt wrote:Hi RHS; Any thought to making sfs_load use ext2-3-4 and brtfs image files?

Just a thought to making it complete in it`s capability...
Yeah, I have examined sfs_load a lot and made some modifications for the use of 1.3.9 in LazY Puppy.

But, sorry, sunburnt.

Did you ever have a look into sfs_load?

I can do some modifications, but I'm not able to create really a fork of sfs_load or to extend it with new functions.

So, dear Karl, looks like still no fork is going on here...
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

tebert
Posts: 2
Joined: Sat 05 Oct 2013, 21:38
Location: Rochester, MN

Trouble with sfs_load of devx file in Precise 5.7.1.

#260 Post by tebert »

I have the following error occur when I try to load the devx_precise_5.7.1.sfs file in a fresh frugal install of puppy_precise_5.7.1. The same error occurs on two different machines, and I re-downloaded the devx file both manually and via the desktop "install" icon. Both machines are i686 boxes. Other sfs files load OK (e,g, virtualbox-4.2.12-x86.sfs4.sfs)
fs_load: debug: Using /usr/bin/gtkdialog4.
sfs_load: Using /usr/bin/gtkdialog4.
sfs_load: debug: 'losetup -d' is disabled. for kernel-3.x
sfs_load: 'losetup -d' is disabled. for kernel-3.x
sfs_load: debug: SUPPORTSIG=green, SFSMODE=y, DESTPART=sda1, DESTDIR=/mnt/home;
sfs_load: SUPPORTSIG=green, SFSMODE=y, DESTPART=sda1, DESTDIR=/mnt/home;
sfs_load: debug: TFREE=842732
sfs_load: TFREE=842732
sfs_load: debug: RFREE=3174156
sfs_load: RFREE=3174156
sfs_load: debug: FILEISAT=home;
sfs_load: FILEISAT=home;
sfs_load: debug: Do you want to load 'devx_precise_5.7.1.sfs(filesize: 79MB)'?

sfs_load: Do you want to load 'devx_precise_5.7.1.sfs(filesize: 79MB)'?\n
sfs_load: debug: EXIT=OK
sfs_load: EXIT=OK
sfs_load: debug: Do not assosiate /mnt/home/puppy571/devx_precise_5.7.1.sfs to /dev/loop5 but /dev/loop2.
sfs_load: Do not assosiate /mnt/home/puppy571/devx_precise_5.7.1.sfs to /dev/loop5 but /dev/loop2.
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

sfs_load: debug: '/mnt/home/puppy571/devx_precise_5.7.1.sfs'() is mounted on '/initrd/pup_ro5'.
sfs_load: '/mnt/home/puppy571/devx_precise_5.7.1.sfs'() is mounted on '/initrd/pup_ro5'.
mount: mounting unionfs on / failed: Invalid argument
umount: can't umount /initrd/pup_ro5: Invalid argument
sfs_load: ERROR: fatal:Failed to append '/initrd/pup_ro5' to unionfs.

sfs_load: fatal:Failed to append '/initrd/pup_ro5' to unionfs.

sfs_load: debug: fatal:Failed to append '/initrd/pup_ro5' to unionfs.

sfs_load: fatal:Failed to append '/initrd/pup_ro5' to unionfs.\n
/usr/sbin/sfs_load: line 276: 19941 Terminated $GTKDIALOG -p DIALOG -c > /dev/null
sfs_load: debug: EXIT=OK
sfs_load: EXIT=OK
I can't find any other references to this error in the forums. Any ideas how to troubleshoot?

Thanks
AEE

Post Reply