FAQ Debug: Polecenia przydatne podczas diagnostyki systemu lub działających w nim usług

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 202
31
2 297
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Poniższe dwa zestawy poleceń przydatne są do diagnostyki uruchomionych w systemie usług, ale także w przypadku kiedy system wpadł w tzw. bootloop'a lub poprostu się nie uruchamia.
1. Wyłączenie autowznawiania umarłych procesów aplikacji, tzw. Watchdog'a
2. Wyłączenie wygaszacza ekranu (loga podczas inicjacji systemu)


1. Wyłączenie autowznawiania umarłych procesów aplikacji, tzw. Watchdog'a:
Bash:
/sbin/daemon_mgr qwatchdogd stop “/sbin/qwatchdogd”
/sbin/qwatchdogd –d
rmmod iTCO_wdt


2. Wyłączenie wygaszacza ekranu (loga podczas inicjacji systemu):
To disable screensaver, we have to change the kernel command line of bootloader (Grub) and reboot.
Please type the following commands
Bash:
# find the DOM device
hal_app --get_boot_pd port_id=0
Example: /dev/sdc
Note: The device name will be different in runtime system

Bash:
# mount the bootloader partition
mkdir /mnt/boot; mount /dev/sdc1 /mnt/boot

# change the kernel command line in grub
vi /mnt/boot/grub.cfg

find the following file content linux /boot/bzImage root=/dev/ram0 rw, e.g:
Kod:
menuentry 'DOM kernel X86' --class ubuntu --class gnu-linux --class gnu --class os {
  insmod ext2
  set root='(hd0,2)'
  linux  /boot/bzImage root=/dev/ram0 rw
  initrd  /boot/initrd.boot
}
menuentry 'DOM kernel X86 backup' --class ubuntu --class gnu-linux --class gnu --class os {
  insmod ext2
  set root='(hd0,3)'
  linux  /boot/bzImage root=/dev/ram0 rw
  initrd  /boot/initrd.boot

and change these as
Kod:
menuentry 'DOM kernel X86' --class ubuntu --class gnu-linux --class gnu --class os {
  insmod ext2
  set root='(hd0,2)'
  linux  /boot/bzImage root=/dev/ram0 rw consoleblank=0
  initrd  /boot/initrd.boot
}
menuentry 'DOM kernel X86 backup' --class ubuntu --class gnu-linux --class gnu --class os {
  insmod ext2
  set root='(hd0,3)'
  linux  /boot/bzImage root=/dev/ram0 rw consoleblank=0
  initrd  /boot/initrd.boot

Bash:
# unmount the partition and reboot
umount /dev/sdc1

reboot