help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q: embed stage 1.5 to specific sectors (unmapped hole) on a device?


From: Michael Evans
Subject: Q: embed stage 1.5 to specific sectors (unmapped hole) on a device?
Date: Tue, 7 Jul 2009 01:33:47 -0700

I want to install stage 1.5 in to sectors 34 up to 127, I've tried the following without success.

grub> setup (hd0)34+93
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"... failed (this is not fatal)
 Running "embed /grub/e2fs_stage1_5 (hd0,4)"... failed (this is not fatal)
 Running "install /grub/stage1 (hd0) /grub/stage2 p /grub/menu.lst "... succeeded
Done.

grub> embed /grub/e2fs_stage1_5 (hd0)34+93

Error 34: No spare sectors on the disk

grub> embed /grub/e2fs_stage1_5 (hd0)+34

Error 34: No spare sectors on the disk

Here is the relevant printout from parted for the device
Partition Table: gpt

Number  Start       End          Size        File system  Name  Flags
 1      128s        133247s      133120s

I know that sector 33 is the last used sector in the gpt label, I know that 128 is the first used sector in my boot partition.  Thus, there is a hole available that I'd like to be able to use without referencing as a partition.

How do I tell grub to do what I know is technically possible?  Or do I really have to add a partition entry just for stage 1.5?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]