LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-24-2016, 10:52 AM   #1
slkuser
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Rep: Reputation: Disabled
Cannot edit /sys/devices config file as root


Hey guys,

Specs: Scientific Linux 6 / 64-bit

I am attempting to resolve a 'boot freeze' with a clocksource failover complaint according to a fix on RHLE and here https://blog.remibergsma.com/2012/03...-system-crash/...Consiting of editing the current system clock:

$su
$echo "acpi_pm" > /sys/devices/system/clocksource/clocksource0/current_clocksource

The issue I am encountering is that echo can't edit the current_clocksource config file. I attempted a text editor to no avail.

Any help I could get would be much appreciated.
 
Old 07-24-2016, 12:53 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,475

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
This is a virtual file (exists only on memory).
Does it return something?
Code:
cat /sys/devices/system/clocksource/clocksource0/current_clocksource
Echo will not edit this "file" but it will send a write command (by the shell) to a kernel handler which will do the appropriate action
 
Old 07-24-2016, 03:30 PM   #3
slkuser
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the clarification. Yes it does:

$ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> tsc
 
Old 07-24-2016, 05:25 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,475

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
And acpi_pm is available?
Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
 
Old 07-25-2016, 09:28 AM   #5
slkuser
LQ Newbie
 
Registered: Jul 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
I don't think so. The idea was to set it up, via the echo write above.

$cat /sys/devices/system/clocksource/clocksource0/available_clocksource
> tsc jiffies



Quote:
Originally Posted by keefaz View Post
And acpi_pm is available?
Code:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
 
  


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
Sles 11 cluster (heartbeat) shared file sys config scopiansl Linux - Server 10 03-04-2014 02:08 PM
How do you edit the boot and root devices in Grub2 ? OralDeckard Linux - General 15 06-04-2012 09:07 PM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 07:59 AM
torsmo error scandir for /sys/bus/i2c/devices/: No such file or directory KaZiber Linux - General 2 04-17-2005 03:41 AM

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

All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration