[OpenIndiana-discuss] Recreate /dev/null
Alexander Eremin
alexander.r.eremin at gmail.com
Thu Apr 25 09:00:52 UTC 2013
mknod /devices/pseudo/mm at 0:null c 13 2
chown root:sys /devices/pseudo/mm at 0:null
chmod 666 /devices/pseudo/mm at 0:null
cd /dev
ln -s ../devices/pseudo/mm at 0:null null
Alexander
On 25.04.2013, at 12:51, Richard Jones <openindiana-discuss at jonze.com> wrote:
> Hi,
>
> I've overwritten /dev/null and can't seem to recreate it, can anyone
> help?
>
> Booting to milestone "milestone/single-user:default".
> hostname: wilson
> Requesting System Maintenance Mode
> SINGLE USER MODE
>
> Enter username for system maintenance (control-d to bypass): root
> Enter root password (control-d to bypass):
> single-user privileges assigned too root on /dev/console.
> Entering System Maintenance Mode
>
> Apr 25:1043:39 su: 'root' succeeded for root on /dev/console
> # devlinks
> ^C # times out
> # devfsadm
> devfsadm: cannot create link: /dev/null -> ../devices/pseudo/mm at 0:null.
> max attempts exceeded
> # ls /dev/null
> ls: cannot access /dev/null: No suh file or directory
> # ln -s /devices/pseudo/mm at null /dev/null
> ln: creating symbolic link `/dev/null': No such file or directory.
> #
>
> Currently a *lot* of system services won't run as a result of this. This
> box is a fairly recent install so it's not too bad an option to
> reinstall though it is work I'd rather avoid if possible.
>
> Thanks,
>
> Richard
>
> --
> Richard Jones +44 7843 588 599
> "Quod gratis asseritur, gratis negatur"
> Privacy notice: http://www.jonze.com/privacy.html
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the OpenIndiana-discuss
mailing list