[pocket-linux] trouble understanding 8.3.2 ...

David Horton dhorton at megsinet.net
Wed Nov 19 16:47:51 CST 2003


Rainer wrote:
> hello,
> 
> things have been going pretty smoothly since i ironed out that 
> 'ramdisk=4096'  but i'm having trouble comprehending the instructions in
> 8.3.2! the last command creates /dev/null in the usual way - i get 
> that.  i fail to fathom the 4 previous 'ln -s ...' commands. it looks 
> like i'm creating a soft link from my build system /proc/self/fd  > 
> /staging/* ???  is all that stuff i'm supposed to be reading coming 
> back to haunt me? thanks.
> 

Yes it is a little wierd because of all the linking, but I swear I 
didn't make it confusing on purpose.  :^) If you look in devices.txt 
under the kernel source code Documentation directory it says...

These links should exist on all systems:
 

/dev/fd         /proc/self/fd   symbolic        File descriptors
/dev/stdin      fd/0            symbolic        stdin file descriptor
/dev/stdout     fd/1            symbolic        stdout file descriptor
/dev/stderr     fd/2            symbolic        stderr file descriptor

That's where the four links come in.  I think the confusion comes in 
when you think about where the links are pointing.  For example /dev/fd 
points to /proc/self/fd and it's true that it refers to the /proc 
directory on the development system.  But after you boot from the 
diskettes the development system is no longer there, so /proc/self/fd 
now points to /proc on the pocket linux system.

Hope that makes sense.

Dave





More information about the Pocket-Linux mailing list