Bug#589676: [os-prober] Confuses the Vista partitions

2010-08-26 Thread Christian PERRIER
Quoting Jérôme De Greef (jdegr...@gmail.com):
> I confirm this very annoying bug exists since months in unstable.
> Everything (and the way to fix it) is explained here :
> https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/476625

Thanks for pushing us to look at this. I commit the patch proposed in
LP.



signature.asc
Description: Digital signature


Bug#589676: [os-prober] Confuses the Vista partitions

2010-07-23 Thread Jérôme De Greef
I've quickly created a patch for my Acer Aspire 7220 with Windows Vista
préinstalled against version 1.39 of os-prober (Debian Sid/unstable).

Explanation :

/dev/sda1 is my rescue Vista partition
fdisk reports it as ID 12  Compaq diagnostics (Ah, Acer has something to do
with Compaq ?)
/mnt/sda1/boot/bcd reports it as "Windows Setup"

/dev/sda2 is my Vista partition
fdisk reports it as ID 6  FAT16 (I don't know why Acer didn't format it as
NTFS)
/mnt/sda2/boot/bcd reports it as "Microsoft Windows Vista"

Before my patch
WRONG
#os-prober
/dev/sda1:Windows Vista (loader):Windows:chain
/dev/sda2:Windows Recovery Environment (loader):Windows1:chain

After my patch
GOOD
#os-prober
/dev/sda1:Windows Recovery Environment (loader):Windows:chain
/dev/sda2:Windows Vista (loader):Windows1:chain

Of course, this patch would not solve all issues. For that we'll need to
know all the various rescue bcd labels used by manufacturers for their
rescue partitions but at least it gives a hint on how to fix this issue.

Hope it helps,
Jérôme
--- 20microsoft.orig	2010-03-23 14:29:02.0 +0100
+++ 20microsoft	2010-07-23 18:44:30.0 +0200
@@ -19,8 +19,18 @@
 # 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
+	# jdegreef at gmail dot com
+	# Debian bug#589676: [os-prober] Confuses the Vista partitions
+	# see also https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/476625 for more info
+	# if grep -qs "W.i.n.d.o.w.s. .7" "$2/$boot/$bcd"; then
+	#	long="Windows 7 (loader)"
+	if grep -qs "W.i.n.d.o.w.s. .V.i.s.t.a" "$2/$boot/$bcd"; then
+		long="Windows Vista (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. .S.e.t.u.p" "$2/$boot/$bcd"; then
+		long="Windows Recovery Environment (loader)"
+	# jdegreef end
 	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.r.v.e.r. .2.0.0.8. .R.2." "$2/$boot/$bcd"; then
@@ -28,7 +38,8 @@
 	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)"
 	else
-		long="Windows Vista (loader)"
+		# jdegr long="Windows Vista (loader)"
+		long="Unknown Windows Partition (loader)"
 	fi
 	short=Windows
 # 2000/XP/NT4.0


Bug#589676: [os-prober] Confuses the Vista partitions

2010-07-23 Thread Jérôme De Greef
I confirm this very annoying bug exists since months in unstable.
Everything (and the way to fix it) is explained here :
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/476625

Thanks


Bug#589676: [os-prober] Confuses the Vista partitions

2010-07-20 Thread Francesco Muzio

os-prober is runned on an already installed Debian system.

/dev/sda is the disk dedicated to Windows:

/dev/sda1 is an unknown partition in NTFS who is invisible from Vista
/dev/sda2 is the Windows partition
/dev/sda3 is the recovery partition (and windows won't boot from here)

Unfortunately I don't understand where the script found the string
"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"
for execute a manually test



--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Apri subito Conto Arancio e ricevi 50 Euro di buoni acquisti da spendere presso 
Media World!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10037&d=20-7



--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c458da4.6060...@email.it



Bug#589676: [os-prober] Confuses the Vista partitions

2010-07-19 Thread Christian PERRIER
Quoting Francesco Muzio (muzi...@email.it):
> Package: os-prober
> Version: 1.39
> Severity: normal
> 
> The last version of os-prober Confuses the Windows Vista partitions.
> 
> Generating grub.cfg ...
> Found background image: moreblue-orbit-grub.png
> Found linux image: /boot/vmlinuz-2.6.32
> Found initrd image: /boot/initrd.img-2.6.32
> Found Windows Recovery Environment (loader) on /dev/sda2
> Found Windows Vista (loader) on /dev/sda3
> 
> 
> The real Windows Vista partition is on /dev/sda2 and the recovery is
> on /dev/sda3

I think we need more info about the conditions where you were doing
this test.

Were you running os-prober from an already installed Debian system or
did this happen during a fresh system install?

If that was during a fresh system install, what D-I image were you
exactly using (download URL would help).





signature.asc
Description: Digital signature


Bug#589676: [os-prober] Confuses the Vista partitions

2010-07-19 Thread Francesco Muzio

Package: os-prober
Version: 1.39
Severity: normal

The last version of os-prober Confuses the Windows Vista partitions.

Generating grub.cfg ...
Found background image: moreblue-orbit-grub.png
Found linux image: /boot/vmlinuz-2.6.32
Found initrd image: /boot/initrd.img-2.6.32
Found Windows Recovery Environment (loader) on /dev/sda2
Found Windows Vista (loader) on /dev/sda3


The real Windows Vista partition is on /dev/sda2 and the recovery is on 
/dev/sda3



--- System information. ---
Architecture: i386
Kernel: Linux 2.6.32

Debian Release: squeeze/sid
500 testing ftp.it.debian.org

--- Package information. ---
Depends (Version) | Installed
==-+-===
libc6 (>= 2.4) | 2.11.2-2


Package's Recommends field is empty.

Package's Suggests field is empty.






--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4c44c498.8020...@email.it