How to Reinstall GRUB (Alternate Method)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today I'll be showing you how to reinstall grub now I know what you're saying Drew you've already made a video on this well some people found that method confusing it involved working with the grub command line after reinstalling grub from a live ISO to get your system to actually boot which required several steps to figure out how your Linux boot environment is configured well in this video I'm going to show you a simpler method that works completely from the live environment and you can do it in about 2 minutes like it's a much faster method now you are going to need a Linux installation medium for this I'm going to be using a Ubuntu drive in this video but any grub based Linux distribution should do all right so now I've set up a bun to VM so now I've completely wiped the master boot record on this so right now it's not booting like at all like it's not even getting into the earliest stages of starting up the operating system so what I'm going to do to fix this is reboot my VM and then boot up my Ubuntu installation media you will need to have that to proceed with this tutorial all right now I'm going to select the try you buntu option all right now once you're at the desktop of your live installation media you're going to go into the terminal and by the way we're going to be doing everything from the terminal so first of all I'm going to do a pseudo Fisk DL till let start our devices and the one we're concerned about is our internal drive which for me is /dev/sda you can see that my internal drive which is just a little bitty virtual Machine drive is 20 gbb bytes which is how much I allocated to this VM and I can see my partitions here so now what I have to do is Mount my Linux file system you can see that it's the biggest one here by doing pseudo Mount slash Dev SL sda3 in my case for you it might be something different it could be Dev SDA 2 or if you have an mvme drive it might be Dev nvme something but anyway I'm going to mount that at/ MNT and if you have a separate boot partition in my case I don't but if you do then you have to mount that at/ mn/ boot if like me you have an EFI system partition then you have to mount that by doing pseudo Mount again in this case /dev sda2 is my EFI system partition and mount that at slmn boot slfi once we've got our partitions mounted now we got to do a few bind mounts for our grub install command to work so now we've got to do pseudo Mount D- bind slev SL mntd and by the way I'll have all these commands in the description and then pseudo Mount D- bind slpr SL MNT SL proc and then pseudo Mount D- bind slash sis SL mn/ sis and now once we've done all that now we've got a CH root into our Linux installation by doing pseudo chroot /mnt okay so now we're in our Linux installation and you can use this feature to fix a whole host of issues including boot issues what I'm going to do to reinstall grub is just do a grub-install /dev SL SDA in my case that's the drive which is my internal drive now make sure you don't put any numbers after this because you're doing this to the device not to an individual partition so we're going to run that command hope it doesn't give any errors which it didn't and by the way when you're running in ch route you don't need to use pseudo since as you can see here we're running as rout but now we're going to do an update-grub to restore our grub configuration and that should also detect any other operating systems that you may have had in your GRUB boot menu if you're dual booting and if you're on Arch then the update Grub command won't be available to you so instead you would use grub DMK config - o slash boot SLG grub SLG grub.cfg like that but anyway now we are done so we can exit out of our CH rout environment and restart the system all right it looks like our system is booting once again so we're done and that's it for this video be sure to give it a like if you liked it dislike if you disliked it comment share subscribe all that good stuff and see you next time
Info
Channel: Drew Howden Tech
Views: 657
Rating: undefined out of 5
Keywords: Repair Boot on Linux, Linux, Boot Repair, GRUB
Id: FIAxzzE45Sg
Channel Id: undefined
Length: 5min 53sec (353 seconds)
Published: Tue Apr 23 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.