Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-18-2007, 08:08 AM   #1
LQ Newbie
Registered: Jun 2007
Location: Sofia,Bulgaria
Distribution: Mandriva 2007
Posts: 23

Rep: Reputation: 15
Question Startx Permission problems on /dev/null and /dev/mem on freshly compiled

I am having strange behavior on my new compiled by myself kernel.It is I boot it goes in init3 instead in init5,which is set as default in /etc/inittab.Then I login as regular user and got some lines:
/dev/null : Permission denied
.I do:
#chmod 0666 /dev/null
and it seems ok.Then I do:
and got complaint:
Cannot open /dev/mem
.After that I check it out and there is no such a directory.So,I create it:
makedev /dev mem
,then I
chmod 0666 /dev/mem
and it runs.In my GUI(I use KDE) I got this when I start Konsole:
Konsole is unable to open a PTY (pseudo teletype). It is likely that this is due to an incorrect configuration of the PTY devices. Konsole needs to have read/write access to the PTY devices.
.Then I press OK on the Error Window and Konsole crash.Xterm can't start either,no error message,though.I tried to create a /dev/pty,dev/pts/pty but it won't,no error message.
The worst part and theme on my post is that after every reboot I have to do all this steps again and again.
Any suggestions?

Old 07-22-2007, 04:28 PM   #2
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 261

Rep: Reputation: 36
Did you include devpts file system in the kernel? You might be able to set some of those files that are getting clobbered as immutable and see what sqwauks about not being able to 'rm /dev/mem' or whatever. (chattr +i /the/file, don't forget to set them chattr -i /the/file after you're done testing). Note some of those won't be able to be set immutable because they need to be written to, but perhaps you could find one that will. It looks like you've got some misbehaving boot scripts, or maybe, if you use udev, something is wrong with it? I don't use udev myself.

I just downloaded this kernel, I'll put it on later tonight and see if I hit similar errors, then post back.
Old 09-09-2007, 02:42 AM   #3
LQ Newbie
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
I have the same problem. Are there any solutions for this? Devpts is mounted in my system.


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
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 01:46 PM
/dev/null permission denied sagar.1986 Linux - General 4 01-19-2007 04:39 PM
/dev/null: Permission Denied dsschanze Red Hat 3 10-13-2006 02:38 PM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 07:31 PM
/dev/null: Permission denied LavaDevil94 Linux - Software 2 09-15-2004 12:44 AM

All times are GMT -5. The time now is 01:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration