Subject: Re: Grub2 with sparc64 patches




> On Jan 24, 2017, at 6:34 AM, Frans van Berckel <[email protected]> wrote:
>
> Hi Eric,
>
> On Mon, 2017-01-23 at 12:38 -0700, Eric Snowberg wrote:
>
>> Since the T5240 doesn’t support GPT, we have to use blocklists, could
>> you try this instead:
>>
>> # grub-install —force /dev/sdb1
>>
>> The following warning can be ignored for now:
>>
>> Installing for sparc64-ieee1275 platform.
>> 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..
>> Installation finished. No error reported.
>
> On an old Sun Blade 1000, without GPT partition table ...
>
> # fdisk -l
>
> Disk /dev/sda: 68.4 GiB, 73407865856 bytes, 143374738 sectors
> Geometry: 255 heads, 63 sectors/track, 8922 cylinders
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: sun
>
> Device Start End Sectors Size Id Type Flags
> /dev/sda1 0 1048575 1048576 512M 1 Boot
> /dev/sda2 1060290 2779244 1718955 839.3M 82 Linux swap u
> /dev/sda3 0 143364059 143364060 68.4G 5 Whole disk
> /dev/sda4 2779245 73095749 70316505 33.5G 83 Linux native
> /dev/sda5 73095750 143364059 70268310 33.5G 83 Linux native
>
> ... it does this error as well ...<...

/i>
>
> # grub-install /dev/sda
>
> Installing for sparc64-ieee1275 platform.
> grub-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..
> grub-install: error: will not proceed with blocklists.
>
> ... do i need to install it with a force on /dev/sda1 as well?

With a sun/vtoc partition table like you have on a Sun Blade 1000. You will
need to give it the boot partition (/dev/sda1 in your case) along with the
—force option. For your system I’d recommend doing:

# grub-install --force --skip-fs-probe /dev/sda1


If you were on a T4 or above that supports GPT and had a partition table like
this:

Model: LSI MR9361-8i (scsi)
Disk /dev/sda: 2995GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 1075MB 1074MB ext3
2 1075MB 1076MB 1049kB bios_grub
3 1076MB 2995GB 2994GB lvm

Then you could do:

# grub-install /dev/sda

> Question, and how is this gonna remove the silo boot block on disk?

This will remove silo’s boot block and replace it with grub's. If you want to
go back to silo, just do:

silo -r /

>
> Thanks,
>
> Frans van Berckel



Programming list archiving by: Enterprise Git Hosting