grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] disk/mdraid1x: Fix >2TB RAID detection with BIOS


From: Robert LeBlanc
Subject: Re: [PATCH] disk/mdraid1x: Fix >2TB RAID detection with BIOS
Date: Fri, 18 Nov 2016 13:43:02 -0700

I could not get GRUB rescue to use the serial console so I'm attaching
a screenshot for the unpatched version of GRUB.

Here is the patched version of GRUB

                         GNU GRUB  version 2.02~beta3

  Minimal BASH-like line editing is supported. For the first word, TAB
  lists possible command completions. Anywhere else TAB lists possible
  device or file completions. ESC at any time exits.


grub> ls -l
Device hd0: No known filesystem detected - Sector size 512B - Total size
2147483648KiB
       Partition hd0,gpt2: No known filesystem detected - Partition start at
2048KiB - Total size 5368707055.5KiB
       Partition hd0,gpt1: No known filesystem detected - Partition start at
1024KiB - Total size 1024KiB
Device md/123: No known filesystem detected - Sector size 512B - Total size
5368575936KiB
       Partition md/123,gpt4: Filesystem type ext* - Last modification time
2016-11-18 20:00:50 Friday, UUID dd584910-dab0-4d06-b768-9e7d8edf83ed -
Partition start at 6221824KiB - Total size 5362353152KiB
       Partition md/123,gpt3: Filesystem type ext* - Last modification time
2016-11-18 20:05:14 Friday, UUID 9e5fd3bf-cd08-4086-8d9e-73ac278e4a4c -
Partition start at 5244928KiB - Total size 976896KiB
       Partition md/123,gpt2: No known filesystem detected - Partition start
at 2048KiB - Total size 5242880KiB
       Partition md/123,gpt1: No known filesystem detected - Partition start
at 1024KiB - Total size 1024KiB

grub>
----------------
Robert LeBlanc
PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1


On Fri, Nov 18, 2016 at 11:24 AM, Andrei Borzenkov <address@hidden> wrote:
> 18.11.2016 21:19, Robert LeBlanc пишет:
>> Do you want this with or without my patch?
>
> It does not matter, I want to see what grub thinks about physical disks
> and their partitions.
>
>> ----------------
>> Robert LeBlanc
>> PGP Fingerprint 79A2 9CA4 6CC4 45DD A904  C70E E654 3BB2 FA62 B9F1
>>
>>
>> On Fri, Nov 18, 2016 at 11:15 AM, Andrei Borzenkov <address@hidden> wrote:
>>> 18.11.2016 21:06, Robert LeBlanc пишет:
>>>> On Fri, Nov 18, 2016 at 10:31 AM, Andrei Borzenkov <address@hidden> wrote:
>>>>> 18.11.2016 19:49, Robert LeBlanc пишет:
>>>>>> Based on debug info, GRUB is requesting to read the end of the drive
>>>>>> to read the mdadm 1.0 superblock and gets the following message:
>>>>>>
>>>>>> kern/disk.c:421: Read out of range: sector 0x27fffffc8 (attempt to
>>>>>> read or write outside of disk 'hd0').
>>>>>>
>>>>>
>>>>> Is MD RAID on whole disk or partition? What partition label - MBR or
>>>>> GPT? Could you post fdisk -l from Linux (if your fdisk does not support
>>>>> GPT, use "gdisk -l /dev/sdX")?
>>>>
>>>> # gdisk -l /dev/sda
>>>> GPT fdisk (gdisk) version 1.0.1
>>>>
>>>> Partition table scan:
>>>>  MBR: protective
>>>>  BSD: not present
>>>>  APM: not present
>>>>  GPT: present
>>>>
>>>> Found valid GPT with protective MBR; using GPT.
>>>> Disk /dev/sda: 10737418240 sectors, 5.0 TiB
>>>> Logical sector size: 512 bytes
>>>> Disk identifier (GUID): 939F7AAD-AADD-481D-8896-DA0B4033C70C
>>>> Partition table holds up to 128 entries
>>>> First usable sector is 2048, last usable sector is 10737418206
>>>> Partitions will be aligned on 2048-sector boundaries
>>>> Total free space is 0 sectors (0 bytes)
>>>>
>>>> Number  Start (sector)    End (sector)  Size       Code  Name
>>>>   1            2048            4095   1024.0 KiB  EF02
>>>>   2            4096     10737418206   5.0 TiB     FD00
>>>>
>>>> partition # is a mdadm RAID 1 member partitioned as follows...
>>>>
>>>> # sgdisk -l /dev/md123
>>>> # parted /dev/md123 print free
>>>> Model: Linux Software RAID Array (md)
>>>> Disk /dev/md123: 5497GB
>>>> Sector size (logical/physical): 512B/512B
>>>> Partition Table: gpt
>>>> Disk Flags:
>>>>
>>>> Number  Start   End     Size    File system     Name  Flags
>>>>        17.4kB  1049kB  1031kB  Free Space
>>>> 1      1049kB  2097kB  1049kB                        bios_grub
>>>> 2      2097kB  5371MB  5369MB  linux-swap(v1)
>>>> 3      5371MB  6371MB  1000MB  ext2
>>>> 4      6371MB  5497GB  5491GB  ext4
>>>>        5497GB  5497GB  966kB   Free Space
>>>>
>>>> /dev/sdb is partitioned identically to /dev/sda
>>>>
>>>
>>> OK, could you please also show "ls -l" in grub CLI; if you cannot
>>> capture serial console, attach screenshot(s). You may want to "set
>>> pager=1" so output does not scroll off screen.
>>>
>>>
>

Attachment: grub_5tb.png
Description: PNG image


reply via email to

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