Showing posts from September, 2007

Linux - repair "grub loading stage2 ..."

#use Linux Installation CD to boot the computer

# Enter into rescue mode
shell> linux rescue

shell> chroot /mnt/sysimage
shell> /sbin/grub-install /dev/hda
shell> exit
shell> reboot

Linux - Laptop mode

Disable Laptop mode:
shell> echo 0 /proc/sys/vm/laptop_mode

Enable Laptop mode:
shell> echo 5 /proc/sys/vm/laptop_mode

Linux - dump MBR for RAID

shell> dd if=/dev/sda of=/dev/sdb bs=512 count=1