Missing piece creating null device with mknod

Missing piece creating null device with mknod

Post by Neal Sede » Fri, 12 Dec 1997 04:00:00



Hello:

Well, I've read the FAQs for netatalk, printing, etc. etc. etc.
and have my appletalk laserwriter working just fine using /dev/null
as the lp printcap entry.  BUT, when I mknod /var/spool/laser/null
with what seems like all the correct directory permissions and
ownerships (similar to /dev/null) all I get from lpq is

        "waiting for lp to become ready (offline?)".

I've tried various combinations of major/minor arguments to mknod
with no difference.

What does it take to bring a null device to life????

I've spent so much time beating my head against the wall I'm ready
to give up and ask for help.

If you could email me I'd be glad to post the correct answer(s) when
all is well in null-ville.

This is for iNTEL based Linux, Redhat 4.1 updated to 4.2 and still
this persists.  Seems like it's an omission on my part more than a
kernel/system bug.

Thanks!

Neal Sedell

--

 
 
 

Missing piece creating null device with mknod

Post by CyberTun » Fri, 12 Dec 1997 04:00:00



Quote:> Well, I've read the FAQs for netatalk, printing, etc. etc. etc.
> and have my appletalk laserwriter working just fine using /dev/null
> as the lp printcap entry.  BUT, when I mknod /var/spool/laser/null
> with what seems like all the correct directory permissions and
> ownerships (similar to /dev/null) all I get from lpq is

To create the null, you're using:

mknod /var/spool/laser/null c 1 3
chmod 666 /var/spool/laser/null

Correct?

Aa.

 
 
 

1. mknod - misbehaving when creating a null device

As root I execute:
mknod -m 0666 /root/null c 1 3
this gives me perfectly working null device in my root directory, but
when I execute
mknod -m 0666 /mnt/lfs/dev/null c 1 3
and attempt to test it with this command
echo Hi > /mnt/lfs/dev/null
I get:
bash: null: Permission denied
How is it possible that it works in one directory but not in another?

Some things I have tried:
        I re-installed file-utils so that I am using version 4.1 of mknod.
        I compared permissions and ownerships to the usual /dev/null, the match
identically
        I searched the web for a common problem and found nought.
The only differences I can think of between /root and /mnt/lfs/dev (where
it worked and didn't work respectively) are that they are on different
partitions /root is on partition /dev/sda6 and /mnt/lfs is /dev/sda2.
Any thoughts would be appreciated.

2. Networking help needed: SCO, PPP, routed/gated to Internet

3. creating device with mknod

4. Booting an HP Envizex.

5. How to mknod /dev/null?

6. Solaris 2.4 x86: How to change Ethernet cards?

7. Boston Globe pieces today Re: CNN piece WHACKS NT boosts Linux!

8. Block device for isp16-type cdrom?

9. ncurses pieces missing?

10. xlv error: missing unique piece

11. UnixWare : a piece of junk or a piece of paradise ?

12. Missing pieces for Netcfg and Linuxconf

13. Possible missing piece of Solaris 10 distribution