• Home
  • About
    • Seokmin.Lee photo

      Seokmin.Lee

      Hello, I am a master's student in the Department of Convergence Security (Samsung Advanced Security) at Korea University.After graduation, I am expected as a security developer or researcher member of Samsung SDS.

    • Learn More
    • LinkedIn
    • Github
  • Posts
    • All Tags

[linux]for_broken_grub_real

15 Mar 2022

1. recovering GRUB in Ubuntu

sudo grub-install /dev/XXX

2. XXX애 들어가는 디스크name 찾는법

  • sudo fdisk -l로 Boot 옵션에 체크되어 있는 디스크를 찾기 or
  • ls -l /dev/disk/by-label/로 Ubuntu가 위치한 디스크 name 찾기

주의할점

disk의 파티션 넘버는 무시할 것, 예를 들어 /dev/sda1, /dev/sda2 등이 있으면 sudo grub-install /dev/sda만 치면 됩니당

명심할점

author by Master Park (HJ)



grublinux Share Tweet +1