change permissions on /dev/null

Declan Moriarty junk_mail at iol.ie
Tue Aug 16 07:33:11 PDT 2005


Recently, Somebody Somewhere wrote these words
> On Tue, 16 Aug 2005, Andrew Benton wrote:
> 
> > Simon Geard wrote:
> > > To correct it, remove /dev/null, and re-create it with:
> > >
> > > mknod -m 666 /dev/null c 1 3
> > >
> > > I.e a character device, major/minor pair of 1,3, and
> > > world-writable.
> > >
> >
> > If udev is running, won't /dev be a temporary filesystem that will
> > disappear when you reboot?
> 
>  Yes to this part
> 
> > It would be best to do this from your host system and chroot into
> > lfs without mounting /dev
> >
> 
>  /dev/null *should* be recreated in the temporary fs by the
>  25-lfs.rules file once udev is running.  Maybe Donal's 25-lfs.rules
>  is missing from /etc/udev/rules.d, or maybe he was looking at
>  /mnt/lfs/dev *from* another system.
> 

I think his /dev/null already exists as a file. Every script you look at
seems to use /dev/null for errors (to frustrate debugging, no doubt :)

If he tries 'less /dev/null' with his present setup, it may prove me
right.

-- 

	With best Regards,


	Declan Moriarty.



More information about the blfs-support mailing list