View previous topic :: View next topic |
Author |
Message |
Mr. M Tux's lil' helper
Joined: 18 Sep 2004 Posts: 89 Location: USA
|
Posted: Mon Dec 14, 2015 4:25 pm Post subject: [SOLVED] Unable to install GRUB2 on USB stick |
|
|
Hi,
I'm trying to boot my system from a USB stick instead of using a regular disks (an encrypted RAID setup will later be used). As a first step, I partitioned the USB stick and tried installing GRUB2. However, I get some errors:
Partitions:
Code: |
Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB ext2 grub bios_grub
2 3146kB 537MB 534MB ext2 boot
|
I created an ext2 file system for sde2 and mounted it under /boot, ran "grub2-mkconfig -o /boot/grub/grub.cfg" without errors and finally tried to install GRUB2:
Code: |
# grub2-install /dev/sde
Installing for i386-pc platform.
grub2-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
grub2-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub2-install: error: will not proceed with blocklists.
|
Does anyone know what I'm doing wrong?
Last edited by Mr. M on Tue Dec 15, 2015 2:29 am; edited 1 time in total |
|
Back to top |
|
|
ian.au Guru
Joined: 07 Apr 2011 Posts: 593 Location: Australia
|
Posted: Mon Dec 14, 2015 11:47 pm Post subject: Re: Unable to install GRUB2 on USB stick |
|
|
Mr. M wrote: | Hi,
I created an ext2 file system for sde2 and mounted it under /boot, ran "grub2-mkconfig -o /boot/grub/grub.cfg" without errors and finally tried to install GRUB2:
Code: |
# grub2-install /dev/sde
Installing for i386-pc platform.
grub2-install: warning: Attempting to install GRUB to a disk with multiple partition labels. This is not supported yet..
grub2-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub2-install: error: will not proceed with blocklists.
|
Does anyone know what I'm doing wrong? |
I haven't done this for a while but your grub2-install line looks wrong to me. You'd need something like Code: | grub2-install --boot-directory=/media/<device>/boot /dev/sde | in the past I needed (sometimes) to use the --force option as well. I've only only used sysrecuecd on USB sticks for the past few years, so there may be sexier ways of doing this now. |
|
Back to top |
|
|
Mr. M Tux's lil' helper
Joined: 18 Sep 2004 Posts: 89 Location: USA
|
Posted: Tue Dec 15, 2015 2:28 am Post subject: |
|
|
Thanks. I added "--force" and it seems to be working (can boot from USB stick). |
|
Back to top |
|
|
|