change permissions on /dev/null

Ken Moffat ken at
Tue Aug 16 05:49:03 PDT 2005

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.

 das eine Mal als Tragödie, das andere Mal als Farce

More information about the blfs-support mailing list