sfs_load-2.4 on-the-fly

Miscellaneous tools
Message
Author
Jasper

#221 Post by Jasper »

Hi peebee,

It seems you are linking individual sfs files. Whilst every sfs may not work in every Pup - I wonder what would happen if you were to link the sfs directory instead of individual files?

SFS-Exec from seaside may be an alternative to load-on-the-fly since either can be used at any time.

My regards

Addendum: now deleted, as my thoughts were useless..

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

#222 Post by RSH »

Hi shinobar.

You remember the command --skip-fixmenus? Thanks for introducing this.

LazY Puppy has installed sfs_load 1.9.4 but version of 1.3.9 (the one with my modifications inside) also. For a special use of LazY Puppy from CD/DVD i did made some new modifications on 1.3.9, that makes me able, to run the complete system from CD/DVD and to load the sfs by the RunScripts from CD/DVD without the need to click/confirm the "copy-GUI". So, maybe I'll have something new to be introduced in a new sfs_load version?

I did insert the following code at the very beginning of the 1.3.9 script:

Code: Select all

# 2012-11-20 RSH
#---------------
# Get Pupmode etc.
. /etc/rc.d/PUPSTATE
# Check if run from CD
DoNoCopy="false"
if [ "$PMEDIA" = "cd" ]; then
	DoNoCopy="true"
	elif [ "$PMEDIA" = "CD" ]; then
		DoNoCopy="true"
		elif [ "$PMEDIA" = "dvd" ]; then
			DoNoCopy="true"
			elif [ "$PMEDIA" = "DVD" ]; then
				DoNoCopy="true"
fi
echo "PMEDIA="$PMEDIA
echo "DoNoCopy="$DoNoCopy
#---------------
Then I did change the code at (above) line 1902 to:

Code: Select all

  if [ "$DoNoCopy" = "true" ]; then
  	PART="NOCOPY"
  else
  	choosepart $TOPART || finish
  fi
As you can see (surely) this disables the "copy-GUI" and as a result it loads the sfs from CD/DVD without to copy it to any other location and no GUI is shown to be clicked away.

Any chance to introduce a command for that behavior of sfs_load (maybe --do-not-copy), so that it would change its behavior only if submitted this (or similar) command?

RSH
[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]

Pelo

I load complete distros

#223 Post by Pelo »

DPUP485 inside Precise Puppy for instance.
I load the DPUP485 SFS and it runs. That's all.
Same for LHP 503
Same for Fluppy 013.
These three distros were unable to connect Internet on my new Laptop but mounted on the fly on A recent Puppy 5XXXX, they go back to life !
With all their programs (...quite all)

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#224 Post by vicmz »

Spanish locale updated
Attachments
MoManager-es_AR-SFS_load.tar.gz
(6.22 KiB) Downloaded 610 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#225 Post by 01micko »

I have fixed and uploaded sfs_load for crashing the system if you are using kernels greater than 3.2. NOTE: not tested on k3.8, reports please.

Many thanks to SFR

Package:
http://mirror.aarnet.edu.au/pub/puppyli ... .9.6-2.pet
Puppy Linux Blog - contact me for access

User avatar
Terryphi
Posts: 761
Joined: Wed 02 Jul 2008, 09:32
Location: West Wales, Britain.

#226 Post by Terryphi »

01micko wrote:I have fixed and uploaded sfs_load for crashing the system if you are using kernels greater than 3.2. NOTE: not tested on k3.8, reports please.
Tested on Quirky 5.4.91 (Kernel 3.8.) Eventually worked. After removing the old pet and installing the new pet reboot is required before testing or it will crash system.
[b]Classic Opera 12.16 browser SFS package[/b] for Precise, Slacko, Racy, Wary, Lucid, etc available[url=http://terryphillips.org.uk/operasfs.htm]here[/url] :)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#227 Post by don570 »

I tested on precise 5.4.90 and it worked perfectly right away.

___________________________________________

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#228 Post by nooby »

Is this a script that one can edit so it does not ask so many questions
it wants to move files and deal with save file and so on.

I need it to load the sfs and not make me go into dialogs all the time :)

I don't have a save file so all these questions are only annoying Sorry

Now I am using sfs-exec in Slacko despite it does not work properly
for slacko. Would be better to be able to use the built in sfs on fly
but a version that are less nosy all the time.
I use Google Search on Puppy Forum
not an ideal solution though

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

#229 Post by sunburnt »

nooby; Did you try sfs_load --help to get the CLI list for use without the GUI.?


shinobar; I just needed an SFS loader for the first time for AppPkg development.

It works great except for what seems to be a Puppy messup of both the dirs. /lib/i386-linux-gnu and /usr/lib/i386-linux-gnu
They are links to the parent dir. and sfs_load can`t union dirs. on them. I doubt any union can be done on this type of setup.

Is there a work around fix for what appears to be a Puppy hack.?

( I`m guessing apps. must be modified to work, meaning they`ll only work in Puppy. )


# Suggestion for sfs_load: Why limit it to SFS files,?

# Please also make it load ext2, ext3, and ext4 image files as well.!

And of course add "Load RO" and "Load RW". ( Separate buttons is good. )
Have the buttons disabled when a SFS file is selected to be loaded.
If the image file`s mounted RW and unioned RO, then the normal Save file is the union`s only RW.
Then changes to the image file can be made through it`s mount point.
This will allow new app. package development ( SFS and AppPkg ) to be done quite easily.
.
Last edited by sunburnt on Tue 12 Mar 2013, 23:35, edited 4 times in total.

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

#230 Post by R-S-H »

Hi.

