Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-06-2006, 10:34 AM   #1
LQ Newbie
Registered: Aug 2005
Distribution: debian sarge
Posts: 16

Rep: Reputation: 0
Exclamation cant create parport devices

Hi everyone!

My problem is that ion my /dev directory there is no parport, but there is a lp0 device (akward, isnt it?), I tried to make this devices with MAKEDEV -v parport (that it's supposed to create the parport0, parport1 and parport2) and it says to me that it created them, just like this:
chimi:/dev# MAKEDEV -v parport
create parport0 c 99 0 root:lp 0660
create parport1 c 99 1 root:lp 0660
create parport2 c 99 2 root:lp 0660

but after this the still dont exist!!!:
chimi:/dev# ls parport0
ls: parport0: No such file or directory

and parallel port works perfectly, since I needed to use it on a C++ program, and I used ioperm() and inb()/outb(), and worked perfectly, but I rather use the device (open ("/dev/parport0",...))...

My system is a Debian sarge 3.1r0a running on a kernel with glibc6

Does anyone knkow what's going on??
Old 10-08-2006, 05:20 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Not sure if this has anything to do with it but just found out about the /sys filesystem in 2.6 kernels the other day. It contains something like /sys/bus/pci/parport (may not be quite correct - not looking at Linux at the moment). Apparently /sys created with an eye to replacing /proc/sys. Maybe part of the changes made also got rid of /dev entries. In looking at other things I did try to find things that I saw symbolic links back to /dev but the things weren't there. Didn't keep anything from working.
Old 10-09-2006, 10:12 AM   #3
LQ Newbie
Registered: Aug 2005
Distribution: debian sarge
Posts: 16

Original Poster
Rep: Reputation: 0
So what you say is that I must use /sys/bus/pci/parport instead of the normal /dev/parport??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent lp and parport module from loading jlinkels Linux - Hardware 0 10-16-2005 08:49 PM
no valid devices were found on which to create new filesystem mehdi Linux - Software 5 02-18-2004 07:48 AM
right to write at the /dev/parport tortue Linux - General 2 01-15-2004 03:07 PM
backpack series 6 parport install hfelton Slackware 0 05-13-2003 12:09 AM
Error: No valid devices to create new file systems Lossenelin Linux - Hardware 6 09-27-2002 01:58 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration