usr_more.sfs - strange things

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

usr_more.sfs - strange things

#1 Post by MU »

Today I made a big usr_more.sfs with KDE, JAVA and more.

I encountered some strange things.

For example, I wanted to add /usr/lib/win32 (39 MB of Video-Codecs).
So I added them.
Then I deleted /usr/lib/win32 and rebooted Puppy with the new usr_more.sfs.

Now /usr/lib/win32 should be visible again, although I had deleted it before (as this folder now is in usr_more.sfs).
But no, not visible. But in .usr_more/lib/win32 it is visible.
Strange.

So I tried this:
I copied .usr_more/lib/win32 to /usr/lib/win32
Then I renamed /usr/lib/win32 to /usr/lib/win32---

Rebooted.
Et voila:
/usr/lib/win32
/usr/lib/win32---

Now I could delete
/usr/lib/win32---

This is strange, no?
Same with /usr/local/jre-xxx

Mark

PeterSieg
Posts: 363
Joined: Wed 04 May 2005, 16:06
Location: Germany, 37603
Contact:

Yes. it is either unionfs or our mind that stops working...

#2 Post by PeterSieg »

Mark, that is app. the same as I described it with /usr/lib/qt and the renaming
thing...

PS
Have fun :)

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

Maybe Lobster may help us, this seems to be a somewhat spiritual Behaviour :mrgreen:

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

Mind Power

#4 Post by Lobster »

Tricky! mmm . . .

You could set your computer up as a shrine (here is mine)
http://www.zen45800.zen.co.uk/shrine/

Or call on the powerlessness (as used in Taoism) of Cecil
(I have released Cecil as an Open Source Ultimate Deity)
http://peace.wikicities.com/wiki/Cecil

Most of this is covered in this empowerment which I have prepared
http://peace.wikicities.com/wiki/Empowerments

You might use this specially modified Mantra:
OM MU Ya Ha HUM

Traditionally done in bouts of 108 recitations.


OM - Sound of the Cosmic Hard Drive
MU - One of the root occult Purelands (Atlantis, Mu, Lemuria and Hyperboria) Represents negative existence as in Zen Master Dogens famous response to the question "Does a Puppy have Enlightened Mind?" - He replied "Mu" which means "Not Much" or better still "Yes none" So Mu can be thought of that which exists through absence. Much like the sacredness of the "Moo" in India.
Ya ha - The cosmic jester. Similar to Yahoo - which is used by dervishes and usually spelt Ya Hu.
HUM - A kind of reverse MU in which Emptiness finds Form

OM MU Ya Ha HUM


Hope that helps :D
Last edited by Lobster on Fri 11 Nov 2005, 16:58, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

Oh, funny interpretation of my initials :lol:

Thanks Lobster. I will go to bed now and dream of Atlantis :)

Greets, Mark

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#6 Post by Nathan F »

It's a unionfs quirk. Delete a directory from /usr and you'll have a heck of a time getting it back. I'll sometimes just rename it before deleting. In the case of something you installed yourself, delete it from /root/.usr rather than from /usr (I know they end up in the same location, but........).

Good luck,
Nathan

User avatar
aahhaaa
Posts: 341
Joined: Fri 07 Oct 2005, 03:21
Location: Lower Michigan, North America

#7 Post by aahhaaa »

thanks Nathan- I almost understand... 2 Qs:
is one File Manager or another better for detecting/dealing with these quirks?
or are you guys all working at the command prompt?

is this a Puppy thing or a general Linux thing?

(I ran into something simliarly quirky in updating a BIOS in that other OS. Gateway called for a 'fresh IBM-formatted diskette' for the install- disks formatted by Winder$ OSs wouldn't work. Try finding one of those these days! :wink: )

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

I use the XFE-filemanager: http://www.murga.org/%7Epuppy/viewtopic ... hlight=xfe

This is Puppy-specific.
Puppy uses Unionfs to put most of the basic system in a single file (usr_cram.sfs).
In our case this concerns usr_more.sfs, that uses the same technique for additional software, so that you can keep pup001 free for your own programs.

My "mega-pup" contains 677 MB of programs in a 215 MB-file, and needs just ~56 MB of your pup001 additionally.
So you still have lots of space left for personal documents or other programs.

Mark

User avatar
aahhaaa
Posts: 341
Joined: Fri 07 Oct 2005, 03:21
Location: Lower Michigan, North America

#9 Post by aahhaaa »

My "mega-pup" contains 677 MB of programs in a 215 MB-file, and needs just ~56 MB of your pup001

I think you get the TARDIS award for compression! :D

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#10 Post by Nathan F »

Your choice of filemanagers is not important. In order to see EXACTLY what's in usr_cram or usr_more, open the filer and go all of the way up. Make sure that it's set to show hidden files. There will be a directory .usr_cram which is all of the contents of usr_cram.fs, while usr_more.fs will be in .usr_more.

What happens is that when Puppy boots these get merged into one filesystem along with anything in /root/.usr, making up the final /usr directory. The system needs some way to sort all of it out, so anything in /root/.usr will take priority over the contents of the others. If you delete something out of /usr that originated in usr_cram.fs there will be a file in /root/.usr corresponding to it telling the system to ignore it. For instance if you delete /usr/sbin/pup-get there will be a file /root/.usr/sbin/.wh.pup-get. In order to undo this all you have to do is delete /root/.usr/sbin/.wh.pup-get. After a reboot the file will show back up in /usr. It is also possible to rename or overwrite a file in /usr because of this.

Most of the time this is a good thing and won't be noticed, but in this case if you don't know what's going on it can get really confusing.

Nathan

User avatar
bombayrockers
Posts: 427
Joined: Sat 24 Sep 2005, 16:47
Location: Mumbai, India
Contact:

the error lies in unionfs

#11 Post by bombayrockers »

it not just usr_more & usr_devx that are clashing. the error lies in the unionfs. i was tyring to compile a custom kernel for myself usr_devx contains /usr/src/include/asm linked to /usr/src/include/asm-i386. when running a patch command i got a segmentation fault and the asm folder went empty just like /usr/lib/qt in the usr_more usr_devx clash

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#12 Post by MU »

aahhaaa
The credits go to Barry K. :)
I always thought about trying to experiment with such a concept, but did not have enough knowledge.
So I was quite glad to see it already realized in Puppy.

You can create your own usr_more.sfs like this:
I use an external partition with lots of space.
I copy usr_more.sfs there (/mnt/hda8/megapup/)
I create a hidden folder there:
mkdir /mnt/hda8/megapup/.usr

Now mount the existing file:
mkdir /mnt/loop2
losetup /dev/loop2 /mnt/hda8/megapup/usr_more.sfs
mount -r /dev/loop2 /mnt/loop2

Now you can copy all files from /mnt/loop2/ to /mnt/hda8/megapup/.usr/ wih a filemanager (set hidden files to visible!).

There you can delete or add files.

Now we dont need the mounted file any more and delete it:
umount /mnt/loop2
losetup -d /dev/loop2
rm -f /mnt/hda8/megapup/usr_more.sfs
---
When you added all your files to the new folder, create the new usr_more.sfs

cd /mnt/hda8/megapup
mksquashfs .usr usr_more.sfs

Thats all :-)

Mark

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#13 Post by BarryK »

Yes, unionfs can get confused.
I will upgrade to latest version of unionfs for 1.0.7.

Post Reply