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 28 Aug 2014, 23:13
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Where do the files from an SFS go?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
PaulR

Joined: 04 May 2005
Posts: 242
Location: UK

PostPosted: Sun 21 Apr 2013, 04:19    Post subject:  Where do the files from an SFS go?  

I've made a SFS (as per the wiki instructions) which works properly when loaded with 'load on the fly' but some of the files appear in '/'

When I made the sfs the source directory was in the my-documents folder.

I guess that either the source directory needs to be in the place where I want it to appear when mounted or I need to specify this when making the sfs?

Is there a recommended location for programs 'installed' in this way (maybe usr/bin?)

TIA

Paul
Back to top
View user's profile Send private message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Sun 21 Apr 2013, 05:38    Post subject:  

Hi.

Can't you do a right-click on a directory and choose "Create SFS" or "Make SFS"?

What puppy are you using?

Didn't you try don570's right-click-tools or the PaDS Application wich makes a single SFS file from a directory containing PET and/or DEB files?

To make SFS files is really easy by all the tools one can find on the forum ---> search the Utilities Section!

Edit:

If you want to have the your files in /root/my-documents the directory to create the sfs from has to include /root/my-documents/YourFilesHere.
Best and recommended place to load the sfs from is either boot partition or boot directory.

When using such sfs tools...

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 242
Location: UK

PostPosted: Sun 21 Apr 2013, 06:49    Post subject:  

Thanks for the reply. I don't think I made the question clear enough (or I must be having a particularly dense day today!)

Making the sfs, shifting it to hard disk then loading it on the fly is no problem and everything works as expected, it's just that regardless of where I create the sfs from or the path I give it, it always seems to get mapped to the root directory.

For example, if I have a directory structure like this

~/my-documents/program/
~/my-documents/program/images/

and /program contains readme.txt

If I execute this from within ~/my-documents:

mksquashfs ./program /usr/bin/program.sfs

...when I use 'load on the fly', readme.txt ans /images appear in the root directory, whereas I wanted them to appear in /usr/bin.

I've tried creating the sfs from /usr/bin with the program directory already in situ there but that doesn't work either.

So to recap, I just can't get the contents of the sfs to appear in the right place when loaded.

Thanks again

Paul
PS Slacko 5.5 from CD if that's relevant Very Happy
Back to top
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1470
Location: UK

PostPosted: Sun 21 Apr 2013, 07:53    Post subject:  

Hello Paul

PaulR wrote:
...when I use 'load on the fly', readme.txt ans /images appear in the root directory, whereas I wanted them to appear in /usr/bin.

I have no idea why you want to put a directory of images in /usr/bin (or the readme.txt file),
but if that's what you want, then try doing it lke this:

Create the appropriate directory structure INSIDE of your program directory,
like thus:
    ~/my-documents/program/
    ~/my-documents/program/usr/
    ~/my-documents/program/usr/bin/
    ~/my-documents/program/usr/bin/readme.txt
    ~/my-documents/program/usr/bin/images/


Then from within ~/my-documents,
do:
Code:
mksquashfs program program.sfs


NOTE:
The program directory is just a container,
therefore when you view the contents of your new sfs file you will only see this:

└── usr
└── bin
├── images
└── readme.txt

3 directories, 1 file

CatDude
.

_________________

Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 242
Location: UK

PostPosted: Sun 21 Apr 2013, 08:13    Post subject:  

Thanks catdude... I'm definitely having one of those days but I understand the essence of your post.

The files/folders I'm trying to pack up into the sfs belong to a program (hence the images directory & readme). I thought getting programs to appear in /usr/bin would be a sensible place in the same way that stuff in the dev_x sfs appears when that's loaded. Am I right in thinking that the structure inside a sfs is just grafted on to the normal directory structure when it's loaded?

Paul
Back to top
View user's profile Send private message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Sun 21 Apr 2013, 08:20    Post subject:  

Hi, PaulR.

I did understand you clearly at first time. You can avoid doing all described things manually when using dir2sfs (right-click tool by don570) or using PaDS (if the files are PETs to convert to sfs, created by myself).

Just create a directory like CatDude has described (doesn't matter where it is created) put your files in and make a right-click onto this directory. There is no need to create an sfs file by entering several commands like cd and mksquashfs into a terminal (and maybe doing it twice because of typos)!

Just a suggestion...

Quote:
Am I right in thinking that the structure inside a sfs is just grafted on to the normal directory structure when it's loaded?

If one wants to have a specific file in /usr/bin one has to put such file into /usr/bin inside the directory the sfs is intended to be created from - that's all. What's the difficulties to understand?

_________________
LazY Puppy Home
The new LazY Puppy Information Centre

Back to top
View user's profile Send private message 
PaulR

Joined: 04 May 2005
Posts: 242
Location: UK

PostPosted: Sun 21 Apr 2013, 09:03    Post subject:  

Thanks for the reply, it's all working as required now Very Happy

R-S-H wrote:

If one wants to have a specific file in /usr/bin one has to put such file into /usr/bin inside the directory the sfs is intended to be created from - that's all. What's the difficulties to understand?


It's easy to understand, I just didn't come across that information anywhere... maybe someone could add it to the wiki?

Paul
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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