grub2 and Linux software RAID devices

2008-02-04 Thread Sam Morris
or, at <http://www.mail-archive.com/grub-devel@gnu.org/msg02873.html> but no one ever committed it. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Description: This is a digitally signed message part __

Re: grub2 and Linux software RAID devices

2008-02-04 Thread Sam Morris
On Mon, 04 Feb 2008 23:43:38 +0100, Robert Millan wrote: > On Mon, Feb 04, 2008 at 09:36:45PM +0000, Sam Morris wrote: >> Hi there, >> >> A while ago, I tried grub2 on my Debian system, which has my root >> filesystem on a Linux software RAID-1 array. I ran into some

Re: grub2 and Linux software RAID devices

2008-02-04 Thread Sam Morris
nto the rescue shell; but I can't remember (and I don't understand why, if I was kicked into the rescue shell becuase grub tried to read past the 'end' of my disk, why I can immediatly issue the 'normal' command to go to the menu and ha

Re: grub2 and Linux software RAID devices

2008-02-05 Thread Sam Morris
On Tue, 05 Feb 2008 10:35:19 +0100, Robert Millan wrote: > On Tue, Feb 05, 2008 at 01:32:46AM +0000, Sam Morris wrote: >> >> Version 1.96+20080203-1 behaves differently; I am simply dropped to the >> rescue shell, and I can't load any modules (because root is set to

Re: grub2 and Linux software RAID devices

2008-02-06 Thread Sam Morris
On Wed, 06 Feb 2008 00:49:24 +, Sam Morris wrote: > Then the screen blanks, and the next thing printed is: > > Welcome to GRUB! > > Entering into rescue mode... > grub rescue> > > Whereupon I can enter 'insmod normal' and then 'normal' to

[PATCH] tell the user why they are in rescue mode

2008-02-07 Thread Sam Morris
Here's a patch that explains to the user why they are being sent to rescue mode in cast normal mode fails. I've also corrected a grammatical error in the 'entering rescue mode' message. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B

Re: [PATCH] tell the user why they are in rescue mode

2008-02-08 Thread Sam Morris
On Fri, 08 Feb 2008 02:10:29 +0100, Robert Millan wrote: > Hi Sam, > > On Thu, Feb 07, 2008 at 06:34:26PM +0000, Sam Morris wrote: >> diff -ru grub2-1.96+20080203+orig/kern/main.c >> grub2-1.96+20080203+sam/kern/main.c --- >> grub2-1.96+20080203+orig/kern/main.c 20

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Sam Morris
4) at util/biosdisk.c:131 i = 131 #6 0x0804b914 in grub_disk_dev_iterate (hook=0xbfb81c94) at kern/disk.c:205 p = (grub_disk_dev_t) 0x8063720 #7 0x0804b614 in grub_device_iterate (hook=0x80601c0 ) at kern/device.c:138

Re: [PATCH] fix for partmap detection on RAID/LVM

2008-02-08 Thread Sam Morris
On Fri, 08 Feb 2008 20:38:56 +0100, Robert Millan wrote: > On Fri, Feb 08, 2008 at 07:20:31PM +0000, Sam Morris wrote: >> On Fri, 2008-02-08 at 15:52 +0100, Robert Millan wrote: >> > New patch to fix partmap detection in LVM/RAID. Changes in >> > comparison to previous

Re: [PATCH] tell the user why they are in rescue mode

2008-02-09 Thread Sam Morris
On Fri, 08 Feb 2008 20:15:39 +0100, Robert Millan wrote: > On Fri, Feb 08, 2008 at 06:44:26PM +0000, Sam Morris wrote: >> >> While that works, the output looks like this: >> >> Entering rescue mode... >> error: out of disk >> > _ >> >>

Found two disks with the same number 0?!?

2008-07-05 Thread Sam Morris
the number %d?!?", - sb.this_disk.number); - - return 0; - } } /* Add an array to the list if we didn't find any. */ -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Description: This is a digita

Re: fallback for "grub-probe -t partmap" failures

2007-05-19 Thread Sam Morris
echo $(dirname $line); break; fi; done Perhaps libsysfs even has a function to do this. If sysfs is not available then grub-install can directly poke around /dev, /proc/mounts and so on. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078

Re: problems detecting partition map on software RAID

2007-05-20 Thread Sam Morris
unset partmap_module esac break fi done fi if test "x$partmap_module" = x -a "x$modules" = x; then echo "Auto-detection of a partition map module failed." 1>&

Re: Bug#423022: Bug#422851: "grub-probe -t partmap" doesn't work with software RAID

2007-05-21 Thread Sam Morris
On Mon, 2007-05-21 at 13:08 +0200, Jeroen Dekkers wrote: > At Sat, 19 May 2007 15:13:58 +0100, > Sam Morris wrote: > > In addition, it would be nice if the 'out of disk' error could be > > deferred until grub actually tries to read a block that is out of range, >

Re: problem with RAID and LBA addressing

2007-05-21 Thread Sam Morris
can disable message delivery via Mailman's web interface once you have subscribed. That's what I tend to do for lists that I read via gmane. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Descripti

Re: Bug#423022: Bug#422851: "grub-probe -t partmap" doesn't work with software RAID

2007-05-21 Thread Sam Morris
the raid devices list, which seems to confirm my hunch-- md0 only consisted of hd1,2; and if I spend some time trying the ls command on various areas of hd3,2 I do get an 'out of disk' error. > Jeroen Dekkers -- Sam Morris http://robots.org.uk/ PGP key id 1024

patch for partmap probing on RAID/LVM

2007-05-27 Thread Sam Morris
+else + grub_util_error ("Cannot detect partition map for %s", drive_name); + +goto end; + } if (strcmp (dev->disk->partition->partmap->name, "amiga_partition_map") == 0) printf ("am

Re: patch for partmap probing on RAID/LVM

2007-05-29 Thread Sam Morris
On Tue, 29 May 2007 14:37:02 +1200, Centurion Computer Technology (2005) Ltd wrote: > On Mon, 2007-05-28 at 03:49 +0100, Sam Morris wrote: >> Here's the beginning of a patch for grub-probe itself to make it handle >> RAID/LVM more intelligently. This will work for the most

Re: Moving to another SCM

2007-06-18 Thread Sam Morris
y, including branches, is imported. The 'upstream' directory ends up being 6.3 MiB, which includes a checkout of the 'origin' branch. -- Sam Morris http://robots.org.uk/ PGP key id 1024D/5EA01078 3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078 signature.asc Description: This is