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 31 Oct 2014, 00:28
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
/root/.usr/share/pixmaps corrupts puppy
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 09 Oct 2005, 07:38    Post_subject:  /root/.usr/share/pixmaps corrupts puppy  

Puppy 1.0.5

I you create this folder manually or by extracting a .tgz, the loop-device gets broken.

When you reboot, there appear strange numbers when trying to unmount /dev/loop1.

After reboot, window-managers do not work.

If you remove this folder and reboot, everything is ok again.

Mark
Back to top
View user's profile Send_private_message Visit_website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sun 09 Oct 2005, 12:20    Post_subject:  

Interesting.

My question is: Why would someone explicitly extract to /root/.usr/... ?

As I've said in a different thread: /root/.usr and /root/.etc are just implementation details that shouldn't be exposed in scripts.

As I see it, scripts and instalations should always write to /usr or /etc.

It is not a good practice to depend on implementation details. When the implementation changes, it will break everything that depends on them.

"Code to the interface" is the best practice even if you know the implementation details.

The abstraction in this case is /usr and /etc are writable, however it was implemented.
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 09 Oct 2005, 13:04    Post_subject:  

Yes, but it happens too, when extracting an archive that contains pictures in /usr/share/pixmaps.

This is, how I found the bug.

I posted the example of
mkdir /root/.usr/share/pixmaps to give you a quick way to reproduce the error.

You also may create a dotpup, that extracts files to /usr/share/pixmaps, I deleted the one that caused me my trouble.

Mark
Back to top
View user's profile Send_private_message Visit_website 
bombayrockers


Joined: 24 Sep 2005
Posts: 427
Location: Mumbai, India

PostPosted: Wed 12 Oct 2005, 10:14    Post_subject: Solution  

Yes i have also been plagued by this problem. it occurs because
/root/.usr/share/pixmaps is translated as /usr/share/pixmaps which is a sim link to /usr/local/lib/X11/pixmaps when files are extracted upon /usr/share/pixmaps this link gets borken and hence the error

so extract you pixmaps to /root/.usr/local/lib/X11/pixmaps this will work.
Back to top
View user's profile Send_private_message YIM 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7060
Location: Perth, Western Australia

PostPosted: Wed 12 Oct 2005, 19:58    Post_subject:  

You should never write directly to /root/.usr/, at least not after it is mounted on /usr, as that breaks unionfs. Unless you reboot.
Back to top
View user's profile Send_private_message Visit_website 
guest
Guest


PostPosted: Thu 13 Oct 2005, 09:07    Post_subject: sorry its a cut & paste mistake  

sorry i just blatantly cut pasted /root/.usr

rather it should be root/usr/local/lib/X11/pixmaps
Back to top
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
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.0547s ][ Queries: 11 (0.0118s) ][ GZIP on ]