[Lguest] /dev/lguest

Bart Trojanowski bart at jukie.net
Sat Aug 23 23:34:15 EST 2008


Hi Andrey,

* Andrey Peredriy <Andrey.Peredriy at kvazar-micro.com> [080821 10:47]:
> root at tux:~# ls -l /dev/lguest
> ls: /dev/lguest: No such file or directory
>
> Please, mail me output from ls -l /dev/lguest

Here is what I have:

crw-rw---- 1 root root 10, 63 2008-08-23 09:24 /dev/lguest

But looking at the code ...

    static struct miscdevice lguest_dev = {
            .minor  = MISC_DYNAMIC_MINOR,
            .name   = "lguest",
            .fops   = &lguest_fops,
    };

... your minor number could be way off mine.

Just run this:

mknod /dev/lguest c \
    $(awk '/misc$/ { print $1 }' /proc/devices) \
    $(awk '/lguest$/ { print $1 }' /proc/misc)

-Bart

-- 
				WebSig: http://www.jukie.net/~bart/sig/



More information about the Lguest mailing list