LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-12-2015, 07:50 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
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.
Attached Thumbnails
Click image for larger version

Name:	Selection_008.png
Views:	34
Size:	47.2 KB
ID:	20271  
 
Old 12-12-2015, 08:03 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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.

Last edited by frankbell; 12-12-2015 at 08:04 PM.
 
1 members found this post helpful.
Old 12-12-2015, 10:47 PM   #3
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
1 members found this post helpful.
Old 12-13-2015, 08:36 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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.
 
1 members found this post helpful.
Old 12-13-2015, 03:20 PM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by frankbell View Post
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.
Thanks Frank. And thanks for the link.
 
Old 12-13-2015, 03:21 PM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by sgosnell View Post
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.
 
Old 12-13-2015, 03:26 PM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by yancek View Post
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.
 
Old 12-13-2015, 05:34 PM   #8
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
1 members found this post helpful.
Old 12-13-2015, 05:43 PM   #9
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by sgosnell View Post
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.)
 
Old 12-13-2015, 06:16 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
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.
 
1 members found this post helpful.
Old 12-13-2015, 07:34 PM   #11
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by yancek View Post
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.
Thanks yancek.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: "USB Killer" flash drive can fry your computer's innards in seconds LXer Syndicated Linux News 0 10-16-2015 02:14 AM
[SOLVED] Does "deleting" a flash drive wear the flash drive out faster than "formatting" it? Gregg Bell Linux - Software 7 05-15-2015 03:16 PM
"LILO - Timestamp mismatch" with bootable USB flash drive Skaperen Slackware 7 07-14-2011 09:13 AM
Installing Debian from USB flash drive - Cannot mount "CD-ROM" Jinouchi Linux - Software 1 07-29-2010 10:52 AM
Cant do "mount/umount" on USB flash drive as regular user Salgeras Slackware 5 11-01-2007 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration