All of lore.kernel.org
 help / color / mirror / Atom feed
* grub2 /boot on lvm on ubuntu - incorrect magic number
@ 2008-10-04 14:52 Cameron Braid
  2008-10-04 15:52 ` Andy Goth
  2008-10-04 15:56 ` Andy Goth
  0 siblings, 2 replies; 6+ messages in thread
From: Cameron Braid @ 2008-10-04 14:52 UTC (permalink / raw)
  To: grub-devel

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

I have the following setup

* ubuntu hardy on amd64
* grub2 from subversion trunk r1885
* root partition is a lvm device (/dev/mapper/Ubuntu-hardy64)
* /boot is a folder on the root filesystem
* /dev/sdd is one of the hard drives in the physical volume
* the /boot/grub/device.map contains an entry for all of my hard drives

when running grub-install I get the following error :

beast:grub2$ sudo grub-install /dev/sdd
error: Unknown metadata header
error: Unknown metadata header
grub-probe: error: no mapping exists for `Ubuntu-hardy64'
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

I found that grub-install exists after the "grub-probe" command is unable to
resolve a filesystem for this device.  So, I ran the same probe command with
the verbosity increased. see attached grub-probe.txt

This didn't really show up anything, so I modified lvm.c to tell me if it
was the version or the magic number that was wrong.  It was the magic
number.

I am not a C programmer, but fezie on #grub was able to help me print out
what my actual magic number is :

grub_util_info("magic =
%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX-%hhX",mdah->magic[0],mdah->magic[1],mdah->magic[2],mdah->magic[3],mdah->magic[4],mdah->magic[5],mdah->magic[6],mdah->magic[7],mdah->magic[8],mdah->magic[9],mdah->magic[10],mdah->magic[11],mdah->magic[12],mdah->magic[13],mdah->magic[14],mdah->magic[15]);

which produces : 61-20-7B-0A-69-64-20-3D-20-22-32-43-39-54-54-4C

which obviously doesn't match GRUB_LVM_FMTT_VERSION (in hex :
20-4C-56-4D-32-20-78-5B-35-41-25-72-30-4E-2A-3E - fezie ran the same code on
his debian amd64 box)

So, my magic number is wrong.

Is this an issue with ubuntu's LVM, or an issue with my LVM device ?

Is there a tool to fix this, or can grub2 work around it ?

Cheers,

Cameron

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

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

* Re: grub2 /boot on lvm on ubuntu - incorrect magic number
  2008-10-04 14:52 grub2 /boot on lvm on ubuntu - incorrect magic number Cameron Braid
@ 2008-10-04 15:52 ` Andy Goth
  2008-10-04 22:56   ` Cameron Braid
  2008-10-04 15:56 ` Andy Goth
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Goth @ 2008-10-04 15:52 UTC (permalink / raw)
  To: The development of GRUB 2

"Cameron Braid" <cameron@braid.com.au> wrote:
> I found that grub-install exists after the "grub-probe" command is
> unable to resolve a filesystem for this device. So, I ran the same
> probe command with the verbosity increased. see attached
> grub-probe.txt

The attachment seems to be missing.

-- 
Andy Goth | http://andy.junkdrome.org/
unununium@{aircanopy.net,openverse.com}



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

* Re: grub2 /boot on lvm on ubuntu - incorrect magic number
  2008-10-04 14:52 grub2 /boot on lvm on ubuntu - incorrect magic number Cameron Braid
  2008-10-04 15:52 ` Andy Goth
@ 2008-10-04 15:56 ` Andy Goth
  2008-10-04 22:59   ` Cameron Braid
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Goth @ 2008-10-04 15:56 UTC (permalink / raw)
  To: The development of GRUB 2

"Cameron Braid" <cameron@braid.com.au> wrote:
> * root partition is a lvm device (/dev/mapper/Ubuntu-hardy64)
> 
> beast:grub2$ sudo grub-install /dev/sdd

From looking at the GRUB 1.96 sources, I get the impression that this command line should be:

$ sudo grub-install /dev/mapper/Ubuntu-hardy64

in order for grub-probe to see the abstraction as GRUB_DEV_ABSTRACTION_LVM.

I could be majorly wrong, and this may have changed between 1.96 and the version that Cameron is using, but... I'm just trying to figure out how GRUB works. :^)

-- 
Andy Goth | http://andy.junkdrome.org/
unununium@{aircanopy.net,openverse.com}



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

* Re: grub2 /boot on lvm on ubuntu - incorrect magic number
  2008-10-04 15:52 ` Andy Goth
