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

Bug#605857: squeeze beta1 on Toshiba Satellite C655-S5119



Christian PERRIER wrote:
> I think that os-prober 1.40 (which is not on beta1 CDs) is meant to
> fix those Vista partitions recognition problems.
> 
> From the different release dates, I'd say that beta1 CDs do not have
> this version of os-prober, so that might explain. Can you confirm?

Partially fixed in 1.40:

root@grebe:/home/joey>os-prober
  No volume groups found
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sda3:Windows Recovery Environment (loader):Windows2:chain

Ok, the problem with sda3 turns out to be the order os-prober
greps for strings.

root@grebe:~>mount -o ro /dev/sda1 /mnt
root@grebe:~joey>grep 'W.i.n.d.o.w.s. .7' /mnt/Boot/BCD
Binary file /mnt/Boot/BCD matches
root@grebe:~joey>grep 'W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t' /mnt/Boot/BCD
Binary file /mnt/Boot/BCD matches

This patch fixes that, is there a reason it tested for windows 7
before windows recovery?

Index: 20microsoft
===================================================================
--- 20microsoft	(revision 65838)
+++ 20microsoft	(working copy)
@@ -19,7 +19,9 @@
 # Vista (previously Longhorn)
 if item_in_dir -q bootmgr "$2" && boot="$(item_in_dir boot "$2")" &&
    bcd="$(item_in_dir bcd "$2/$boot")"; then
-	if grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
+	if grep -qs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
+		long="Windows Recovery Environment (loader)"
+	elif grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
 		long="Windows 7 (loader)"
 	elif grep -qs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
 		long="Windows Vista (loader)"
@@ -27,8 +29,6 @@
 		long="Windows Server 2008 R2 (loader)"
 	elif grep -qs "W.i.n.d.o.w.s. .S.e.r.v.e.r. .2.0.0.8." "$2/$boot/$bcd"; then
 		long="Windows Server 2008 (loader)"
-	elif grep -qs "W.i.n.d.o.w.s. .R.e.c.o.v.e.r.y. .E.n.v.i.r.o.n.m.e.n.t" "$2/$boot/$bcd"; then
-		long="Windows Recovery Environment (loader)"
 	elif grep -qs "W.i.n.d.o.w.s. .S.e.t.u.p" "$2/$boot/$bcd"; then
 		long="Windows Recovery Environment (loader)"
 	else

BTW: os-prober was not installed into /target, despite being a
recommends of grub-common. It was not on the ISO used, and I
installed without a full mirror available.

Also, the syslog has some interesting messages during the grub-pc install:

Dec  4 01:33:05 in-target: Creating config file /etc/default/grub with new version
Dec  4 01:33:06 in-target: Use of uninitialized value $template in exists at /usr/share/perl5/Debconf/Template.pm line 81, <GEN2> line 66.
Dec  4 01:33:06 in-target: Use of uninitialized value $item in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 39, <GEN2> line 66.
Dec  4 01:33:06 in-target: Use of uninitialized value $item in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 39, <GEN2> line 66.
Dec  4 01:33:06 in-target: Use of uninitialized value $template in exists at /usr/share/perl5/Debconf/Template.pm line 81, <GEN2> line 75.
Dec  4 01:33:06 in-target: Use of uninitialized value $item in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 39, <GEN2> line 75.
Dec  4 01:33:06 in-target: Use of uninitialized value $item in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 39, <GEN2> line 75.

(I saw no debconf questions from grub at all, IIRC.)

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: