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 Fri 25 Jul 2014, 03:09
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Mount SFS files using unionfs/aufs?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Sun 12 Jul 2009, 08:27    Post_subject:  Mount SFS files using unionfs/aufs?  

I wonder if SFS files can be "loaded" using unionfs/aufs for full install users instead of copying files to system. That way they would be usable as in frugal install. I read something about adding branches and merging directories but I can't really figure this out. Any thoughts? If this is possible I could make script for "loading" SFS's, now there's task for some advanced users here Wink
Can't be hard...
Question Question Question Question Question

_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Wed 29 Jul 2009, 13:35    Post_subject:  

Come on ppl, any clues? rxd from #puppylinux showed me examples of how easy is to mount modules with aufs on slitaz and i guess it can be used with unionfs, but commands i found don't really work, I guess that's because of how puppy's system is layered. Does anyone know if Barry is planing to use aufs in next puppy releases?
_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Wed 29 Jul 2009, 17:03    Post_subject:  

The only thing I'm aware of is Pet_Maker by trio. I haven't tried it but it probably copies files. Says you can uninstall with PETget if I read correctly. http://murga-linux.com/puppy/viewtopic.php?p=299118&sid=9d3e6cea69f59e09cebd679bd61304ac
Part of Pet_Maker-1.7-3 is SFS Installer http://www.murga-linux.com/puppy/viewtopic.php?t=44765
I don't know about aufs...
-TazOC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send_private_message Visit_website 
Bruce B


Joined: 18 May 2005
Posts: 11080
Location: The Peoples Republic of California

PostPosted: Wed 29 Jul 2009, 22:07    Post_subject: Re: Mount SFS files using unionfs/aufs?  

dejan555 wrote:
I wonder if SFS files can be "loaded" using unionfs/aufs for full install users


I think so. Here's some reference for you.
http://www.tldp.org/HOWTO/SquashFS-HOWTO/

Although, I question the need for a unionfs in many cases. No need for a unionfs in the examples below. And they mount seamlessly.

/dev/loop6 on /opt/jre type squashfs (ro,noatime)
/dev/loop7 on /usr/lib/seamonkey-1.1.16 type squashfs (ro,noatime)
/dev/loop8 on /opt/opera type squashfs (ro,noatime)
/dev/loop9 on /opt/office type squashfs (ro,noatime)


Bruce

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Thu 30 Jul 2009, 01:09    Post_subject:  

ok yes you can mount office on /opt cause your sfs is made that way, but my sfs already has /opt/openoffice in filesystem so if I did that I would have /opt/office/opt/openoffice right? Every SFS is made with full paths. Thanks for links, I did try to mount sfs in /mnt then merge dirs with
mount -t unionfs -o dirs=/mnt/office=rw unionfs /
but it doesn't seem to work even that command is documented everywhere.
tazoc, thanks for links too I know about SFS installer I also made one Very Happy I just wondered if there's a way not to copy everything from SFS to system since unionfs has option to mount filesystems together so you can use SFS as module on full install too, uncompressed.

_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
trio


Joined: 21 Dec 2008
Posts: 1788
Location: अनुमोदना

PostPosted: Thu 30 Jul 2009, 01:30    Post_subject:  

dejan555 wrote:
I just wondered if there's a way not to copy everything from SFS to system since unionfs has option to mount filesystems together so you can use SFS as module on full install too, uncompressed.


Hmm Interresting,

1. I think a script not to install files from sfs to existing files is achievable (similar to the way I listed installed sfs as pet in sfs installer, only to compare the list to the existing ones and not to copy them) ...

but

2. is a mounted sfs usable, is questionable though, because it won't be in main filesystem, how the app will look for such needed shared libs, etc. say the mounted sfs app needs /usr/share/libs/xxx (included in the sfs), then it looks to /usr/share/libs and it's not there (because it's in the mounted sfs not in the main filesystem)

What you can do maybe, using my point no 1 , so that the existing files won't be replaced, install the sfs --> creating a list only of the installed files, then it can be removed later without deleting the shared files, as it was not listed as installed

If it can only be merged to unionfs then you're right...but I don't know if it is possible in full install....

Hope that helps, i am a novice in coding Very Happy

_________________
PET Maker|WbarCC|My Website
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Thu 30 Jul 2009, 01:54    Post_subject:  

Well my point is exactly that it should be merged into main filesystem:

mount -t squashfs OpenOffice-3.0.sfs /mnt/office -o loop

^^^First mount sfs to /mnt/office

mount -t unionfs -o dirs=/mnt/office=rw unionfs /

^^^merge contents of /mnt/office to / and make it pseudo read-write

_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
trio


Joined: 21 Dec 2008
Posts: 1788
Location: अनुमोदना

PostPosted: Thu 30 Jul 2009, 02:09    Post_subject:  

dejan,

sorry for my ignorance Laughing as i said, i'm novice

just to give alternative to you -- install but you can remove installed files only

_________________
PET Maker|WbarCC|My Website
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Thu 30 Jul 2009, 02:48    Post_subject:  

I'm not expert either, and yes your SFS installer does the work good if it uninstalls only new files, sounds good.
_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
disciple

Joined: 20 May 2006
Posts: 6425
Location: Auckland, New Zealand

PostPosted: Thu 30 Jul 2009, 03:04    Post_subject:  

Of course it isn't really a solution, but if most of the files in an sfs are in folders that aren't a normal part of your filesystem e.g. /opt/openoffice AND you don't need these folders to be writeable, you can always just mount the sfs and create symlinks where these folders should be.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Thu 30 Jul 2009, 03:45    Post_subject:  

OK, thanks guys, there are more SFS installers and tuts how to "install" SFS manually, but I'm pushing this cause I see that it's possible to do in linux and would make system ultra-modular and easy even for frugal installs, you could mount sfs with few commands without rebooting system and without puting sfs to /mnt/home or renaming to your puppy version.
But maybe it needs some tweaking for it to work in init, I guess only Barry would know if this can be done with unionfs and if it can be tweaked.

_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
rexterd

Joined: 01 Oct 2008
Posts: 12

PostPosted: Mon 10 Aug 2009, 09:14    Post_subject:  

I tried using the latest Fatdog with aufs as the root filesystem, it works Very Happy ...
modified init script inside initrd.gz

root should be aufs at least one writable branch on top and one read only branch for pup_112.sfs

mount -t squashfs /mnt/sda3/wine.sfs /wine
mount -o remount,append:/wine /

than should layer your wine squashfs file, the slash at the end is your root
directory

mount -o remount,del:/wine /

that should detach the wine squashfs file from your root
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Mon 10 Aug 2009, 10:18    Post_subject:  

OK, but current puppy systems use unionfs, I don't wanna use some old release just because it has aufs. Smile
_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
rexterd

Joined: 01 Oct 2008
Posts: 12

PostPosted: Mon 10 Aug 2009, 10:39    Post_subject:  

deejan555 its me rxd Smile

Latest Fatdog-logrow has aufs squashfs sqlzma unsqlzma so that qualifies to try aufs as root filesystem (2.6.29 kernel with aufs2)
Back to top
View user's profile Send_private_message 
dejan555


Joined: 30 Nov 2008
Posts: 2646
Location: Montenegro

PostPosted: Mon 10 Aug 2009, 14:38    Post_subject:  

Yeah I figured out it's you Smile OK, thanks, I guess it will be usefull in new releases that have newer kernel with that support.
_________________


Back to top
View user's profile Send_private_message Visit_website MSNM 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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