unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36262: cannot install bootloader to root partition
@ 2019-06-17 11:25 znavko
  2019-06-17 14:53 ` Danny Milosavljevic
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: znavko @ 2019-06-17 11:25 UTC (permalink / raw)
  To: 36262

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

Hello! I was not able to install Guix having 2 partitions:
/dev/sda1 ext4 Linux filesystem
/dev/sda2 Linux Swap

`guix system init` says in this case:
guix system: error: failed to install bootloader

Screen: http://0x0.st/zeLs.jpg

[-- Attachment #2: Type: text/html, Size: 514 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 11:25 bug#36262: cannot install bootloader to root partition znavko
@ 2019-06-17 14:53 ` Danny Milosavljevic
  2019-06-17 17:09   ` Tobias Geerinckx-Rice
  2019-06-17 17:19   ` znavko
  2019-06-17 17:08 ` Tobias Geerinckx-Rice
  2019-06-17 17:11 ` znavko
  2 siblings, 2 replies; 11+ messages in thread
From: Danny Milosavljevic @ 2019-06-17 14:53 UTC (permalink / raw)
  To: znavko; +Cc: 36262

[-- Attachment #1: Type: text/plain, Size: 38 bytes --]

Hi,

which grub is that? grub-efi?

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 11:25 bug#36262: cannot install bootloader to root partition znavko
  2019-06-17 14:53 ` Danny Milosavljevic
@ 2019-06-17 17:08 ` Tobias Geerinckx-Rice
  2019-06-17 22:59   ` Mark H Weaver
  2019-06-17 17:11 ` znavko
  2 siblings, 1 reply; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-17 17:08 UTC (permalink / raw)
  To: znavko; +Cc: 36262

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

Znavko,

znavko@disroot.org wrote:
> bug#36262: cannot install bootloader to root partition

Installing GRUB to your root partition isn't supported, and should 
never be necessary anyway.

> Hello! I was not able to install Guix having 2 partitions:
> /dev/sda1 ext4 Linux filesystem
> /dev/sda2 Linux Swap

This is a strange partition layout; it's missing a ‘BIOS boot 
partition’ and can never work without forcing GRUB to do something 
it doesn't like to do.

Did you create this layout manually?  If so, why?

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 14:53 ` Danny Milosavljevic
@ 2019-06-17 17:09   ` Tobias Geerinckx-Rice
  2019-06-17 17:19   ` znavko
  1 sibling, 0 replies; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-17 17:09 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 36262

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

Danny,

Danny Milosavljevic wrote:
> which grub is that? grub-efi?

i386-pc, so ‘BIOS’ (which means it's trying to use blocklists, 
which is fragile & won't work without --force).

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 11:25 bug#36262: cannot install bootloader to root partition znavko
  2019-06-17 14:53 ` Danny Milosavljevic
  2019-06-17 17:08 ` Tobias Geerinckx-Rice
@ 2019-06-17 17:11 ` znavko
  2019-06-18  2:33   ` Tobias Geerinckx-Rice
  2 siblings, 1 reply; 11+ messages in thread
From: znavko @ 2019-06-17 17:11 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36262

I have another laptop (Lenovo G50-30) where Guix works on this partition layout I've made manually:

# fdisk -l /dev/sda
...
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048 230000000 229997953 109.7G 83 Linux
/dev/sda2       230000640 234441647   4441008   2.1G 82 Linux swap / Solaris


But all the new installations on other two notebooks with the same layout do not work.


June 17, 2019 5:07 PM, "Tobias Geerinckx-Rice" <me@tobias.gr> wrote:

> Znavko,
> 
> znavko@disroot.org wrote:
> 
>> bug#36262: cannot install bootloader to root partition
> 
> Installing GRUB to your root partition isn't supported, and should
> never be necessary anyway.
> 
>> Hello! I was not able to install Guix having 2 partitions:
>> /dev/sda1 ext4 Linux filesystem
>> /dev/sda2 Linux Swap
> 
> This is a strange partition layout; it's missing a ‘BIOS boot
> partition’ and can never work without forcing GRUB to do something
> it doesn't like to do.
> 
> Did you create this layout manually? If so, why?
> 
> Kind regards,
> 
> T G-R

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 14:53 ` Danny Milosavljevic
  2019-06-17 17:09   ` Tobias Geerinckx-Rice
@ 2019-06-17 17:19   ` znavko
  1 sibling, 0 replies; 11+ messages in thread
From: znavko @ 2019-06-17 17:19 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, Danny Milosavljevic; +Cc: 36262

Yes, I use Bios grub everywhere.

June 17, 2019 5:10 PM, "Tobias Geerinckx-Rice" <me@tobias.gr> wrote:

> Danny,
> 
> Danny Milosavljevic wrote:
> 
>> which grub is that? grub-efi?
> 
> i386-pc, so ‘BIOS’ (which means it's trying to use blocklists,
> which is fragile & won't work without --force).
> 
> Kind regards,
> 
> T G-R

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 17:08 ` Tobias Geerinckx-Rice
@ 2019-06-17 22:59   ` Mark H Weaver
  2019-06-18  2:59     ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 11+ messages in thread
From: Mark H Weaver @ 2019-06-17 22:59 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36262

Hi Tobias,

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> znavko@disroot.org wrote:
>> bug#36262: cannot install bootloader to root partition
>
> Installing GRUB to your root partition isn't supported, and should
> never be necessary anyway.
>
>> Hello! I was not able to install Guix having 2 partitions:
>> /dev/sda1 ext4 Linux filesystem
>> /dev/sda2 Linux Swap
>
> This is a strange partition layout; it's missing a ‘BIOS boot
> partition’ and can never work without forcing GRUB to do something it
> doesn't like to do.
>
> Did you create this layout manually?  If so, why?

FWIW, I used this partition layout for years, including on Guix systems,
and it worked fine.  Long ago, bootloaders were only able to access the
first 8 GB or so of the disk, because of limitations in the old INT 13h
BIOS interface.  Maybe this is still an issue on some ancient machines,
but I tend to use older hardware (my best laptop is ~11 years old, and
that's typical for me) and I've not had this issue in recent memory.

The only reason I started using a separate boot partition again is
because I now encrypt my root partition.

      Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 17:11 ` znavko
@ 2019-06-18  2:33   ` Tobias Geerinckx-Rice
  2019-06-18  8:01     ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-18  2:33 UTC (permalink / raw)
  To: znavko; +Cc: 36262

[-- Attachment #1: Type: text/plain, Size: 1794 bytes --]

Znavko,

znavko@disroot.org wrote:
> I have another laptop (Lenovo G50-30) where Guix works on this 
> partition layout I've made manually:
>
> # fdisk -l /dev/sda
> ...

^ You removed the most important part, please don't do this on 
help lists.

Still, we can tell that this is an ‘mbr’ layout:

> Device     Boot     Start       End   Sectors   Size Id Type
> /dev/sda1            2048 230000000 229997953 109.7G 83 Linux
> /dev/sda2       230000640 234441647   4441008   2.1G 82 Linux 
> swap / Solaris
                                                       ^^^^^^^^^^^^^^^^^^^^^^^

> But all the new installations on other two notebooks with the 
> same layout do not work.

They aren't the same: the one in your screenshot is a completely 
different ‘gpt’ layout.

Hence my unanswered question:

> Did you create this layout manually? If so, why?

Although now I suspect there was no reason and that the installer 
isn't to blame.

So you can either:

- throw away your existing layout and create new MBR disklabel. 
  Your partitioning software will ask you or provide an option 
  somewhere.  Since modern partitioning software leaves a huge gap 
  before the first partition, GRUB will nestle cosily into that 
  first unused ~MiB.

- keep it as GPT (it has some minor features MBR doesn't), and 
  create an additional GPT ‘BIOS boot partition’ as recommended 
  before.  It only needs to be a few 100 KiB, so I use the space 
  before the first partition (= before the first megabyte; turning 
  off ‘alignment’ in your partitioning software).  This tiny 
  partition is for use by GRUB, and GRUB alone: do not format or 
  mount it.

Both options work equally well, but you need to choose.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-17 22:59   ` Mark H Weaver
@ 2019-06-18  2:59     ` Tobias Geerinckx-Rice
  2019-06-18 10:22       ` Mark H Weaver
  0 siblings, 1 reply; 11+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-06-18  2:59 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: 36262

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Mark H Weaver wrote:
> FWIW, I used this partition layout for years, including on Guix 
> systems,
> and it worked fine.

Impossible, sorry.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-18  2:33   ` Tobias Geerinckx-Rice
@ 2019-06-18  8:01     ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 11+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-06-18  8:01 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36262

On Tue, Jun 18, 2019 at 04:33:22AM +0200, Tobias Geerinckx-Rice wrote:
> Although now I suspect there was no reason and that the installer isn't to
> blame.
> 

The graphical installer does not display a warning when not adding a
separate boot partition on GPT (an installer bug?), but installs
everything only to fail at the very end (this is another bug of guix
system?) at bootloader installation.

Regards,
Florian

^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#36262: cannot install bootloader to root partition
  2019-06-18  2:59     ` Tobias Geerinckx-Rice
@ 2019-06-18 10:22       ` Mark H Weaver
  0 siblings, 0 replies; 11+ messages in thread
From: Mark H Weaver @ 2019-06-18 10:22 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 36262

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Mark H Weaver wrote:
>> FWIW, I used this partition layout for years, including on Guix
>> systems,
>> and it worked fine.
>
> Impossible, sorry.

In fact, it _is_ possible, if you use an MBR partition table.  I assumed
that znavko was using MBR, but having now finally looked at the provided
screen image, I see now that they're using GPT.  I agree that in this
case, a BIOS boot partition is required.  I should have looked more
closely before responding, sorry.

     Best,
      Mark

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-06-18 10:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-17 11:25 bug#36262: cannot install bootloader to root partition znavko
2019-06-17 14:53 ` Danny Milosavljevic
2019-06-17 17:09   ` Tobias Geerinckx-Rice
2019-06-17 17:19   ` znavko
2019-06-17 17:08 ` Tobias Geerinckx-Rice
2019-06-17 22:59   ` Mark H Weaver
2019-06-18  2:59     ` Tobias Geerinckx-Rice
2019-06-18 10:22       ` Mark H Weaver
2019-06-17 17:11 ` znavko
2019-06-18  2:33   ` Tobias Geerinckx-Rice
2019-06-18  8:01     ` pelzflorian (Florian Pelz)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).