From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by ozlabs.org (Postfix) with ESMTP id CE1A0DDEE4 for ; Fri, 4 Jan 2008 04:27:26 +1100 (EST) Received: by an-out-0708.google.com with SMTP id c37so1143434anc.78 for ; Thu, 03 Jan 2008 09:27:25 -0800 (PST) Message-ID: Date: Thu, 3 Jan 2008 10:27:24 -0700 From: "Grant Likely" Sender: glikely@secretlab.ca To: mojtaba Subject: Re: File system problem In-Reply-To: <004801c84e21$59312760$0b937620$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <169c03cb0801021932s6671526dve15d1948da52ae30@mail.gmail.com> <004801c84e21$59312760$0b937620$@com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 1/3/08, mojtaba wrote: > Hi, > Thank you very much for your answers. > > But I have both console and null in /dev. > > -rw-rw-rw- 1 mojtaba mojtaba 0 2007-12-26 15:50 console > -rw-rw-rw- 1 mojtaba mojtaba 0 2007-12-26 15:50 null > > They have been created by buildroot. Do I need to create them manually? > Actually the size of both of them is 0 and both are empty files. Is that a > problem? They should look like this: crw------- 1 root root 5, 1 2008-01-03 07:43 /dev/console crw-rw-rw- 1 root root 1, 3 2007-10-08 18:39 /dev/null They are not regular files. They are device files created with the 'mknod' command. Instead of a size, these files have 2 number; the device major and minor numbers. /dev/console uses major 5, minor 1. /dev/null is major 1 minor 3. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195