How to Reinstall GRUB (Alternate Method)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 100

  • @cameronlee9327
    @cameronlee9327 7 หลายเดือนก่อน +2

    Simple but effective. Great work!

  • @coalt
    @coalt 21 วันที่ผ่านมา +1

    Worked perfectly. Thank you!

  • @Stevenagetheidlegame
    @Stevenagetheidlegame 5 หลายเดือนก่อน +1

    When i try to mount my dev sda 3 or 2 it says
    mount: /mnt: wrong fa type, bad option, bad superblock on dev/sda3, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call

    • @DrewHowdenTech
      @DrewHowdenTech  5 หลายเดือนก่อน

      What is the output of ‘sudo fdisk -l’.

  • @hrushigawade4
    @hrushigawade4 5 หลายเดือนก่อน +1

    God bless you 🙏
    Simple and effective explanation, with all minor details
    Thanks for saving life

  • @pegasuszarafa
    @pegasuszarafa 7 หลายเดือนก่อน

    At 4:44, when I run
    'grub-install /dev/sda'
    I get an error:
    Cannot find EFI directory.
    I've dual-booted Ubuntu Jammy with Windows 10, both on separate partitions in Legacy. What should I do?

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      Make sure you’re booting your USB in legacy mode.

    • @pegasuszarafa
      @pegasuszarafa 7 หลายเดือนก่อน +1

      ​@@DrewHowdenTech Thanks.

  • @michaelmichaels5836
    @michaelmichaels5836 4 หลายเดือนก่อน +1

    Such a well put together video.

  • @SakugaAsu
    @SakugaAsu 2 หลายเดือนก่อน +1

    All my drives were wiped by accident, I wanted to fully wipe Linux and reinstall Windows 11. But I can't get Windows installed because the installer doesn't recognize Linux partitions.

    • @DrewHowdenTech
      @DrewHowdenTech  2 หลายเดือนก่อน +1

      You can erase your disk from within the Linux ISO.

    • @SakugaAsu
      @SakugaAsu 2 หลายเดือนก่อน

      @DrewHowdenTech just figured that out, I'm using gpart currently, can't format to GPT on Linux, but Windows installer does recognize NTFS, so I formatted to that. Gonna convert it to GPT in Windows installer then finish installing tiny 11, since I need Windows on my main laptop for compatibility with Youscian and VMWare, both of which wouldn't run properly or at all on my system for some reason

    • @DrewHowdenTech
      @DrewHowdenTech  2 หลายเดือนก่อน +1

      If you go to “Create New Partition Table” (in one of the menus on the menubar, can’t remember which one), GParted does have an option to format the disk as GPT. Just make absolutely sure that you have selected the right disk, and that there is nothing on it that you need, because it WILL BE ERASED! Also keep in mind that you’re doing this to the DEVICE, not an individual partition!

  • @laikanoother
    @laikanoother 7 วันที่ผ่านมา

    show de bola! I shall try here if my Linux boot ; greetings from Brazil!

  • @panayiotispetousis3971
    @panayiotispetousis3971 3 หลายเดือนก่อน

    I get a chroot segmentation fault error do u happen to know what this is?

  • @imacmill
    @imacmill 6 หลายเดือนก่อน +2

    This looks identical to your first video.

  • @michaelcanino4078
    @michaelcanino4078 3 หลายเดือนก่อน

    I tried your method on a VM of Jammy Jellyfish and it seemed to work well, but when I tried it on my SSD I still get the following error: Error: invalid environment block. 452: out of range pointer: 0xcfff020 Aborted. Press any key to exit. Hitting a key on the keyboard continues the boot process but I never had to hit a key for the OS to boot. If you know what is happening could you give me a hand on trying to fix this? Thanks!

    • @DrewHowdenTech
      @DrewHowdenTech  3 หลายเดือนก่อน

      Run "sudo update-grub" from within your Ubuntu, and paste the output here.

  • @johnthomas4050
    @johnthomas4050 2 หลายเดือนก่อน +1

    Drew - Good job. But I'm still not getting a menu for me to select my windows or linux mint (22) install. However, I should note that my BIOS is not showing any linux in the boot order. I had installed LM a couple weeks ago from a USB stick and it ran fine. Not sure if it is pertinent, but I had not rebooted until I needed to do something in Windows. And when I rebooted into Windows, it said it had a security update it wanted to do, and I let it. Soon after, I tried to reboot into LM, but could not find any way - other than booting again from my (live?) USB. Then, if I bring up a Files app, I can see the partition (84 GB /dev/sda8) and the LM files in it. But no way to boot into it. I've tried grub-repair, and been thru several youtube vids inclucing this one, but nada. I did get a cpl of Warnings during your "grub-install /dev/sda" step stating "EFI variables cannot be set on this system." and "You will have to complete the GRUB setup manually". I didn't know what I had to do at that point. I don't have any data to speak of on that install yet - just setup of printers, etc, so I'm seriously thinking of redoing the install. (sorry for the long post...) Any suggestions?

    • @DrewHowdenTech
      @DrewHowdenTech  2 หลายเดือนก่อน

      Did you run “update-grub” after reinstalling grub?

    • @johnthomas4050
      @johnthomas4050 2 หลายเดือนก่อน

      @@DrewHowdenTech I was still at # so I just entered "update-grub". Ran ok except for a warning that it was executing os-prober. Finally said it was Adding boot menu entry for UEFI Firmware Settings... done.

    • @johnthomas4050
      @johnthomas4050 2 หลายเดือนก่อน

      And, doesn't there need to be a "Linux..." or "Ubuntu" entry in the BIOS boot order, and the disk listings in there?

    • @DrewHowdenTech
      @DrewHowdenTech  2 หลายเดือนก่อน

      I would think there should be, but does it boot now?

    • @johnthomas4050
      @johnthomas4050 2 หลายเดือนก่อน

      @@DrewHowdenTech Nope.

  • @TheSmellOfBooks
    @TheSmellOfBooks 8 หลายเดือนก่อน +2

    10/10 keep up the good work.

  • @FlamingSwordful
    @FlamingSwordful 8 หลายเดือนก่อน +1

    Just as my caddy broke, thx for the vid

  • @luigiprovencher
    @luigiprovencher 7 หลายเดือนก่อน +1

    The problem for me is that with the other video you don't show how to do it if you've got a separate boot partition like you mentioned. So I'm guessing that it only works for ubuntu based systems or certain installation methods.

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      This method is even easier. It's actually the exact same regardless of whether your /boot is on your root partition, or another partition. Only difference in the latter case is that, in addition to mounting your root and EFI System partitions, you also have to mount your boot partition at /mnt/boot (after mounting your root partition, but before mounting your EFI System Partition).

    • @luigiprovencher
      @luigiprovencher 7 หลายเดือนก่อน

      @@DrewHowdenTech Yeah idk. I'd have to see a video of it.

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      Check the description for a command for that.

    • @luigiprovencher
      @luigiprovencher 7 หลายเดือนก่อน

      @@DrewHowdenTech I did. Not working for me. Getting an error message.

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      What error message are you getting?

  • @jamesmarsh3093
    @jamesmarsh3093 7 หลายเดือนก่อน +1

    whenever i try to chroot it says failed to run command '/bin.bash' : no such file or directory. im trying to recover a digital ocean droplet after it was destroyed by an angry ex-admin

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน +1

      Check to make sure that you are chrooting your ROOT partition, but that would indicate that there is more missing from your installation than just your bootloader.
      At this point, your best bet would be to extract the drive and copy the data off (hope your ex-admin didn’t delete that too).

    • @jamesmarsh3093
      @jamesmarsh3093 7 หลายเดือนก่อน

      @@DrewHowdenTech you respond so quick thankyou. from the looks of it, he blocked all ports (cant access anything) and then just deleted any boot files? how would i extract the drive?

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      Well, if you’re able to boot this system from a flash drive (to try chrooting), that would mean you have physical access to the system, right? If so, open it up, take out the drive, and connect it to a working computer, using a hard drive dock or something like that.
      You can also copy any data to an external drive, using the live USB.
      NOTE: I am writing the above with the assumption that you own the system in question.

    • @jamesmarsh3093
      @jamesmarsh3093 7 หลายเดือนก่อน +1

      @@DrewHowdenTech bad news, system is hosted on digitalocean, the way im trying to chroot is through the recovery ISO

    • @DrewHowdenTech
      @DrewHowdenTech  7 หลายเดือนก่อน

      Ahh, you’re remote hosting.
      Are you able to access the contents of the drive from DigitalOcean’s dashboard, or some other way over the internet (without booting it)?
      If not, are you able to access the contents of the drive from the recovery ISO?

  • @MohsenTheKnight21
    @MohsenTheKnight21 7 หลายเดือนก่อน +1

    This worked thanks so much

  • @Андрій-к2я3й
    @Андрій-к2я3й หลายเดือนก่อน +1

    Thanks a lot!

  • @topramen7431
    @topramen7431 8 หลายเดือนก่อน +2

    Great video Drew :)

  • @prmcabrita
    @prmcabrita 4 หลายเดือนก่อน +1

    Thanks for sharing!

  • @SkinnyThekittycat
    @SkinnyThekittycat 5 หลายเดือนก่อน

    I need help. It won’t work. I need this. computer! Please help

    • @DrewHowdenTech
      @DrewHowdenTech  5 หลายเดือนก่อน

      What part are you having trouble with? Are you getting an error message? If you are, what does it say?

  • @marcooos9874
    @marcooos9874 25 วันที่ผ่านมา

    Followed everything. No errors. Didn't work.

    • @DrewHowdenTech
      @DrewHowdenTech  24 วันที่ผ่านมา

      What is the output of “grub-install /dev/sda” and “update-grub”? Also, what’s happening when you boot the system?

    • @marcooos9874
      @marcooos9874 21 วันที่ผ่านมา

      @@DrewHowdenTech I reinstalled linux put the grub in the efi partition and it is working. Thanks.

  • @DarekNowak-q8d
    @DarekNowak-q8d 4 หลายเดือนก่อน

    doesn't work

    • @DrewHowdenTech
      @DrewHowdenTech  4 หลายเดือนก่อน

      What step are you having trouble with? If you are getting an error message, what does it say?

  • @riccardowanke7990
    @riccardowanke7990 4 หลายเดือนก่อน

    when I try "grub-install /dev/XXY" I got "grub-install: command not found". Any idea?

    • @DrewHowdenTech
      @DrewHowdenTech  4 หลายเดือนก่อน +1

      Did you set up the bind mounts shown in this video? Are you chrooted into your Linux installation?

    • @DrewHowdenTech
      @DrewHowdenTech  4 หลายเดือนก่อน +1

      Ahh, you’re running a dual-boot, and one of your distros boots just fine, and it’s just that the other one doesn’t have an entry in your GRUB menu.
      In that case, from within the Linux distro that is booting, run “sudo nano /etc/default/grub”, and uncomment (or add) the line “GRUB_DISABLE_OS_PROBER=false”. Then run “sudo update-grub”.

  • @neelchaudhary322
    @neelchaudhary322 5 หลายเดือนก่อน

    I started facing this issue today , when i was installing figlet-fonts
    How do i reach to terminal as you suddenly reach from this grub rescue place

    • @DrewHowdenTech
      @DrewHowdenTech  5 หลายเดือนก่อน

      You need to boot from a Linux install media.

    • @neelchaudhary322
      @neelchaudhary322 5 หลายเดือนก่อน

      @@DrewHowdenTech Do you have any channel to communicate ?? Please i need your help

    • @neelchaudhary322
      @neelchaudhary322 5 หลายเดือนก่อน

      @@DrewHowdenTech Can you tell me the procedure ?
      I have grub rescue error and One usb with Persistence Kali in it

    • @DrewHowdenTech
      @DrewHowdenTech  5 หลายเดือนก่อน

      Boot from the Kali USB, and once you’re at the desktop, open terminal.

    • @neelchaudhary322
      @neelchaudhary322 5 หลายเดือนก่อน

      @@DrewHowdenTech I have decided to rebuild my Kali linux .
      I have bootable usb in persistence is there any way i can Install kali in it using this persistence USB