Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy home page: puppylinux.com
 
 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 Fri 20 Nov 2009, 19:33
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Mounting and Linking SFS files for use
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [36 Posts]   Goto page: Previous 1, 2, 3
Author Message
sunburnt

Joined: 08 Jun 2005
Posts: 2686
Location: AZ

PostPosted: Tue 27 Oct 2009, 15:45    Post subject:  

I also suggested a ram disk layer be added to the union to hold the SFSs config. files and links.
The basic setup:
Code:
Layer #1: Save file
Layer #2: Ram disk
Layer #3: Added SFSs
Layer #4: Boot SFS

The ram disk layer doesn`t interfere with the Save file, but is on top of the other union layers.
It`s another level of complexity that arguably isn`t needed, but it keeps the Save file clean...
Copying config. files and making links is then done through the ram disk`s mount point, not /.

I don`t like having a union at all, so this isn`t my preferred way of doing no-union SFS files.
Back to top
View user's profile Send private message 
jrb

Joined: 11 Dec 2007
Posts: 588
Location: Smithers, BC, Canada

PostPosted: Tue 27 Oct 2009, 21:17    Post subject:  

Hi Guys,
Sorry to be so inattentive. I had no idea anything was happening on this thread. I depend on the forum to notify me and, it hasn't.

Let me just point out that I have posted a new SFS_Linker-431bk-1.0.pet in the additional software thread based on the work I started here. Its designed specifically to be an addon to Puppy431.

I've been using it for over a week and it is performing flawlessly, although a few SFS's have required tweaking to get them working.

I'm just heading out for the evening but tommorrow I'll try to come up to speed on the conversation going on here.

Thanks sunburnt for letting me know, J

_________________
ChoicePup4.1.2 As You Like It. puppylinux.ca/members/choicepup/ (usr=puppy passwd=linux)
Back to top
View user's profile Send private message Send e-mail 
jrb

Joined: 11 Dec 2007
Posts: 588
Location: Smithers, BC, Canada

PostPosted: Thu 29 Oct 2009, 10:02    Post subject:  

Here's a summary of what SFS_Linker-431bk-1.0.pet does:

SFS_Linker has 4 basic parts:
1.)sfs_boot_handler
2.)sfs_linker
3.)sfs_unlinker
4.)sfs_remove.sh

1.)sfs_boot_handler:
sets up 19 new loops in Puppy431 so up to 24 SFS's can be mounted.
identifies and creates symlinks in /root/my_links/sfs_mnt_home to either SFS4 or SFS3 depending on the kernel
removes any SFS links left from last work session
loads any SFS's linked into /root/my_links/sfs_boot_links

2.)sfs_linker
checks to make sure SFS chosen is proper type
mounts the SFS to /mnt/$SFSNAME
checks to make sure it mounted properly by looking for /mnt/$SFSNAME/usr
renames seamonkeys /root/.mozilla if the SFS contains /root/.mozilla
creates a symlink from each file in /mnt/$SFSNAME to /$FILEPATH
copies any special need files from /mnt/$SFSNAME/choice to /$FILEPATH
creates a text file, /root/.packages/$SFSNAME.files
adds an entry to /root/.packages/user-installed-packages
adds lines to etc/ld.so.conf listing the standard, i.e. /mnt/$SFSNAME/usr/bin, lib_paths in the SFS then runs ldconfig (included in .pet) to add them to lib_path
creates a symlink to the SFS in /root/my_links/sfs_loaded
makes any new fonts available with mkfonddir

3.)sfs_unlinker
unmounts the SFS
checks to make sure it unmounted properly, quits and gives error message if not, SFS will be unlinked at next bootup in this case.
calls sfs_remove.sh to delete all symlinks to the SFS
removes the lib_path lines from /etc/ld.so.conf
removes empty folders from all except /root, /tmp, /var, /mnt
fixmenus and restart jwm

4.)sfs_remove.sh
uses code from puppy package manager to remove the symlinks listed in /root/.packages/$SFSNAME.files

_________________
ChoicePup4.1.2 As You Like It. puppylinux.ca/members/choicepup/ (usr=puppy passwd=linux)
Back to top
View user's profile Send private message Send e-mail 
jrb

Joined: 11 Dec 2007
Posts: 588
Location: Smithers, BC, Canada

PostPosted: Fri 06 Nov 2009, 19:01    Post subject:  

I have uploaded SFS_Linker-431bk-1.1.pet

This one creates a new loop if needed. I have had up to 30 SFS's installed at once. It creates new loops when you want to simply mount an SFS as well. I have had up to 50 SFS's mounted at one time. Doesn't seem to be any limit although common sense says there must be. Wink Does away with having to put
Code:
max_loop=28
in the config file or kernel line. Just uninstall 1.0 (if installed), install 1.1, reboot and use.
_________________
ChoicePup4.1.2 As You Like It. puppylinux.ca/members/choicepup/ (usr=puppy passwd=linux)
Back to top
View user's profile Send private message Send e-mail 
technosaurus


Joined: 18 May 2008
Posts: 1176

PostPosted: Fri 06 Nov 2009, 20:36    Post subject:  

I think the kernel may be limited to 255 loops unless patched. Maybe this has changed though?
_________________
Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
Back to top
View user's profile Send private message Send e-mail 
jrb

Joined: 11 Dec 2007
Posts: 588
Location: Smithers, BC, Canada

PostPosted: Thu 12 Nov 2009, 11:37    Post subject:  

I have uploaded SFS_Linker-no_def-1.1.pet which does not have modified /usr/local/defaultprograms for people who wish to have SFS_Linking without changing the desktop icon or MIME-type behavior.
_________________
ChoicePup4.1.2 As You Like It. puppylinux.ca/members/choicepup/ (usr=puppy passwd=linux)
Back to top
View user's profile Send private message Send e-mail 
Display posts from previous:   Sort by:   
Page 3 of 3 [36 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
Your Ad Here
hot copy
[ Time: 0.3729s ][ Queries: 9 (0.0063s) ][ Debug on ]