/dev/null

Seth W. Klein sklein at mint.net
Mon Sep 4 16:08:22 PDT 2000


Erika Pacholleck wrote:

> ( Sam, 02 Sep 2000 ) Kurt V. Hindenburg <-- :
> > Gerard Beekmans [gerard at linuxfromscratch.org] wrote:
> > > On Fri, 01 Sep 2000, you wrote:
> > > > After installing the /dev (makedev), when I try to compile
> > > > gcc I get errors about /dev/null....did I miss something or
> > > > is this still a problem?
> > > > ../gcc-2.95.2/config.guess: /dev/null: Permission denied
> > > > .../gcc-2.95.2/config.guess: /dev/null: Permission denied
> > > 
> > > There are often problems with such files. Enter chroot and check permissions 
> > > on /dev/null - is it set to mode 666?
> > 
> > bash-2.04# ls -l /dev/null    
> > crw-rw-rw-   1 root     sys        1,   3 Aug 31 15:49 /dev/null
> > Normal system (lfs)
> > ls -l /dev/null
> > crw-rw-rw-   1 root     root       1,   3 May  5  1998 /dev/null
> 
> I did the following
> - opened original system fstab
> - deleted line with partition where lfs system is on
> - mounted lfs system with console command (alias mylfs="mount /dev/xx /mnt/lfs")
> - /dev/null worked
> 
> Erika

Both these problems are expected. Remember, the user mount flag implies 
noexec, nosuid, and nodev. If you're mounting your LFS partition with a 
line in /etc/fstab like:

/dev/hda9 
/mnt/lfs 
ext2 
user 
0 0

You'll have to change it to:

/dev/hda9 
/mnt/lfs 
ext2 
defaults 
0 0

See `man mount' for details.

cheers,
sklein
sklein at mint.net                 http://members.mint.net/sklein/






More information about the lfs-dev mailing list