@ 2008-10-04 22:56   ` Cameron Braid
  0 siblings, 0 replies; 6+ messages in thread
From: Cameron Braid @ 2008-10-04 22:56 UTC (permalink / raw)
  To: The development of GRUB 2


[-- Attachment #1.1: Type: text/plain, Size: 662 bytes --]

Silly me!

Here is is

Cameron

On Sun, Oct 5, 2008 at 1:52 AM, Andy Goth <unununium@aircanopy.net> wrote:

> "Cameron Braid" <cameron@braid.com.au> wrote:
> > I found that grub-install exists after the "grub-probe" command is
> > unable to resolve a filesystem for this device. So, I ran the same
> > probe command with the verbosity increased. see attached
> > grub-probe.txt
>
> The attachment seems to be missing.
>
> --
> Andy Goth | http://andy.junkdrome.org/
> unununium@{aircanopy.net,openverse.com}
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #1.2: Type: text/html, Size: 1377 bytes --]

[-- Attachment #2: grub-probe.txt --]
[-- Type: text/plain, Size: 15861 bytes --]

kern/disk.c:220: Opening `hd0'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0'...
util/hostdisk.c:316: opening the device `/dev/sda' in open_device()kern/disk.c:368: Reading `hd0'...
kern/disk.c:368: Reading `hd0'...
kern/disk.c:368: Reading `hd0'...
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
grub-probe: info: the size of hd0 is 80293248
kern/partition.c:106: Detecting gpt_partition_map...
kern/disk.c:368: Reading `hd0'...
kern/partition.c:112: gpt_partition_map detection failed.
kern/partition.c:106: Detecting apple_partition_map...
kern/disk.c:368: Reading `hd0'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/partition.c:112: apple_partition_map detection failed.
kern/partition.c:106: Detecting pc_partition_map...
kern/disk.c:368: Reading `hd0'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
kern/partition.c:117: pc_partition_map detection succeeded.
kern/disk.c:368: Reading `hd0'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
kern/disk.c:220: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0,1'...
kern/disk.c:368: Reading `hd0,1'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd0,1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
kern/disk.c:368: Reading `hd0,1'...
util/hostdisk.c:316: opening the device `/dev/sda1' in open_device()util/hostdisk.c:316: opening the device `/dev/sda1' in open_device()kern/disk.c:368: Reading `hd0,1'...
util/hostdisk.c:316: opening the device `/dev/sda1' in open_device()kern/disk.c:368: Reading `hd0,1'...
kern/disk.c:368: Reading `hd0,1'...
kern/disk.c:312: Closing `hd0,1'.
partmap/pc.c:143: partition 1: flag 0x80, type 0x83, start 0x7a90f4, len 0x7acfb5
kern/disk.c:220: Opening `hd0,2'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0,2'...
kern/disk.c:368: Reading `hd0,2'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd0,2'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
partmap/pc.c:143: partition 1: flag 0x80, type 0x83, start 0x7a90f4, len 0x7acfb5
kern/disk.c:368: Reading `hd0,2'...
util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()kern/disk.c:368: Reading `hd0,2'...
util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()kern/disk.c:368: Reading `hd0,2'...
util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()kern/disk.c:368: Reading `hd0,2'...
util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()kern/disk.c:312: Closing `hd0,2'.
partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd1'...
grub-probe: info: the size of hd1 is 312581808
kern/disk.c:368: Reading `hd1'...
util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()kern/disk.c:368: Reading `hd1'...
kern/disk.c:368: Reading `hd1'...
kern/disk.c:368: Reading `hd1'...
util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
grub-probe: info: the size of hd1 is 312581808
kern/disk.c:299: Opening `hd1' failed.
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd2'...
grub-probe: info: the size of hd2 is 976773168
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
grub-probe: info: the size of hd2 is 976773168
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd3'...
grub-probe: info: the size of hd3 is 976773168
kern/disk.c:299: Opening `hd3' failed.
kern/disk.c:312: Closing `hd3'.
kern/disk.c:220: Opening `hd3'...
grub-probe: info: the size of hd3 is 976773168
kern/disk.c:299: Opening `hd3' failed.
kern/disk.c:312: Closing `hd3'.
error: Unknown metadata header
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd0'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0'...
util/hostdisk.c:316: opening the device `/dev/sda' in open_device()kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
grub-probe: info: the size of hd0 is 80293248
kern/partition.c:106: Detecting gpt_partition_map...
kern/disk.c:368: Reading `hd0'...
kern/partition.c:112: gpt_partition_map detection failed.
kern/partition.c:106: Detecting apple_partition_map...
kern/disk.c:368: Reading `hd0'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/partition.c:112: apple_partition_map detection failed.
kern/partition.c:106: Detecting pc_partition_map...
kern/disk.c:368: Reading `hd0'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
kern/partition.c:117: pc_partition_map detection succeeded.
kern/disk.c:368: Reading `hd0'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd0,1'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0,1'...
kern/disk.c:368: Reading `hd0,1'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd0,1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
kern/disk.c:368: Reading `hd0,1'...
util/hostdisk.c:316: opening the device `/dev/sda1' in open_device()util/hostdisk.c:316: opening the device `/dev/sda1' in open_device()kern/disk.c:312: Closing `hd0,1'.
partmap/pc.c:143: partition 1: flag 0x80, type 0x83, start 0x7a90f4, len 0x7acfb5
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd0,2'...
grub-probe: info: the size of hd0 is 80293248
kern/disk.c:368: Reading `hd0,2'...
kern/disk.c:368: Reading `hd0,2'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd0,2'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x83, start 0x3f, len 0x7a90b5
partmap/pc.c:143: partition 1: flag 0x80, type 0x83, start 0x7a90f4, len 0x7acfb5
kern/disk.c:368: Reading `hd0,2'...
util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()util/hostdisk.c:316: opening the device `/dev/sda2' in open_device()kern/disk.c:312: Closing `hd0,2'.
partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd0'.
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd1'...
grub-probe: info: the size of hd1 is 312581808
kern/disk.c:368: Reading `hd1'...
util/hostdisk.c:316: opening the device `/dev/sdb' in open_device()kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
grub-probe: info: the size of hd1 is 312581808
kern/partition.c:106: Detecting gpt_partition_map...
kern/disk.c:368: Reading `hd1'...
kern/partition.c:112: gpt_partition_map detection failed.
kern/partition.c:106: Detecting apple_partition_map...
kern/disk.c:368: Reading `hd1'...
partmap/apple.c:129: bad magic (found 0x0; wanted 0x4552
kern/partition.c:112: apple_partition_map detection failed.
kern/partition.c:106: Detecting pc_partition_map...
kern/disk.c:368: Reading `hd1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x1, len 0x12a18ac0
kern/partition.c:117: pc_partition_map detection succeeded.
kern/disk.c:368: Reading `hd1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x1, len 0x12a18ac0
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd1,1'...
grub-probe: info: the size of hd1 is 312581808
kern/disk.c:368: Reading `hd1,1'...
kern/disk.c:368: Reading `hd1,1'...
partmap/apple.c:129: bad magic (found 0x0; wanted 0x4552
kern/disk.c:368: Reading `hd1,1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x1, len 0x12a18ac0
kern/disk.c:368: Reading `hd1,1'...
util/hostdisk.c:316: opening the device `/dev/sdb1' in open_device()util/hostdisk.c:316: opening the device `/dev/sdb1' in open_device()kern/disk.c:312: Closing `hd1,1'.
partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd1'.
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd2'...
grub-probe: info: the size of hd2 is 976773168
kern/disk.c:368: Reading `hd2'...
util/hostdisk.c:316: opening the device `/dev/sdc' in open_device()kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
grub-probe: info: the size of hd2 is 976773168
kern/partition.c:106: Detecting gpt_partition_map...
kern/disk.c:368: Reading `hd2'...
util/hostdisk.c:316: opening the device `/dev/sdc' in open_device()kern/partition.c:112: gpt_partition_map detection failed.
kern/partition.c:106: Detecting apple_partition_map...
kern/disk.c:368: Reading `hd2'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/partition.c:112: apple_partition_map detection failed.
kern/partition.c:106: Detecting pc_partition_map...
kern/disk.c:368: Reading `hd2'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
kern/partition.c:117: pc_partition_map detection succeeded.
kern/disk.c:368: Reading `hd2'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd2,1'...
grub-probe: info: the size of hd2 is 976773168
kern/disk.c:368: Reading `hd2,1'...
kern/disk.c:368: Reading `hd2,1'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd2,1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
kern/disk.c:368: Reading `hd2,1'...
util/hostdisk.c:316: opening the device `/dev/sdc1' in open_device()util/hostdisk.c:316: opening the device `/dev/sdc1' in open_device()kern/disk.c:312: Closing `hd2,1'.
partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd2'.
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd3'...
grub-probe: info: the size of hd3 is 976773168
kern/disk.c:368: Reading `hd3'...
util/hostdisk.c:316: opening the device `/dev/sdd' in open_device()kern/disk.c:312: Closing `hd3'.
kern/disk.c:220: Opening `hd3'...
grub-probe: info: the size of hd3 is 976773168
kern/partition.c:106: Detecting gpt_partition_map...
kern/disk.c:368: Reading `hd3'...
util/hostdisk.c:316: opening the device `/dev/sdd' in open_device()kern/partition.c:112: gpt_partition_map detection failed.
kern/partition.c:106: Detecting apple_partition_map...
kern/disk.c:368: Reading `hd3'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/partition.c:112: apple_partition_map detection failed.
kern/partition.c:106: Detecting pc_partition_map...
kern/disk.c:368: Reading `hd3'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
kern/partition.c:117: pc_partition_map detection succeeded.
kern/disk.c:368: Reading `hd3'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
disk/raid.c:604: Scanning for RAID devices
kern/disk.c:220: Opening `hd3,1'...
grub-probe: info: the size of hd3 is 976773168
kern/disk.c:368: Reading `hd3,1'...
kern/disk.c:368: Reading `hd3,1'...
partmap/apple.c:129: bad magic (found 0xeb4c; wanted 0x4552
kern/disk.c:368: Reading `hd3,1'...
partmap/pc.c:143: partition 0: flag 0x0, type 0x8e, start 0x3f, len 0x3a384c02
kern/disk.c:368: Reading `hd3,1'...
util/hostdisk.c:316: opening the device `/dev/sdd1' in open_device()util/hostdisk.c:316: opening the device `/dev/sdd1' in open_device()kern/disk.c:312: Closing `hd3,1'.
partmap/pc.c:143: partition 1: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:143: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd3'.
grub-probe: info: opening Ubuntu-hardy64
kern/disk.c:220: Opening `Ubuntu-hardy64'...
kern/disk.c:299: Opening `Ubuntu-hardy64' failed.
kern/disk.c:312: Closing `Ubuntu-hardy64'.
grub-probe: error: no mapping exists for `Ubuntu-hardy64'


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

* Re: grub2 /boot on lvm on ubuntu - incorrect magic number
  2008-10-04 15:56 ` Andy Goth
@ 2008-10-04 22:59   ` Cameron Braid
  2008-10-08 13:24     ` Cameron Braid
  0 siblings, 1 reply; 6+ messages in thread
From: Cameron Braid @ 2008-10-04 22:59 UTC (permalink / raw)
  To: The development of GRUB 2

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

> $ sudo grub-install /dev/mapper/Ubuntu-hardy64

I thought that the install_device argument to grub-install had to be a
harddisk (to use the MBR) or a partition in which the grub image was
installed.  And I thought that grub detects the abstraction based on what
/boot points to.

Cameron


On Sun, Oct 5, 2008 at 1:56 AM, Andy Goth <unununium@aircanopy.net> wrote:

> "Cameron Braid" <cameron@braid.com.au> wrote:
> > * root partition is a lvm device (/dev/mapper/Ubuntu-hardy64)
> >
> > beast:grub2$ sudo grub-install /dev/sdd
>
> From looking at the GRUB 1.96 sources, I get the impression that this
> command line should be:
>
> $ sudo grub-install /dev/mapper/Ubuntu-hardy64
>
> in order for grub-probe to see the abstraction as GRUB_DEV_ABSTRACTION_LVM.
>
> I could be majorly wrong, and this may have changed between 1.96 and the
> version that Cameron is using, but... I'm just trying to figure out how GRUB
> works. :^)
>
> --
> Andy Goth | http://andy.junkdrome.org/
> unununium@{aircanopy.net,openverse.com}
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>

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

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

* Re: grub2 /boot on lvm on ubuntu - incorrect magic number
  2008-10-04 22:59   ` Cameron Braid
@ 2008-10-08 13:24     ` Cameron Braid
  0 siblings, 0 replies; 6+ messages in thread
From: Cameron Braid @ 2008-10-08 13:24 UTC (permalink / raw)
  To: The development of GRUB 2

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

Is this a bug in grub2 .. i.e. should I submit a bug with the grub2
bugtracker, or should I chase this up with some LVM people ?

Cheers

Cameron

On Sun, Oct 5, 2008 at 8:59 AM, Cameron Braid <cameron@braid.com.au> wrote:

> > $ sudo grub-install /dev/mapper/Ubuntu-hardy64
>
> I thought that the install_device argument to grub-install had to be a
> harddisk (to use the MBR) or a partition in which the grub image was
> installed.  And I thought that grub detects the abstraction based on what
> /boot points to.
>
> Cameron
>
>
>
> On Sun, Oct 5, 2008 at 1:56 AM, Andy Goth <unununium@aircanopy.net> wrote:
>
>> "Cameron Braid" <cameron@braid.com.au> wrote:
>> > * root partition is a lvm device (/dev/mapper/Ubuntu-hardy64)
>> >
>> > beast:grub2$ sudo grub-install /dev/sdd
>>
>> From looking at the GRUB 1.96 sources, I get the impression that this
>> command line should be:
>>
>> $ sudo grub-install /dev/mapper/Ubuntu-hardy64
>>
>> in order for grub-probe to see the abstraction as
>> GRUB_DEV_ABSTRACTION_LVM.
>>
>> I could be majorly wrong, and this may have changed between 1.96 and the
>> version that Cameron is using, but... I'm just trying to figure out how GRUB
>> works. :^)
>>
>> --
>> Andy Goth | http://andy.junkdrome.org/
>> unununium@{aircanopy.net,openverse.com}
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>
>
>

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

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

end of thread, other threads:[~2008-10-08 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-04 14:52 grub2 /boot on lvm on ubuntu - incorrect magic number Cameron Braid
2008-10-04 15:52 ` Andy Goth
2008-10-04 22:56   ` Cameron Braid
2008-10-04 15:56 ` Andy Goth
2008-10-04 22:59   ` Cameron Braid
2008-10-08 13:24     ` Cameron Braid

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.