Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to install GRUB2 on USB stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Mon Dec 14, 2015 4:25 pm    Post subject: [SOLVED] Unable to install GRUB2 on USB stick Reply with quote

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
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 433
Location: Australia

PostPosted: Mon Dec 14, 2015 11:47 pm    Post subject: Re: Unable to install GRUB2 on USB stick Reply with quote

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
View user's profile Send private message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Tue Dec 15, 2015 2:28 am    Post subject: Reply with quote

Thanks. I added "--force" and it seems to be working (can boot from USB stick).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum