niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
Proc directory on CompactFlash
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Murray R. Van Luyn
*nix forums beginner


Joined: 14 Mar 2006
Posts: 4

PostPosted: Sat Jul 01, 2006 6:41 pm    Post subject: Re: Proc directory on CompactFlash Reply with quote

Thanks Linards. That explains everything nicely.

Regards,
Murray R. Van Luyn.

"Linards Ticmanis" <ticmanis@gmx.de> wrote in message
news:44a5a339$0$29136$9b4e6d93@newsread4.arcor-online.net...
Quote:
Murray R. Van Luyn schrieb:

I want to build a small RTLinux system on a CompactFlash, but don't know
what to do with the /proc directory.

I think I'm supposed to put the /tmp directory on a TMPFS in ram to avoid
wearing out the flash device too quickly.

I've heard of the contents of /proc being referred to as 'virtual'. Does
that mean they are not actually stored on disk and can then be forgotten
about? Otherwise, if the contents of /proc really are files stored on a
disk, then do I do the same thing with the /proc directory as the /tmp
directory?


Only the /proc directory itself should exist (empty) on your root drive.
Then say "mount -t proc proc /proc" somewhere in your startup or put the
equivalent line in /etc/fstab if you have that.

The *contents* of /proc are created directly by the kernel whenever it's
accessed - reading a file in proc really connects your user space
program directly to some kernel function that produces its content
on-the-fly. Same for writing - your process gets connected to some
kernel function that takes the data from your application and does
something with it.

So except for the top /proc directory itself, nothing in /proc exists on
any disk.

--
Linards Ticmanis
Back to top
ticmanis@gmx.de
*nix forums beginner


Joined: 16 May 2006
Posts: 5

PostPosted: Fri Jun 30, 2006 10:18 pm    Post subject: Re: Proc directory on CompactFlash Reply with quote

Murray R. Van Luyn schrieb:

Quote:
I want to build a small RTLinux system on a CompactFlash, but don't know
what to do with the /proc directory.

I think I'm supposed to put the /tmp directory on a TMPFS in ram to avoid
wearing out the flash device too quickly.

I've heard of the contents of /proc being referred to as 'virtual'. Does
that mean they are not actually stored on disk and can then be forgotten
about? Otherwise, if the contents of /proc really are files stored on a
disk, then do I do the same thing with the /proc directory as the /tmp
directory?


Only the /proc directory itself should exist (empty) on your root drive.
Then say "mount -t proc proc /proc" somewhere in your startup or put the
equivalent line in /etc/fstab if you have that.

The *contents* of /proc are created directly by the kernel whenever it's
accessed - reading a file in proc really connects your user space
program directly to some kernel function that produces its content
on-the-fly. Same for writing - your process gets connected to some
kernel function that takes the data from your application and does
something with it.

So except for the top /proc directory itself, nothing in /proc exists on
any disk.

--
Linards Ticmanis
Back to top
Murray R. Van Luyn
*nix forums beginner


Joined: 14 Mar 2006
Posts: 4

PostPosted: Fri Jun 30, 2006 10:11 pm    Post subject: Proc directory on CompactFlash Reply with quote

Hi,

I want to build a small RTLinux system on a CompactFlash, but don't know
what to do with the /proc directory.

I think I'm supposed to put the /tmp directory on a TMPFS in ram to avoid
wearing out the flash device too quickly.

I've heard of the contents of /proc being referred to as 'virtual'. Does
that mean they are not actually stored on disk and can then be forgotten
about? Otherwise, if the contents of /proc really are files stored on a
disk, then do I do the same thing with the /proc directory as the /tmp
directory?

Regards,
Murray R. Van Luyn.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 4:40 am | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts change default install directory when using bdist_rpm krithika.sridhar@gmail.co python 1 Fri Jul 21, 2006 4:09 am
No new posts how to get perl to untar a tar.gz to a different directory Jack Perl 2 Fri Jul 21, 2006 12:40 am
No new posts /etc/postgresql/postgresql.env: No such file or directory Iuri Sampaio Debian 1 Wed Jul 19, 2006 8:40 pm
No new posts getting user's home directory on windows Sreeram Kandallu python 0 Tue Jul 18, 2006 3:33 pm
No new posts Apache on Windows with Active Directory Authentication Alvin Wong Apache 1 Tue Jul 18, 2006 7:05 am

Buy Anything On eBay | Internet Advertising | Personal Loans | Reptile Tank | Debt Settlement
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1913s ][ Queries: 20 (0.1093s) ][ GZIP on - Debug on ]