All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] improve error handling in util/
@ 2008-02-11 16:01 Robert Millan
  2008-02-11 18:39 ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Millan @ 2008-02-11 16:01 UTC (permalink / raw)
  To: grub-devel

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


This improves error handling notably in util/.  For example, from:

$ ./grub-probe -t fs /
grub-probe: error: cannot find a GRUB drive for /dev/sda1.

to:

$ ./grub-probe -t fs /
error: cannot open `/dev/sda1' (Permission denied)
grub-probe: error: cannot find a GRUB drive for /dev/sda1.

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)

[-- Attachment #2: error.diff --]
[-- Type: text/x-diff, Size: 5281 bytes --]

2008-02-11  Robert Millan  <rmh@aybabtu.com>

	* util/biosdisk.c (grub_util_biosdisk_open, open_device)
	(grub_util_biosdisk_read, grub_util_biosdisk_write)
	(grub_util_biosdisk_get_grub_dev): When issuing grub_error() calls,
	include `strerror (errno)' information in the message string.

	* util/misc.c (grub_util_error): Invoke grub_print_error() before
	printing the caller-provided string.

diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/biosdisk.c ./util/biosdisk.c
--- ../grub2/util/biosdisk.c	2008-02-11 16:48:18.000000000 +0100
+++ ./util/biosdisk.c	2008-02-11 16:49:36.000000000 +0100
@@ -168,7 +168,7 @@ grub_util_biosdisk_open (const char *nam
 
     fd = open (map[drive], O_RDONLY);
     if (fd == -1)
-      return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[drive]);
+      return grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' (%s)", map[drive], strerror (errno));
 
     if (fstat (fd, &st) < 0 || ! S_ISBLK (st.st_mode))
       {
@@ -199,7 +199,7 @@ grub_util_biosdisk_open (const char *nam
 # warning "No special routine to get the size of a block device is implemented for your OS. This is not possibly fatal."
 #endif
   if (stat (map[drive], &st) < 0)
-    return grub_error (GRUB_ERR_BAD_DEVICE, "cannot stat `%s'", map[drive]);
+    return grub_error (GRUB_ERR_BAD_DEVICE, "cannot stat `%s' (%s)", map[drive], strerror (errno));
 
   disk->total_sectors = st.st_size >> GRUB_DISK_SECTOR_BITS;
   
@@ -307,7 +307,7 @@ open_device (const grub_disk_t disk, gru
     fd = open (dev, flags);
     if (fd < 0)
       {
-	grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", dev);
+	grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' (%s)", dev, strerror (errno));
 	return -1;
       }
 
@@ -321,7 +321,7 @@ open_device (const grub_disk_t disk, gru
   fd = open (map[disk->id], flags);
   if (fd < 0)
     {
-      grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", map[disk->id]);
+      grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' (%s)", map[disk->id], strerror (errno));
       return -1;
     }
 #endif /* ! __linux__ */
@@ -339,7 +339,7 @@ open_device (const grub_disk_t disk, gru
     offset = (loff_t) sector << GRUB_DISK_SECTOR_BITS;
     if (_llseek (fd, offset >> 32, offset & 0xffffffff, &result, SEEK_SET))
       {
-	grub_error (GRUB_ERR_BAD_DEVICE, "cannot seek `%s'", map[disk->id]);
+	grub_error (GRUB_ERR_BAD_DEVICE, "cannot seek `%s' (%s)", map[disk->id], strerror (errno));
 	close (fd);
 	return -1;
       }
@@ -350,7 +350,7 @@ open_device (const grub_disk_t disk, gru
 
     if (lseek (fd, offset, SEEK_SET) != offset)
       {
-	grub_error (GRUB_ERR_BAD_DEVICE, "cannot seek `%s'", map[disk->id]);
+	grub_error (GRUB_ERR_BAD_DEVICE, "cannot seek `%s' (%s)", map[disk->id], strerror (errno));
 	close (fd);
 	return -1;
       }
@@ -431,7 +431,7 @@ grub_util_biosdisk_read (grub_disk_t dis
 	 parts. -jochen  */
       if (nread (fd, buf, GRUB_DISK_SECTOR_SIZE) != GRUB_DISK_SECTOR_SIZE)
 	{
-	  grub_error (GRUB_ERR_READ_ERROR, "cannot read `%s'", map[disk->id]);
+	  grub_error (GRUB_ERR_READ_ERROR, "cannot read `%s' (%s)", map[disk->id], strerror (errno));
 	  close (fd);
 	  return grub_errno;
 	}
@@ -443,7 +443,7 @@ grub_util_biosdisk_read (grub_disk_t dis
   
   if (nread (fd, buf, size << GRUB_DISK_SECTOR_BITS)
       != (ssize_t) (size << GRUB_DISK_SECTOR_BITS))
-    grub_error (GRUB_ERR_READ_ERROR, "cannot read from `%s'", map[disk->id]);
+    grub_error (GRUB_ERR_READ_ERROR, "cannot read from `%s' (%s)", map[disk->id], strerror (errno));
 
   close (fd);
   return grub_errno;
@@ -461,7 +461,7 @@ grub_util_biosdisk_write (grub_disk_t di
   
   if (nwrite (fd, buf, size << GRUB_DISK_SECTOR_BITS)
       != (ssize_t) (size << GRUB_DISK_SECTOR_BITS))
-    grub_error (GRUB_ERR_WRITE_ERROR, "cannot write to `%s'", map[disk->id]);
+    grub_error (GRUB_ERR_WRITE_ERROR, "cannot write to `%s' (%s)", map[disk->id], strerror (errno));
 
   close (fd);
   return grub_errno;
@@ -695,7 +695,7 @@ grub_util_biosdisk_get_grub_dev (const c
 
   if (stat (os_dev, &st) < 0)
     {
-      grub_error (GRUB_ERR_BAD_DEVICE, "cannot stat `%s'", os_dev);
+      grub_error (GRUB_ERR_BAD_DEVICE, "cannot stat `%s' (%s)", os_dev, strerror (errno));
       return 0;
     }
 
@@ -775,7 +775,7 @@ grub_util_biosdisk_get_grub_dev (const c
     fd = open (os_dev, O_RDONLY);
     if (fd == -1)
       {
-	grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s'", os_dev);
+	grub_error (GRUB_ERR_BAD_DEVICE, "cannot open `%s' (%s)", os_dev, strerror (errno));
 	free (name);
 	return 0;
       }
@@ -783,7 +783,7 @@ grub_util_biosdisk_get_grub_dev (const c
     if (ioctl (fd, HDIO_GETGEO, &hdg))
       {
 	grub_error (GRUB_ERR_BAD_DEVICE,
-		    "cannot get geometry of `%s'", os_dev);
+		    "cannot get geometry of `%s' (%s)", os_dev, strerror (errno));
 	close (fd);
 	free (name);
 	return 0;
diff -x configure -x config.h.in -x CVS -x '*~' -x '*.mk' -urp ../grub2/util/misc.c ./util/misc.c
--- ../grub2/util/misc.c	2007-10-21 14:29:33.000000000 +0200
+++ ./util/misc.c	2008-02-11 16:49:36.000000000 +0100
@@ -61,6 +61,8 @@ void
 grub_util_error (const char *fmt, ...)
 {
   va_list ap;
+
+  grub_print_error ();
   
   fprintf (stderr, "%s: error: ", progname);
   va_start (ap, fmt);

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

* Re: [PATCH] improve error handling in util/
  2008-02-11 16:01 [PATCH] improve error handling in util/ Robert Millan
@ 2008-02-11 18:39 ` Jan Nieuwenhuizen
  2008-02-11 19:48   ` Robert Millan
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Nieuwenhuizen @ 2008-02-11 18:39 UTC (permalink / raw)
  To: The development of GRUB 2

Robert Millan:
> This improves error handling notably in util/.  For example, from:
> 
> $ ./grub-probe -t fs /
> grub-probe: error: cannot find a GRUB drive for /dev/sda1.

Sorry, still get the constant error message.

$ ./grub-probe -t partmap /boot
error: unknown device
grub-probe: error: unknown device

Also, had to make grub-probe specifically, this patch introduces  a
problem with grub-mkimage

$ make
gcc -o grub-mkimage grub_mkimage-util_i386_pc_grub_mkimage.o
grub_mkimage-util_misc.o grub_mkimage-util_resolve.o  -llzo2
grub_mkimage-util_misc.o: In function `grub_util_error':
/home/janneke/vc/grub2/util/misc.c:65: undefined reference to
`grub_print_error'
collect2: ld returned 1 exit status
make: *** [grub-mkimage] Fout 1

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




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

* Re: [PATCH] improve error handling in util/
  2008-02-11 18:39 ` Jan Nieuwenhuizen
@ 2008-02-11 19:48   ` Robert Millan
  2008-02-12  8:24     ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Millan @ 2008-02-11 19:48 UTC (permalink / raw)
  To: The development of GRUB 2

On Mon, Feb 11, 2008 at 07:39:56PM +0100, Jan Nieuwenhuizen wrote:
> Robert Millan:
> > This improves error handling notably in util/.  For example, from:
> > 
> > $ ./grub-probe -t fs /
> > grub-probe: error: cannot find a GRUB drive for /dev/sda1.
> 
> Sorry, still get the constant error message.
> 
> $ ./grub-probe -t partmap /boot
> error: unknown device
> grub-probe: error: unknown device

And with -vv ?

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



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

* Re: [PATCH] improve error handling in util/
  2008-02-11 19:48   ` Robert Millan
@ 2008-02-12  8:24     ` Jan Nieuwenhuizen
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Nieuwenhuizen @ 2008-02-12  8:24 UTC (permalink / raw)
  To: The development of GRUB 2

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

Robert Millan:

> And with -vv ?

See attached.

Greetings,

Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

[-- Attachment #2: grub.log --]
[-- Type: text/x-log, Size: 1676 bytes --]

grub-probe: info: changing current directory to /dev/mapper
grub-probe: info: opening lvmraid-lvm1
grub-probe: error: unknown device
kern/disk.c:220: Opening `hd0'...
kern/disk.c:299: Opening `hd0' failed.
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
kern/disk.c:299: Opening `hd0' failed.
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd1'...
kern/disk.c:299: Opening `hd1' failed.
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
kern/disk.c:299: Opening `hd1' failed.
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd2'...
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd0'...
kern/disk.c:299: Opening `hd0' failed.
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
kern/disk.c:299: Opening `hd0' failed.
kern/disk.c:312: Closing `hd0'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd1'...
kern/disk.c:299: Opening `hd1' failed.
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
kern/disk.c:299: Opening `hd1' failed.
kern/disk.c:312: Closing `hd1'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd2'...
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
kern/disk.c:299: Opening `hd2' failed.
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `lvmraid-lvm1'...
kern/disk.c:299: Opening `lvmraid-lvm1' failed.
kern/disk.c:312: Closing `lvmraid-lvm1'.
error: unknown device

[-- Attachment #3: sudo-grub.log --]
[-- Type: text/x-log, Size: 34846 bytes --]

grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd0 is 625142448
kern/disk.c:220: Opening `hd0'...
kern/disk.c:364: Reading `hd0'...
kern/disk.c:364: Reading `hd0'...
kern/disk.c:364: Reading `hd0'...
kern/disk.c:364: Reading `hd0'...
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd0'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd0'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:220: Opening `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:220: Opening `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:312: Closing `hd0,1'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:220: Opening `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,5'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0,5'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:312: Closing `hd0,5'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:220: Opening `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,6'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd0,6'...grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd1 is 625142448

partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:312: Closing `hd0,6'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd1'...
kern/disk.c:364: Reading `hd1'...
kern/disk.c:364: Reading `hd1'...
kern/disk.c:364: Reading `hd1'...
kern/disk.c:364: Reading `hd1'...
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd1'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:220: Opening `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:220: Opening `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:312: Closing `hd1,1'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:220: Opening `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,5'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1,5'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:312: Closing `hd1,5'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:220: Opening `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmgrub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
ap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:312: Closing `hd1,6'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd2'...
kern/disk.c:364: Reading `hd2'...
kern/disk.c:364: Reading `hd2'...
kern/disk.c:364: Reading `hd2'...
kern/disk.c:364: Reading `hd2'...
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd2'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd2'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
kern/disk.c:220: Opening `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/disk.c:364: Reading `hd2,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:312: Closing `hd2,1'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x83, start 0x9897, len 0x3a37c799
kern/disk.c:220: Opening `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/disk.c:364: Reading `hd2,2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
partmap/pc.c:141: partition 1: flag 0x0, type 0x83, start 0x9897, len 0x3a37c799
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:220: Opening `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/disk.c:364: Reading `hd2,2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
partmap/pc.c:141: partition 1: flag 0x0, type 0x83, start 0x9897, len 0x3a37c799
kern/disk.c:312: Closing `hd2,2'.
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd2'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `lvmplain-lvm0'...
kern/disk.c:364: Reading `lvmplain-lvm0'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:312: Closing `lvmplain-lvm0'.
kern/disk.c:220: Opening `lvmplain-lvm0'...
kern/disk.c:312: Closing `lvmplain-lvm0'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `lvmraid-lvm2'...
kern/disk.c:364: Reading `lvmraid-lvm2'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:312: Closing `lvmraid-lvm2'.
kern/disk.c:2grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: opening the device `/dev/sda1'
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: the size of hd0 is 625142448
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd0 is 625142448
20: Opening `lvmraid-lvm2'...
kern/disk.c:312: Closing `lvmraid-lvm2'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `lvmraid-lvm1'...
kern/disk.c:364: Reading `lvmraid-lvm1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:312: Closing `lvmraid-lvm1'.
kern/disk.c:220: Opening `lvmraid-lvm1'...
kern/disk.c:312: Closing `lvmraid-lvm1'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `lvmraid-lvm0'...
kern/disk.c:364: Reading `lvmraid-lvm0'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:312: Closing `lvmraid-lvm0'.
kern/disk.c:220: Opening `lvmraid-lvm0'...
kern/disk.c:312: Closing `lvmraid-lvm0'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd0'...
kern/disk.c:364: Reading `hd0'...
kern/disk.c:312: Closing `hd0'.
kern/disk.c:220: Opening `hd0'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd0'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd0'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:312: Closing `hd0,1'.
disk/raid.c:517: Found array: md0
kern/disk.c:220: Opening `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
kern/disk.c:364: Reading `hd0,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
disk/raid.c:543: Array is RAID level 1, but the size of disk 0 (0x2542eab0) doesn't match with size indicated by superblock (0x24ed0a00).  Assuming superblock is wrong.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:364: Reading `hd0,5'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd0,5'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0,5'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:364: Reading `hd0,5'...
kern/disk.c:312: Closing `hd0,5'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd0'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:364: Reading `hd0,6'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256grub-probe: info: opening the device `/dev/sda'
grub-probe: info: opening the device `/dev/sda'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: opening the device `/dev/sdb1'
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: opening the device `/dev/sdb'
; wanted 0x504d
kern/disk.c:364: Reading `hd0,6'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd0,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd0,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:364: Reading `hd0,6'...
kern/disk.c:312: Closing `hd0,6'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
kern/disk.c:312: Closing `hd0'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd1'...
kern/disk.c:364: Reading `hd1'...
kern/disk.c:312: Closing `hd1'.
kern/disk.c:220: Opening `hd1'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd1'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:312: Closing `hd1,1'.
kern/disk.c:220: Opening `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
kern/disk.c:364: Reading `hd1,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:364: Reading `hd1,5'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,5'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1,5'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
kern/disk.c:364: Reading `hd1,5'...
kern/disk.c:312: Closing `hd1,5'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Rgrub-probe: info: the size of hd1 is 625142448
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: opening the device `/dev/sdb'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc1'
grub-probe: info: opening the device `/dev/sdc1'
grub-probe: info: the size of hd2 is 976773168
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: opening the device `/dev/sdc2'
grub-probe: info: changing current directory to /dev/mapper
grub-probe: info: opening lvmraid-lvm1
grub-probe: info: No partition map found for lvmraid-lvm1
eading `hd1'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:364: Reading `hd1,6'...
partmap/apple.c:124: partition 0: bad magic (found 0x5256; wanted 0x504d
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x80, type 0xfd, start 0x3f, len 0x24ed0aa4
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x24ed0ae3, len 0x55cbde
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x83, start 0x24ed0ae4, len 0x1dc9c9
partmap/pc.c:141: partition 1: flag 0x0, type 0x5, start 0x250ad4ad, len 0x380214
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x24ed0ae3, len 0x0
kern/disk.c:364: Reading `hd1,6'...
partmap/pc.c:141: partition 0: flag 0x0, type 0x82, start 0x250ad4ae, len 0x380213
kern/disk.c:364: Reading `hd1,6'...
kern/disk.c:312: Closing `hd1,6'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x250ad4ad, len 0x0
kern/disk.c:312: Closing `hd1'.
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd2'...
kern/disk.c:364: Reading `hd2'...
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `hd2'...
kern/partition.c:108: Detecting gpt_partition_map...
kern/disk.c:364: Reading `hd2'...
kern/partition.c:114: gpt_partition_map detection failed.
kern/partition.c:108: Detecting apple_partition_map...
kern/disk.c:364: Reading `hd2'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/partition.c:114: apple_partition_map detection failed.
kern/partition.c:108: Detecting pc_partition_map...
kern/disk.c:364: Reading `hd2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
kern/partition.c:119: pc_partition_map detection succeeded.
kern/disk.c:364: Reading `hd2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:364: Reading `hd2,1'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/disk.c:364: Reading `hd2,1'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
kern/disk.c:364: Reading `hd2,1'...
kern/disk.c:312: Closing `hd2,1'.
partmap/pc.c:141: partition 1: flag 0x0, type 0x83, start 0x9897, len 0x3a37c799
disk/raid.c:359: Scanning for RAID devices
kern/disk.c:220: Opening `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:364: Reading `hd2,2'...
partmap/apple.c:124: partition 0: bad magic (found 0x0; wanted 0x504d
kern/disk.c:364: Reading `hd2,2'...
partmap/pc.c:141: partition 0: flag 0x80, type 0x83, start 0x1, len 0x9896
partmap/pc.c:141: partition 1: flag 0x0, type 0x83, start 0x9897, len 0x3a37c799
kern/disk.c:364: Reading `hd2,2'...
kern/disk.c:312: Closing `hd2,2'.
partmap/pc.c:141: partition 2: flag 0x0, type 0x0, start 0x0, len 0x0
partmap/pc.c:141: partition 3: flag 0x0, type 0x0, start 0x0, len 0x0
kern/disk.c:312: Closing `hd2'.
kern/disk.c:220: Opening `lvmraid-lvm1'...
pc
kern/disk.c:312: Closing `lvmraid-lvm1'.

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

end of thread, other threads:[~2008-02-12  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11 16:01 [PATCH] improve error handling in util/ Robert Millan
2008-02-11 18:39 ` Jan Nieuwenhuizen
2008-02-11 19:48   ` Robert Millan
2008-02-12  8:24     ` Jan Nieuwenhuizen

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.