How to add .sfs file to Full Installation?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

How to add .sfs file to Full Installation?

#1 Post by darkcity »

I've adapted the description to install devx sfs to a general sfs install - for full install.

See
http://puppylinux.org/wikka/HowtoAddSFStoFullInstall
Is this description correct?

Adapted from
http://puppylinux.com/development/compileapps.htm
Full hard drive installation
This is a conventional Linux installation.
Currently, installing the "devx" file in a full hard drive installation (as opposed to a "frugal" installation) is slightly more complicated, and you can't undo it. It involves some steps....
1. Click on the devx_xxx.sfs in a ROX-Filer window to mount it.
2. Open a terminal in the mounted directory.
3. # cp -a --remove-destination ./* /mnt/hda2/
4. # sync
5. Close the terminal.
6. Click on the devx_xxx.sfs file to unmount it
Note, the '--remove-destination' option is essential. If you only use '-f' to force overwrite, it will follow (dereference) a symlink, that can cause unexpected overwrites.

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

#2 Post by Karl Godt »

I think that this is correct .

I must say that had split ed experiences with " cp -r -f " :
some succeeded , while others truncated the /bin/busybox binary down to a non-usable size .
ash was not working anymore , booting had been able with " init=/bin/bash " kernel parameter .

I have used " cp -a -r " since then , without apparent problems so far .
BUT " -a " seems to implement the " -R|-r " option automatically .

Will test " cp -a --remove-destination " if i get a new HD .

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

sfs_load

#3 Post by shinobar »

You can use sfs_load. It makes a pseudo-PET so that you can uninstall it.
http://www.murga-linux.com/puppy/viewtopic.php?t=64354

But the SFS files in general are made and tested for frugal installs. They do not always work as expected with full installs.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#4 Post by darkcity »

Thanks for the feedback.

@Karl, seem the -f option causes a problem then.

@Shinobar

I hadn't realised SFSLoad could be used on Full :oops: .

I realise SFS are made for Frugal. However, having a standard way to install SFS on full reduces the differences between Full/Frugal and hopefully reduces some confusion. Devx SFS is a standard way to add compiling feature to puppy, so it is good that it can be used on Full. :twisted:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#5 Post by bigpup »

Seems I remember left clicking on an sfs file and it would install like a pet, in a full install of Puppy.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#6 Post by darkcity »

bigpup wrote:Seems I remember left clicking on an sfs file and it would install like a pet, in a full install of Puppy.
Can you or anyone confirm this? if so will add to wiki

8)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#7 Post by bigpup »

darkcity wrote:
bigpup wrote:Seems I remember left clicking on an sfs file and it would install like a pet, in a full install of Puppy.
Can you or anyone confirm this? if so will add to wiki
8)
In Lucid 528.005 full install, using Quickpet, it works.
In Quickpet sfs get.
It will download the sfs file and make it into a pet file. You then get the option to install like a normal pet package.
One click on listed sfs file and it works just like download and install of a pet package. The pet package is retained in /temp directory.

Seems to be using this program.
Attachments
sfs graber.jpg
(14.83 KiB) Downloaded 1360 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#8 Post by darkcity »

updated, as I understand it, any who has full install please make corrections.
http://puppylinux.org/wikka/HowtoAddSFStoFullInstall

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

conflict of the files

#9 Post by shinobar »

An importance on how to add .sfs file to Full Installation is how to deal with the conflict of the files already exist.

The way Barry describes always overwrites the files. It may be OK, but may be danger.
The SFS_load skips writing files already exist. It may work well, but may not work.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#10 Post by darkcity »

Are the two approaches good in different situations. Normally you would what the file your installing to be used, isn't it?

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

#11 Post by Karl Godt »

darkcity wrote:updated, as I understand it, any who has full install please make corrections.
http://puppylinux.org/wikka/HowtoAddSFStoFullInstall
Seems allright .

Busybox has clear and strings command as symlink in the main .sfs and the devx.sfs clear binary i think from ncurses package and the strings binary from gcc -or- binutils package . Both would while deferencing following symlinks overwrite the important busybox binary , replacing /bin/busybox with the clear or strings command but naming them "/bin/busybox" .

Why the cp command from the gnu coreutils package handles this so by default is a riddle to me .

The cp binary from coreutils 6.x times have improved as it seems , version 7.x seems to have been added the -n option for "no overwrite" . Coreutils 6.x as of Wary/Racy still have to be invoked with the -i parameter for "initeractive" in the cli to control overwrites if "--remove destination" is not given .

*Man, i want to copy, not to remove !*

In my opinion a "--dereference-symlinks" option would be more logical than a "--remove-destination" .

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#12 Post by darkcity »

I'm not 100% sure how symlinks get de-referenced when loading (and unloading) SFS?

Post Reply