Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for boot

February 15, 2020

GRUB Fixes

This are grub fixes to servers that are not booting up due to improper entries in the grub menu.

grub --batch <<END
root (hd0,0)
setup (hd0,0)
quit
END
#
sed -i 's/dev\/sda/dev\/hda/' /boot/grub/device.map
sed -i 's/(hd0)/(hd0,0)/' /boot/grub/menu.lst

grub --batch <<END root (hd0,0) setup (hd0,0) quit END # sed -i 's/dev\/sda/dev\/hda/' /boot/grub/device.map sed -i 's/(hd0)/(hd0,0)/' /boot/grub/menu.lst

The fix includes replacing (hd0) with (hd0,0) and /dev/sda with /dev/hda.

December 2, 2019

Windows Boot Time

Here’s how to find when a Windows server was last rebooted.

systeminfo | find /i "boot time"

systeminfo | find /i "boot time"

May 1, 2019

Add nofail

The /etc/fstab file allow volumes to be automatically mounted on bootup. Add nofail in your automated mounts to prevent instances from hanging on boot. Nofail makes the instance to boot even if there are errors with the mounted volume.

UUID=aebf131c-6957-451e-8d34-ec978d9581ae  /data  xfs  defaults,nofail  0  2

UUID=aebf131c-6957-451e-8d34-ec978d9581ae /data xfs defaults,nofail 0 2

  • 1
  • 2
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021