LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-18-2007, 07:08 AM   #1
Eric_Cartman
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 2.6.22.1


Hi,everyone,
I am having strange behavior on my new compiled by myself kernel.It is 2.6.22.1.Eveytime 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:
Code:
/dev/null : Permission denied
.I do:
Code:
#chmod 0666 /dev/null
and it seems ok.Then I do:
Code:
startx
and got complaint:
Code:
Cannot open /dev/mem
.After that I check it out and there is no such a directory.So,I create it:
Code:
makedev /dev mem
,then I
Code:
chmod 0666 /dev/mem
,then
Code:
startx
and it runs.In my GUI(I use KDE) I got this when I start Konsole:
Code:
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?

Sincerely,
Eric_Cartman
 
Old 07-22-2007, 03:28 PM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: None (src & compile)
Posts: 253

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, 01:42 AM   #3
Fr1z2r
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.
 
  


Reply


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 12:46 PM
/dev/null permission denied sagar.1986 Linux - General 4 01-19-2007 03:39 PM
/dev/null: Permission Denied dsschanze Red Hat 3 10-13-2006 01:38 PM
/dev/null: Permission denied phoenix7 Linux - Distributions 1 10-01-2005 06:31 PM
/dev/null: Permission denied LavaDevil94 Linux - Software 2 09-14-2004 11:44 PM


All times are GMT -5. The time now is 07:48 AM.

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