[SOLVED] What does "grub2" do (to my usb flash drive or computer)?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What does "grub2" do (to my usb flash drive or computer)?
I was having trouble installing a distro via a bootable usb drive using Unetbootin, so I tried this Multisystem alternative. I got this error: xterm thing so I installed xterm and now I'm going to use Multisystem and there's this big warning (see screenshot) about Grub2 but it doesn't tell you what the danger is. So, what does Grub2 do and what's the danger? Will I be able to use the usb flash drive after the install (for other things)? Will I be able to format it again? Will Grub2 change anything on my computer? I guess I don't get the significance of the Master Boot Record deal either. I mean I Googled it but still it's confusing. Thanks.
Grub2 is a bootloader. It manages booting a system and, if you have a multi-boot system (more than one OS installed), it allows you pick which OS you wish to run. The Gentoo wiki has a good article about it: https://wiki.gentoo.org/wiki/GRUB2
Every OS has a bootloader, even Windows, but theirs runs in the background because they narcissitically think that there is no other OS.
If you want to boot from a drive, it has to have a bootloader installed somewhere in the system. GRUB is the most common bootloader, although there are others. It won't hurt your flash drive. Your internal HDD or SSD probably has GRUB on it, unless it's a newer UEFI model.
The message indicates that Grub2 will be installed to the MBR of the 8GB flash drive shown in the window below to allow you to boot the flash drive. Are you going to be trying to put multiple Linux systems on this flash drive? If you manage to get this working, you would need to format the drive after installing whichever system you used to be able to use it as data storage later. Maybe if you had posted what problems you had with unetbootin, someone could have explained.
Grub2 is a bootloader. It manages booting a system and, if you have a multi-boot system (more than one OS installed), it allows you pick which OS you wish to run. The Gentoo wiki has a good article about it: https://wiki.gentoo.org/wiki/GRUB2
Every OS has a bootloader, even Windows, but theirs runs in the background because they narcissitically think that there is no other OS.
If you want to boot from a drive, it has to have a bootloader installed somewhere in the system. GRUB is the most common bootloader, although there are others. It won't hurt your flash drive. Your internal HDD or SSD probably has GRUB on it, unless it's a newer UEFI model.
Thanks sgosnell. I'm sure I have the GRUB because my computers are really old.
The message indicates that Grub2 will be installed to the MBR of the 8GB flash drive shown in the window below to allow you to boot the flash drive. Are you going to be trying to put multiple Linux systems on this flash drive? If you manage to get this working, you would need to format the drive after installing whichever system you used to be able to use it as data storage later. Maybe if you had posted what problems you had with unetbootin, someone could have explained.
Thanks yancek. Okay. So IF (and I haven't yet) I did the Grub2 thing and did whatever I wanted with it but then wanted it for regular storage again, I would just format it in Gparted (or wherever) to FAT32 or whatever format I wanted and then it's good to go for storage again?
And I got Unetebootin working. I'd ignored the 'it needs p7zip-full' warning. When I installed the p7zip it worked fine.
I have to admit having multiple distros on one flash drive might be nice. I might try it.
Yes, you can reformat the drive and it will work. Or you can just use it for storage as it is, but that's probably not optimal, since it wouldn't have that much free space available. Grub will still be in the MBR, but it's harmless. The only possible problem with having grub in the MBR is that it's possible that it could be connected to a computer at boot, and the drive could be selected. It won't boot without the OS being on it, so it could cost you a minute or two of time while it refuses to boot, but that's the worst case.
Yes, you can reformat the drive and it will work. Or you can just use it for storage as it is, but that's probably not optimal, since it wouldn't have that much free space available. Grub will still be in the MBR, but it's harmless. The only possible problem with having grub in the MBR is that it's possible that it could be connected to a computer at boot, and the drive could be selected. It won't boot without the OS being on it, so it could cost you a minute or two of time while it refuses to boot, but that's the worst case.
Thanks sgosnell.
Quote:
The only possible problem with having grub in the MBR is that it's possible that it could be connected to a computer at boot, and the drive could be selected.
You meant grub2, right? Because don't all flash drives have regular old grub?
So if I format the grub2 flash drive it will revert to regular old grub and be back to normal? (LOL This is getting to be like a tautology or something.)
Because don't all flash drives have regular old grub?
No. Flash drives don't have any bootloader on them until you install one. Generally, most Linux distributions Live CD on a CD/DVD or flash drive use Syslinux to boot rather than Grub or Grub2.
No. Flash drives don't have any bootloader on them until you install one. Generally, most Linux distributions Live CD on a CD/DVD or flash drive use Syslinux to boot rather than Grub or Grub2.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.