Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: vi: /dev/pts/2: No such file or directory



2009/8/9 Thomas Klausner <wiz%netbsd.org@localhost>:
> On Sun, Aug 09, 2009 at 10:35:56AM +0100, Iain Hibbert wrote:
>> do you have ptyfs in /etc/fstab or otherwise mounted?
>>
>> % mount
>> /dev/wd0a on / type ffs (local)
>> /dev/wd0e on /var type ffs (log, local)
>> /dev/wd0f on /home type ffs (local)
>> kernfs on /kern type kernfs (local)
>> ptyfs on /dev/pts type ptyfs (local)
>> /var/cvs/NetBSD-current/src on /usr/src type umap (nosuid, nodev, local)
>> /var/cvs/NetBSD-current/xsrc on /usr/xsrc type umap (nosuid, nodev, local)
>> /var/cvs/pkgsrc-current on /usr/pkgsrc type umap (nosuid, nodev, local)
>> /var/cvs/pkgsrc-wip on /usr/pkgsrc/wip type null (nosuid, nodev, local)
>>
>> why vi wants ptyfs I don't know, but /dev/pts/2 is stderr, AFAIK
>
> # mount | grep pty
> ptyfs on /dev/pts type ptyfs (local)
>
> Seems so, though I don't remember enabling it.
>

ptyfs is enabled by default since 5.0
(and /dev/pts is created automatically by MAKEDEV)

> # ll /dev/pts
> total 37
> dr-xr-xr-x Â1 root Âwheel  Â512 Jan Â1 Â1970 .
> drwxr-xr-x Â7 root Âwheel Â35840 Jul 14 10:45 ..
> crw------- Â1 wiz  tty   5, 0 Aug Â9 11:36 0
> crw--w---- Â1 wiz  tty   5, 1 Aug Â9 11:36 1
> crw--w---- Â1 wiz  tty   5, 2 Aug Â9 11:35 2
> crw------- Â1 wiz  tty   5, 3 Aug Â9 11:36 3
> crw------- Â1 wiz  tty   5, 4 Aug Â9 11:35 4
> crw------- Â1 wiz  tty   5, 5 Aug Â9 11:36 5
> crw------- Â1 wiz  tty   5, 6 Aug Â9 11:36 6
> crw------- Â1 wiz  tty   5, 7 Aug Â9 11:36 7
>
> ÂThomas
>


Home | Main Index | Thread Index | Old Index