To use sfs_load from command line use option --cli. I do use this inside the RunScripts from LazY Puppy's SFS P.L.U.S. to get the SFS loaded without the GUI.

Full command I do use:

Code: Select all

sfs_load --cli --skip-fixmenus --quiet "$LP2BDL/$nogo_file"
or to unload

Code: Select all

sfs_load --unload --cli --skip-fixmenus --quiet "$LP2BDL/$nogo_file"
This works in sfs_load 1.9.0 and above!

--cli = command line interface
--skip-fixmenus = NO fixmenus is executed after loading the SFS (LazY Puppy did need this, because the menu entries are already inside the OS)
--quiet = NO Messages/Warnigs are given

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

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#231 Post by nooby »

Thanks for sharing that way to do sfs load.
I should test it ASAP but just now I am into other things.
I make a bookmark here so I can find it again. Thanks
I use Google Search on Puppy Forum
not an ideal solution though

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

#232 Post by Karl Godt »

Works good to load a dpup_devx_007.sfs into a ram boot of a dpup-005.sfs without annoying anything about wrong version and whatsoever . Has some much text about what and what not recommended is, but that is personal taste .

Nevertheless ( latest /root/Downloads/sfs_load-1.9.6-2.pet ) :
Dragged the _devx_ into the input box of the gui and got this later :
Seems some '\n' jumped into the $VARS and copying failed (crappy mrxvt, encoding or LANG mismatches possible ?)

Code: Select all

# sfs_load
sfs_load: You seem running Puppy without 'pupsave'. Recommended to click 'Cancel         ' here and reboot PC after making 'pupsave'.

But you can load extra SFS files for temporary use(may disappear at the next boo         t). Click 'OK' if you want to continue.
find: `/initrd/mnt/dev_ro2\n/mnt/sdb1': No such file or directory
/usr/sbin/sfs_load: line 762: 24578 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
/usr/sbin/sfs_load: line 265: 26728 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
cp: cannot create regular file `/initrd/mnt/dev_ro2\n/mnt/sdb1': No such file or          directory
sfs_load: fatal:Failed to copy '/mnt/sda8/JUMP-8/dpup_devx_007.sfs' to '/initrd/         mnt/dev_ro2 /mnt/sdb1'.
/usr/sbin/sfs_load: line 265: 26890 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
find: `/initrd/mnt/dev_ro2\n/mnt/sdb1': No such file or directory
/usr/sbin/sfs_load: line 762: 27355 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
/usr/sbin/sfs_load: line 265: 27899 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
gtk-update-icon-cache: Cache file created successfully.
Generating /root/.icewm/menu...
Generating /root/.jwmrc...
/usr/sbin/sfs_load: line 357: 27998 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
/etc/profile.d/pkgconfig: line 1: 28141 Terminated              $GTKDIALOG -p DI         ALOG -c >/dev/null
sfs_load: Running script background...
/usr/sbin/sfs_load: line 1024: 29212 Terminated              $GTKDIALOG -p DIALO         G -c >$TMPFILE
sfs_load: --stop
find: `/initrd/mnt/dev_ro2\n/mnt/sdb1': No such file or directory
/usr/sbin/sfs_load: line 762: 29659 Terminated              $GTKDIALOG -p DIALOG          -c >/dev/null
sfs_load: --stop
# sfs_load --version
bash: sfs_loa--version: command not found
# sfs_load --version
sfs_load 1.9.6
#

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

#233 Post by Karl Godt »

Have not investigated the above further, but while running a Puppy with unionfs.ko instead of aufs.ko
I figured to mount devx with that line :

Code: Select all

mount-FULL -t unionfs -o remount,add=:${MNTPNT}=rw none /
Not sure about the =rw option for now, might be as well =ro .

Have read some pages on the net :
http://puppylinux.dreamhosters.com/unionFS/usage.txt
http://www.lug-kr.de/wiki/UnionFS
http://www.a110wiki.de/wiki/UnionFS
http://pl.digipedia.org/man/doc/view/unionfs.4/
(http://www.gsp.com/cgi-bin/man.cgi?topic=mount_unionfs)

watchdog
Posts: 2021
Joined: Fri 28 Sep 2012, 18:04
Location: Italy

sfs-load in precise 5.5

#234 Post by watchdog »

Perhaps I posted in a wrong place so I give a link here:

http://www.murga-linux.com/puppy/viewtopic.php?t=86068

I use frugal precise 5.5 with light-encrypted precisesave.

simargl

#235 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:07, edited 1 time in total.

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

#236 Post by sunburnt »

simargl; Perhaps the branch is in use so it can`t be removed.

Try unmounting it and see if you get the usual error: Device or resource busy

simargl

#237 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:06, edited 1 time in total.

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

losetup with Util-linux 2.23

#238 Post by shinobar »

simargl wrote:Changes in Util-linux 2.23
http://permalink.gmane.org/gmane.linux. ... ux-ng/7503
Thanks for the information simargl.
The losetup in usual puppy is a link to the busybox. So, it depends on the busybox.

Anyway, I installed util-linux 2.23 on Presice Puppy 5.5 for testing.
# losetup --version
losetup from util-linux 2.23

Now i am testing...
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

sfs_load-1.9.7

#239 Post by shinobar »

Download: http://shino.pos.to/linux/puppy/
Updatet: sfs_load-1.9.7.pet (2013-05-14)

#14 May 2012 v1.9.7: fix was faild more than 7 after reboot (thanks to nonki3476), fix was failed cleanwhite on flash, support util-linux-2.23 (thanks to simargl) , debugging log
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

simargl

#240 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 15:09, edited 2 times in total.

Post Reply