Page 1 of 1

How to use .sfs files with full hd install

Posted: Wed 02 Jan 2008, 17:04
by danharris
lots of confusion about this, lots of conflicting posts.

as far as i can tell..

if you want to run .sfs files on your full hd install, one must mount the .sfs then copy its contents to your regular linuxish install.

this was post written very step by step. our author wrote this pertaining to 3.01 release but it should work in most, if not all modern puppys
http://www.murga-linux.com/puppy/viewtopic.php?t=22701

get the end of /etc/rc.d/rc.modules file to look like this

Code: Select all

#v2.13
#dougal suggested this:
[ ! -d /proc/acpi ] && modprobe apm

#needed to be able to mount squashfs on full hd install
modprobe squashfs
# end of update


###END### 
reboot

make a new directory in "/", desertpuppy likes to use "/data" i like to use "/devx" you can use whatever you like.

then mount your .sfs (which should be in "/")

Code: Select all

#mount -o loop devx_301.sfs /data 
copy the newly mounted sfs file system to your drive

Code: Select all

cp -a -v --remove-destination /data/* / >devcopy.txt
unmount and sync

Code: Select all

#umount /data
#sync 
if your installing a devx sfs try typing "gcc",
if it tells you bad command, you do not have devx
if it tells you no input files, you have installed devx and can compile.

ive been doing this with versions 214, 215, 217, 300, 301
mounting and installing .sfs files such as webp2p, web, lighthouse expansions, nop and open office, and all the devx's.

you may want to match up version #'s by renaming the file before you mount it.
you may want to read devcopy.txt and see what has been installed (this is the file you created when you ran you "cp" command above)
you may want to drop out of x and run a "fixmenus" command if you have installed things that have menu entries.

Posted: Thu 03 Jan 2008, 23:47
by BarryK
If you have a recent version of Puppy -- I don't recall exactly when this was introduced, maybe 3.00 -- all you have to do is click on an .sfs file and it will automatically mount. Clicking the .sfs file again unmounts it.
But of course squashfs.ko has to be loaded.

A couple of different guys developed two different ways to do this automounting of .sfs files -- you should be able to find their posts in this forum. I chose one of them for Puppy, but I seem to recall they were both very good implementations.

Re: How to use .sfs files with full hd install

Posted: Sat 12 Jan 2013, 01:03
by kedit
danharris wrote: get the end of /etc/rc.d/rc.modules file to look like this
I can't find rc.modules on lucid-puppy 5.28.005!
So I can't follow to this HOW-TO!

Actually I am time less, just wanted to see how it works, and not make a lot time involving researches!

Anyway, will find the way out ;)

Thank You!

Posted: Sat 12 Jan 2013, 03:00
by kedit
As I was too lasy to read all rc.d files trought and understand where to add suggested lines, I did it this way:

0. thougth that SFS files mounts automatically
1. clicked on SFS file, and got something new in /mnt directory
2. did cp -a -v --remove-destination /mnt/new_stuff/* / >decopy.txt
3. get response that file system is read only
4. mounted SFS manualy:

Code: Select all

mount -o loop,rw -t squashfs data/lupu_devx_528-44.sfs /source
5. try again

Code: Select all

cp -a -v  --remove-destination /source/* / >decopy.txt
6. sync
7. ldconfig
8. gcc
9. get rsponse: gcc: no input file
10. unmount /source

Now it's time to install something from sources and see does it really works!

I hope it will work ;)

Posted: Sat 12 Jan 2013, 03:21
by watchdog
A way I should use to install a sfs file in a full install is to obtain its pet. In new puppies click on the sfs file. It will be mounted and its content shown. Select all. Copy in a DIR in your work-environment where you want. Open a terminal and change path to DIR. Type:

Code: Select all

cd ..

Code: Select all

dir2pet DIR
Follow step-by-step the creation of a pet of the DIR content. Rename DIR.pet as you want. Now you can install the same stuff of the sfs file as a pet. This is useful if you have full install. Someone could create a script "sfs2pet".

EDIT: found!

http://www.murga-linux.com/puppy/viewto ... 73&t=81316

Posted: Sat 12 Jan 2013, 20:41
by kedit
Sound like a good solutions! I will check it! Thank You ;)