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 Sun 21 Oct 2018, 16:55
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Accidental file deletion and recovery in Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
snayak

Joined: 14 Sep 2011
Posts: 417

PostPosted: Sun 10 Jun 2018, 22:59    Post subject:  Accidental file deletion and recovery in Puppy  

Dear All,

Today I accidentally deleted /usr/bin/as.
This file comes inside devx.sfs.
File devx.sfs is mounted as read-only.
That means file /usr/bin/as must be present inside devx.sfs.
Puppy linux uses unionfs to mount sfs files layer wise.
Topmost layer is savefile layer which is writable.
That means unionfs hides this file from being shown up.
Reasoning all these I ran the command
Code:
find / -name .wh*

I saw
Code:
/initrd/pup_rw/usr/bin/.wh.as

[wh meand whiteout]
I was tempted to delete this file!
I was hoping to get back my /usr/bin/as.
I ran
Code:
rm /initrd/pup_rw/usr/bin/.wh.as

and now I see
Code:
~ # ls -l /usr/bin/as
-rwxr-xr-x 1 root root 330772 Aug  2  2013 /usr/bin/as


Kindly correct my understanding if mistaken,
and suggest if there is a better way.

Sincerely,
Srinivas Nayak

_________________
[Precise 571 on AMD Athlon XP 2000+ with 512MB RAM]
[Fatdog 720 on Intel Pentium B960 with 4GB RAM]

http://srinivas-nayak.blogspot.com/
Back to top
View user's profile Send private message 
foxpup


Joined: 29 Jul 2016
Posts: 571
Location: europa near northsea

PostPosted: Mon 11 Jun 2018, 10:35    Post subject:  

Did you delete the .wh.as while still running the Puppy with the pupsave containing the .wh.as?
You should open the pupsave from another Puppy session not using this pupsave, e.g. started with pfix=ram
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3482
Location: holland

PostPosted: Mon 11 Jun 2018, 12:07    Post subject:  

snayak wrote:
I ran
Code:
rm /initrd/pup_rw/usr/bin/.wh.as

and now I see
Code:
~ # ls -l /usr/bin/as
-rwxr-xr-x 1 root root 330772 Aug 2 2013 /usr/bin/as

Kindly correct my understanding if mistaken,
and suggest if there is a better way.


I think you did exactly the right thing (but anyone correct me if I'm wrong), the .wh file prevents /usr/bin/as from being present in the filesystem, removing the .wh simply brings the it back.

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
snayak

Joined: 14 Sep 2011
Posts: 417

PostPosted: Sat 16 Jun 2018, 06:56    Post subject:  

Thanks guys.
_________________
[Precise 571 on AMD Athlon XP 2000+ with 512MB RAM]
[Fatdog 720 on Intel Pentium B960 with 4GB RAM]

http://srinivas-nayak.blogspot.com/
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 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.0362s ][ Queries: 13 (0.0077s) ][ GZIP on ]