Skip to content

khairulazam.net

Just my simple blog.

khairulazam.net

Just my simple blog.

  • Home
  • About Me
  • Hall of Shame
    • Home
    • 2014
    • July
    • 17
    • Restore grub without live CD on Linux
Tutorials

Restore grub without live CD on Linux

By zam 17/07/2014 #configure, #debian, #linux, #opensource, #ubuntu

If you start your Ubuntu and it display a grub shell to you, you can run this command below to fix it:

grub-rescue> prompt
             ls
             set prefix=(hdX,Y)/boot/grub
             set root=(hdX,Y)
             set
             ls /boot
             insmod /boot/grub/linux.mod
             linux /vmlinuz root=/dev/sdXY ro
             initrd /initrd.img
             boot

* Ensure that you entered correct partition (e.g. hd0,1) for hdX,Y. If not, than your grub will be messed.

References :
http://superuser.com/questions/181733/how-can-i-restore-grub-without-a-live-cd1
http://www.linux.com/learn/tutorials/776643-how-to-rescue-a-non-booting-grub-2-on-linux

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on Pinterest (Opens in new window) Pinterest

Like this:

Like Loading...

Related

Post navigation

Installing pymongo on Ubuntu
Allow root login on FreeBSD

By zam

Related Post

Tutorials

Generate Memory Dump from .vmss file using vmss2core

zam 31/03/2021
Tutorials

Import & export installed Cygwin packages

zam 10/06/2018
Tutorials

Quick Note: Clear bash history completely

zam 23/10/2017

Any Comments?Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Ads

Recent Posts

  • From ClickFix/ClickVerify to Lumma Stealer – The Rise of Self-Pwn Techniques
  • Malcore.io Challenge – Stacy
  • Deobfuscating Malicious PowerShell Script – ClickFix PowerShell
  • Deobfuscating PHP Webshell
  • Wargames.MY 2023 CTF – Compromised

Recent Comments

  • Marnik on Extracting Quarantine Files from Windows Defender
  • Hunting for Log4j RCE (CVE-2021-44228) using RSA Netwitness | khairulazam.net on Hunting for Log4j RCE (CVE-2021-44228) using Splunk & Excel
  • Rickk on Wifi Pineapple Mark V MR3020 – Bypass verify_pineapple LED pattern
  • Joe the hash cat on Extracting password from data leaks dump files
  • Lakshminarayanan Sethumadhavan on Recover bricked TL-MR3020 via serial console

Archives

Tags

analysis apache apple bash bsd coding configure ctf cygwin debian firewall forensic hack hackthebox honeypot hunting ios linux logfile macos malware metasploit microsoft mongo mybb mysql network&hacking nginx opensource openvz openwrt pcap perl pineapple powershell pwn python ssh tplink ubuntu vmware vps windows wireshark wordpress

Categories

Analysis Write-Ups Cybersecurity Offensive Tutorials

khairulazam.net

Just my simple blog.

Copyright © All rights reserved | Blogus by Themeansar.

%d