View previous topic :: View next topic |
Author |
Message |
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Sun Jun 16, 2002 3:39 pm Post subject: /dev/lp0 missing - how create a device? |
|
|
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 |
|
|
Saphlyx n00b
Joined: 07 Jun 2002 Posts: 7 Location: Edmonton, Alberta, Canada
|
Posted: Sun Jun 16, 2002 6:51 pm Post subject: mknod |
|
|
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 |
|
|
Scrapz n00b
Joined: 06 Jun 2002 Posts: 21
|
Posted: Tue Jun 18, 2002 5:15 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Tue Jun 18, 2002 6:06 pm Post subject: |
|
|
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 |
|
|
Guest
|
Posted: Thu Jun 20, 2002 11:06 am Post subject: |
|
|
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
Joined: 21 May 2002 Posts: 399 Location: Dornbirn/Austria
|
Posted: Thu Jun 20, 2002 2:43 pm Post subject: |
|
|
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 |
|
|
f.kater Guru
Joined: 23 May 2002 Posts: 342 Location: Berlin
|
Posted: Thu Jun 20, 2002 7:25 pm Post subject: |
|
|
Finally ....
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 |
|
|
user124 Tux's lil' helper
Joined: 02 May 2002 Posts: 86
|
Posted: Sat Jun 22, 2002 12:34 am Post subject: |
|
|
thanks to all..
forum search is cool
user124 |
|
Back to top |
|
|
|