Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/lp0 missing - how create a device?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 342
Location: Berlin

PostPosted: Sun Jun 16, 2002 3:39 pm    Post subject: /dev/lp0 missing - how create a device? Reply with quote

Hi,
I am trying to get my printer run with cups and I realize that /dev/lp0 is missing. How can I create /dev/lp0? My kernel was compiled with parallel support...
Thanks,
Felix
Back to top
View user's profile Send private message
Saphlyx
n00b
n00b


Joined: 07 Jun 2002
Posts: 7
Location: Edmonton, Alberta, Canada

PostPosted: Sun Jun 16, 2002 6:51 pm    Post subject: mknod Reply with quote

Hi.

The way to do this is to use the 'mknod' command. This command creates entries the /dev file system. Each file has a major code, minor code, and type. You can learn about the command my doing:

$ man mknod

You can learn about which devices are given which major and minor codes by looking in the '/usr/src/linux/Documentation/devices.txt' file.

So to create /dev/lp0 you can do this:

$ mknod /dev/lp0 c 6 0

You need to be root to do this of course.

Steve
Back to top
View user's profile Send private message
Scrapz
n00b
n00b


Joined: 06 Jun 2002
Posts: 21

PostPosted: Tue Jun 18, 2002 5:15 pm    Post subject: Reply with quote

You probably cant use mknod with devfs... if you have devfs enabled (default) then edit /etc/devfsd.conf and there should be a line or two to uncomment. Its pretty well commented, so it should be easy. Restart, and you're done!

TTFN,
Scrapz :wink:
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Tue Jun 18, 2002 6:06 pm    Post subject: Reply with quote

devfs should automatically create an LP0. (Right, and don't use mknod.) In addition to parallel support, you have to enable "Parallel printer support" under "Character devices" in your kernel config.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Jun 20, 2002 11:06 am    Post subject: Reply with quote

Hi friends,

thanks for all these information. However, I still didn't succeed to get my desired /dev/lp0. :(

If have compiled a new kernel with parallel support and parallal printer support (as mentioned above). Then I checked /etc/devfsd.conf - and here seems to be missing something: I can't find any line or section dealing with /dev/lp0. So I really do not know what to uncommend... The man pages are too detailed for me.
Isn't there a standard devfsd.conf where parallel support is activated? Do you have an example?

Thank You
Felix
Back to top
sulu
Guru
Guru


Joined: 21 May 2002
Posts: 399
Location: Dornbirn/Austria

PostPosted: Thu Jun 20, 2002 2:43 pm    Post subject: Reply with quote

Hmmmm

Thats strange.

I had the same problem but compiling the kernel with parallel-port-support and parallel-printer-support and something like "pc-style hardware" did the job.

No change in devfs.conf was required.

Are sure that you're using the new kernel?

Did you check the kernel.log ?
Back to top
View user's profile Send private message
f.kater
Guru
Guru


Joined: 23 May 2002
Posts: 342
Location: Berlin

PostPosted: Thu Jun 20, 2002 7:25 pm    Post subject: Reply with quote

Finally .... :D

Thanks sulu for giving me at least the hint that it *should* work that way. So I started to concider somthing non-gentoo. After I had switched my BIOS parallel port from ECC to NORMAL there was a /dev/lp0 automatically. I wanted to tell the comunity that this problem may be solved by changing BIOS options.

Thanks
Felix
Back to top
View user's profile Send private message
user124
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2002
Posts: 86

PostPosted: Sat Jun 22, 2002 12:34 am    Post subject: Reply with quote

thanks to all..

forum search is cool :D

user124
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum