KeinZugriff auf /proc/acpi/wakeup

Hallo,
Ich hab mal wieder ein Problem:
Ich müsste die datei wakeup ändern, damit mein server wieder durch WOL bootet, vi hat aber anscheinend einen bug oder so etwas und jedes mal wenn ich meine Änderungen speichern möchte, gibt es mir folgenden Fehler aus: E677 Fsync failed
Jetzt habe ich die datei wakeup einfach mal in ein verzeichnis kopiert auf das ich mit meinem winpc zugreifen kann und hab die änderungen so mit dem editor reingeschrieben.
Wenn ich mir die Datei jetzt im Verzeichnis: /mnt/datenbereich/erstesvolume/Johannes mit cat ansehe, dann passt auch alles. Versuche ich jetzt die veränderte wakeup datei in den ordner /proc/acpi zu kopieren geschieht folgendes:

Code:
[root@dhcppc5 Johannes]# cp wakeup /proc/acpi/wakeup
cp: overwrite `/proc/acpi/wakeup'? j
[root@dhcppc5 Johannes]# cp wakeup /proc/acpi/wakeup
cp: overwrite `/proc/acpi/wakeup'? y
[root@dhcppc5 Johannes]#
wenn ich mir allerdings dann die originaldatei in /proc/acpi/wakeup ansehe hat sich nichts geändert, also hab ich es mal anders versucht
Code:
 [root@dhcppc5 Johannes]# mv wakeup /proc/acpi
mv: overwrite `/proc/acpi/wakeup'? y
mv: inter-device move failed: `wakeup' to `/proc/acpi/wakeup'; unable to remove target: Operation
not permitted
warum er das nicht machen will ist mir ein rätsel:
Code:
[root@dhcppc5 acpi]# ls -la
-rwxrwxrwx 1 root root 0 Jun 15 13:02 wakeup
und
Code:
[root@dhcppc5 proc]# ls -la
drwxrwxrwx 11 root root 0 Jun 15 12:12 acpi
 
Schon mal nen anderen Editor versucht?

Evtl. gibt es ja auf dem System nano, pico usw......
 
ich hab mich im Internet mal umgeschaut was es sonst noch so an editoren geben könnte:

Code:
[root@dhcppc5 ~]# cd /proc/acpi
[root@dhcppc5 acpi]# nano wakeup
-bash: nano: command not found
[root@dhcppc5 acpi]# pico wakeup
-bash: pico: command not found
[root@dhcppc5 acpi]# jedit wakeup
-bash: jedit: command not found
[root@dhcppc5 acpi]# gedit wakeup
-bash: gedit: command not found
[root@dhcppc5 acpi]# emac wakeup
-bash: emac: command not found
[root@dhcppc5 acpi]# kate wakeup
-bash: kate: command not found
[root@dhcppc5 acpi]# kedit wakeup
-bash: kedit: command not found
[root@dhcppc5 acpi]# xedit wakeup
-bash: xedit: command not found
[root@dhcppc5 acpi]# kwrite wakeup
-bash: kwrite: command not found
[root@dhcppc5 acpi]# nedit wakeup
-bash: nedit: command not found
[root@dhcppc5 acpi]# vile wakeup
-bash: vile: command not found
[root@dhcppc5 acpi]# elvis wakeup
-bash: elvis: command not found

edit:
so ich habe es jetzt geschafft nano zu installieren und damit die datei zu verändern, es kommt kein Fehler, aber er nimmt die änderungen dennoch nicht an

edit2:
ich hab jetzt "echo -n LAN0 > /proc/acpi/wakeup" eingegeben, und es hat funktioniert, wenn das nur eine einmalige sache war werde ich es so lassen, ansonsten schreib ich es in die rc.local
 
Es wird keine einmalige Sache sein und ich würde dir raten dich erstmal mit dem procfs auseinanderzusetzen bevor du da wieder versuchst mit einem Editor ranzugehen. Die /proc/acpi/wakeup wird beim Laden der ACPI-Module erstellt und es handelt sich dabei um eine spezielle Datei, die keine "echte" Datei ist. Daher kann man diese nur mit 'echo' manipulieren. Beim nächsten Reboot wird sie beim Laden der Module wieder neu angelegt. Daher mußt du deinen echo-Befehl also in den Bootvorgang "einbauen" müssen.
 
Zurück
Oben