LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2005, 03:54 PM   #1
Amfohr
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
Operation not permitted as root?


I would like to run cpuspeed but the required directory is not present.

I need:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

I have:
/sys/devices/system/cpu/cpu0
/sys/devices/system/cpu/cpu1

So I try to create a directory cpufreq in cpu0 and cpu1:
mkdir cpufreq

and I get error:
mkdir: cannot create directory `cpufreq': Operation not permitted

?
I am logged in as root!

Anybody?

Does also anybody know who the creator is of the file scaling_governor?
Is that cpuspeed self?

Cheers,

JR
 
Old 06-06-2005, 04:26 PM   #2
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
Post the output of ls -la in that directory. If you have a possible problem with rights, it helps to see what exactly they are
What distro are you running btw?
 
Old 06-06-2005, 04:33 PM   #3
Amfohr
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
[root@ded cpu0]# ls -la
total 0
drwxr-xr-x 2 root root 0 Jun 6 23:24 .
drwxr-xr-x 4 root root 0 Jun 6 23:24 ..
[root@ded cpu0]#

I run Fedora 3.

Thnx for reply
 
Old 06-06-2005, 04:44 PM   #4
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
I just remembered I don't think mkdir is going to work in a device directory...
What was it again? I think mknod, but I'm not sure.
 
Old 06-06-2005, 04:52 PM   #5
Amfohr
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
The manual refers to creating a file... for mknod

cpufreq IS a directory I suppose.. ??

Last edited by Amfohr; 06-06-2005 at 04:53 PM.
 
Old 06-06-2005, 09:15 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The problem ius probably that /sys is a special directory maintained by the kernel, like /proc (see this page for more info. Therefore, just created files and directories in there will not really work. You need to have the functionality that provides that file as a part of sysfs inside the kernel itself. Unfortunately, I've never really played with sysfs, so I can't help you, but I bet googling on that file name would turn up some useful results.
 
Old 06-07-2005, 06:12 AM   #7
Amfohr
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply but thats to complicated stuff for me...

I understand its a virtual file system and thats all.
 
  


Reply



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
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not Permitted as root? Godboo Linux - Newbie 4 02-17-2004 08:42 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration