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

Re: file types



Andrew D Dixon wrote on Wed May 23, 2001 at 03:30:09PM:
> I've got a device file /dev/lcd of type "c":
> 
>     bash-2.03# ls -ld /dev/lcd
>     crw-r--r--   1 root     root      10, 156 Apr  8  2001 /dev/lcd
>     ^
> 
> This file controls the lcd on the front of my box.  I can print text to
> the lcd like so:
>     #echo "foo" >/dev/lcd

This file is a character device with major 10 and minor 156.

> 
> I just put Debian on this box and now that file looks like this:
> 
>     dixon@stiq:~$ ls -ld /dev/lcd
>     -rw-r--r--    1 root     root            3 Jan  1 06:45 /dev/lcd
>     ^
> Notice that there's no type and, you guessed it, the lcd doesn't work.
> 
> Any ideas how to change this file back to type "c"?

This file is just, well: a file.

You can remove this file read info mknod and
$ mknod --mode=644 /dev/lcd c 10 156

hth,
Matthias
-- 
Matthias Richter --+- stud. soz. & inf. -+-- http://www.uni-leipzig.de
-->    GPG Public Key: http://www.matthias-richter.de/gpg.ascii    <--

Attachment: pgp0lt_QPNqCh.pgp
Description: PGP signature


Reply to: