(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 01 Oct 2020, 04:54
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Preventing NFS stale file handle errors
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
snatches

Joined: 24 Feb 2009
Posts: 2

PostPosted: Tue 24 Feb 2009, 17:46    Post subject:  Preventing NFS stale file handle errors  

Hello all. I've been getting intimate with Puppy to see if I can use it for a kiosk-type project that I'm working on. It's basically a digital signage app that does not need to accept any user input, nor save any files from the user. All I'm planning for this is for puppy to boot, a web broswer to launch and display a web page fullscreen.

Through lots of searching I've noticed that many people have been able to accomplish this type of thing, so I won't bore you guys with requests for "how-tos" on things that I can find on my own.

So far, I've been able to get the basic features working for what I want (frugal install), my big concern is protecting the device when it encounters Power Fails, or more likely, customers just punching the power button to turn it off at night as it won't have a keyboard/mouse attached to it.

I have tested many power fails on my MicroClient Jr, as well as hitting the power button while I'm right in the middle of executing a web browser command. For the most part, my device boots back up without much trouble, but without fail, if I kill this thing 5-7 times I will eventually encounter the dreaded "NFS stale file handle" either during boot, or when trying to access files in the filesystem, preventing application launch.

So here's why I posted in this sub-forum. Eventhough i've installed Puppy 4.1 on a CF drive, I was wondering if there was a way I could write-protect the drive to hopefully avoid these errors. This way I don't have to worry about a file getting corrupted if there's no way to write to it. All I need for my application to function is the web browser to use RAM to store all of it's stuff, and I would turn cache space down to 0.

The one caveat I have is that when I deliver one of these devices to a client, they will have to enter their WiFi settings to be saved going forward.

That being said, does anyone know how I could possibly disable all write activity to avoid this NFS stale file handle error in this scenario? Would a full install as opposed to a frugal one be a better approach?
Back to top
View user's profile Send private message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Tue 08 Sep 2009, 05:01    Post subject:  

Hi Snatches

Theres some posts about this at

http://www.murga-linux.com/puppy/viewtopic.php?p=339241

and

http://208.109.22.214/puppy/viewtopic.php?t=36150

No definitive answer as yet though.

I would be interested in your kiosk puppy (Im working on some similar things myself). Keep us informed.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
edoc


Joined: 07 Aug 2005
Posts: 4722
Location: Southeast Georgia, USA

PostPosted: Sat 03 Jul 2010, 12:51    Post subject:  

I just got a stale file handle error on my backup HDD (external USB).

I presume this happened because the USB connection was a little loose as it was running.

I have looked around and have not found a simple method to clear it.

It is in a subdirectory (1 level down) next to a good directory.

I just tried this:

Quote:
# e2fsck -n -v sda1
e2fsck 1.41.10 (10-Feb-2009)
e2fsck: No such file or directory while trying to open sda1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
TahrPup64 & Lighthouse64-b602 & JL64-603
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4722
Location: Southeast Georgia, USA

PostPosted: Sat 03 Jul 2010, 13:51    Post subject:  

I tried to apply the suggestion from here:
http://www.linuxquestions.org/questions/linux-software-2/cant-get-rid-of-stale-nfs-file-handle-684475/

But no joy ...

Quote:
Even though the first time i did fsck.ext3 on the home partition.... it said it was clean but then when i tried with "force"... it found a bunch of "problems". after fsck finished (and i had to press "y" <yes> a few hundred times... it got rid (deleted the weired directories with: "Stale NFS file handle")

umount /dev/hde
fsck.ext -f /dev/hde


Quote:
# cd /mnt
# ls
cdrom dvd floppy hdc msdos sda1 sdc1 swap
data flash hda1 home ram1 sdb1 sdd1 zip
# cd sda1
# ls
17jun09 17june10 3july10 4feb10 6jan10 lost+found mdcpc ocx-usb-misc
# cd 3july10
# ls
ls: cannot access Mozilla_Profiles: Stale NFS file handle
Mozilla_Profiles picsmisc
# umount /mnt/sda1/3july10
umount: can't umount /mnt/sda1/3july10: Invalid argument
#

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
TahrPup64 & Lighthouse64-b602 & JL64-603
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0527s ][ Queries: 11 (0.0234s) ][ GZIP on ]