Bug#634649: os-prober does not detect Windows if there is a /boot folder in the Windows partition

July 19th, 2011 - 05:30 am ET by yannubuntu | Report spam

Package: os-prober
Version: 1.44ubuntu1

If the Windows partition contains a /boot/grub/core.img folder (this occurs
when beginners install GRUB by mistake in the Windows partition), os-prober
won't detect Windows any more.

I believe this is due to the fact that there are 2 folders with similar
names ("/Boot" and "/boot"), so os-prober just sees the /boot folder instead
of the /Boot or /BOOT folder coming with Windows)

I am using Ubuntu 11.04 32bits, but this bug has been also confirmed
with previous os-prober versions.


<pre>Package: os-prober
Version: 1.44ubuntu1<br><br></pre><p>If the Windows partition contains a /boot/grub/core.img folder (this occurs when beginners install GRUB by mistake in the Windows partition), os-prober won&#39;t
detect Windows any more.</p>
<p>I believe this is due to the fact that there are 2 folders with
similar names (&quot;/Boot&quot; and &quot;/boot&quot;), so os-prober just sees the /boot
folder instead of the /Boot or /BOOT folder coming with Windows)</p><pre>I am using Ubuntu 11.04 32bits, but this bug has been also confirmed with previous os-prober versions.<br><br><br></pre>




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 9 repliesReplies Make a reply

Similar topics

Replies

#1 Otavio Salvador
July 22nd, 2011 - 10:40 am ET | Report spam

On Tue, Jul 19, 2011 at 11:21,
wrote:
If the Windows partition contains a /boot/grub/core.img folder (this occurs
when beginners install GRUB by mistake in the Windows partition), os-prober
won't detect Windows any more.



Is it possible for you to try to apply this patch and test it again?


Otavio Salvador                             O.S. Systems
E-mail:   http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br

name="os-prober-fix-windows-detection-try-1.patch"
filename="os-prober-fix-windows-detection-try-1.patch"
X-Attachment-Id: f_gqf8x6e90

ZGlmZiAtLWdpdCBhL29zLXByb2Jlcy9tb3VudGVkL3g4Ni8yMG1pY3Jvc29mdCBiL29zLXByb2Jl
cy9tb3VudGVkL3g4Ni8yMG1pY3Jvc29mdAppbmRleCBjYjU3NGVjLi45YzM1Y2E0IDEwMDc1NQot
LS0gYS9vcy1wcm9iZXMvbW91bnRlZC94ODYvMjBtaWNyb3NvZnQKKysrIGIvb3MtcHJvYmVzL21v
dW50ZWQveDg2LzIwbWljcm9zb2Z0CkBAIC0xNyw3ICsxNyw3IEBAIGNhc2UgIiR0eXBlIiBpbgog
ZXNhYwogCiAjIFZpc3RhIChwcmV2aW91c2x5IExvbmdob3JuKQotaWYgaXRlbV9pbl9kaXIgLXEg
Ym9vdG1nciAiJDIiICYmIGJvb3Q9IiQoaXRlbV9pbl9kaXIgYm9vdCAiJDIiKSIgJiYKK2lmIGl0
ZW1faW5fZGlyIC1xIGJvb3RtZ3IgIiQyIiAmJiBib290PSIkKGl0ZW1faW5fZGlyIGJvb3QvICIk
MiIpIiAmJgogICAgYmNkPSIkKGl0ZW1faW5fZGlyIGJjZCAiJDIvJGJvb3QiKSI7IHRoZW4KIAlp
ZiBncmVwIC1xcyAiVy5pLm4uZC5vLncucy4gLjciICIkMi8kYm9vdC8kYmNkIjsgdGhlbgogCQls
b25nPSJXaW5kb3dzIDcgKGxvYWRlcikiCg=--0016e6d643f67c671304a8a94a9a--



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 yannubuntu
July 22nd, 2011 - 11:10 am ET | Report spam

Thanks Otavio.
Unfortunately, your patch does not solve the bug. Please see below the
os-prober output I get in 3 configurations:

1) Normal output (no /boot folder in the Windows partition) :
/dev/sda1:Windows Vista (loader):Windows:chain
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

2) Output when there is a /boot folder in the Windows partition (without
patch):
ls: cannot access /media/Vista/Boot
boot: No such file or directory
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

3) Output when there is a /boot folder in the Windows partition (with your
patch):
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

Remark : indeed even an empty /boot folder is enough to disturb os-prober.
What this /boot folder contains does not change the result. I think the bug
comes from the fact that os-prober looks inside the /boot folder but not
inside the /Boot (or /BOOT) folder.

Regards


Thanks Otavio.<br>Unfortunately, your patch does not solve the bug. Please see below the os-prober output I get in 3 configurations:<br><br>1) Normal output (no /boot folder in the Windows partition) :<br>/dev/sda1:Windows Vista (loader):Windows:chain<br>
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br>2) Output when there is a /boot folder in the Windows partition (without patch):<br>ls: cannot access /media/Vista/Boot<br>boot: No such file or directory<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br>
<br>3) Output when there is a /boot folder in the Windows partition (with your patch):<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br>Remark : indeed even an empty /boot folder is enough to disturb os-prober. What this /boot folder contains does not change the result. I think the bug comes from the fact that os-prober looks inside the /boot folder but not inside the /Boot (or /BOOT) folder.<br>
<br>Regards<br><br><br><br><br><br><br><br>




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#3 yannubuntu
July 22nd, 2011 - 12:10 pm ET | Report spam

2nd patch does not work either:

patch and boot folder:
:~$ LANG=C sudo os-prober
ls: cannot access : No such file or directory
ls: cannot access : No such file or directory
ls: cannot access : No such file or directory
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux
/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux
ls: cannot access : No such file or directory

no patch and boot folder:
:~$ LANG=C sudo os-prober
ls: cannot access /media/Vista/Boot
boot: No such file or directory
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux
/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux

no patch and no boot folder:
:~$ LANG=C sudo os-prober
/dev/sda1:Windows Vista (loader):Windows:chain
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux
/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux

patch and no boot folder:
:~$ LANG=C sudo os-prober
ls: cannot access : No such file or directory
ls: cannot access : No such file or directory
ls: cannot access : No such file or directory
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux
/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux
ls: cannot access : No such file or directory

all tests from live-usb


2nd patch does not work either:<br><br>patch and boot folder:<br>:~$ LANG=C sudo os-prober<br>ls: cannot access : No such file or directory<br>ls: cannot access : No such file or directory<br>ls: cannot access : No such file or directory<br>
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br>/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux<br>ls: cannot access : No such file or directory<br><br>no patch and boot folder:<br>:~$ LANG=C sudo os-prober<br>ls: cannot access /media/Vista/Boot<br>
boot: No such file or directory<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br>/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux<br><br>no patch and no boot folder:<br>:~$ LANG=C sudo os-prober<br>/dev/sda1:Windows Vista (loader):Windows:chain<br>
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br>/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux<br><br>patch and no boot folder:<br>:~$ LANG=C sudo os-prober<br>ls: cannot access : No such file or directory<br>ls: cannot access : No such file or directory<br>
ls: cannot access : No such file or directory<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br>/dev/sda6:Ubuntu 11.04 (11.04):Ubuntu1:linux<br>ls: cannot access : No such file or directory<br><br>all tests from live-usb<br>




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#4 yannubuntu
July 22nd, 2011 - 10:20 pm ET | Report spam



I attached a new one and this is more verbose. Please test it.




Bom dia Otavio

-> Output with the patch and the (empty) /boot folder :

~$ LANG=C sudo os-prober
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda1
+ mpoint=/media/Vista
+ type=fuseblk
+ debug /dev/sda1 is a FUSE partition
+ log debug: /dev/sda1 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition
+ item_in_dir -q bootmgr
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1
ls: cannot access : No such file or directory
+ item_in_dir -q ntldr /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /media/Vista
+ item_in_dir dos /media/Vista
+ [ dos = -q ]
+ q+ grep -i ^dos$
+ ls -1 /media/Vista
+ [ -d ]
+ item_in_dir -q windows /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /media/Vista
+ item_in_dir windows /media/Vista
+ [ windows = -q ]
+ q+ grep -i ^windows$
+ ls -1 /media/Vista
+ item_in_dir -q win.com /media/Vista/Windows
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^win.com$
+ ls -1 /media/Vista/Windows
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda2
+ mpoint=/media/Perso
+ type=ext3
+ debug /dev/sda2 is not a MS partition: exiting
+ log debug: /dev/sda2 is not a MS partition: exiting
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda5
+ mpoint=/var/lib/os-prober/mount
+ type=fuseblk
+ debug /dev/sda5 is a FUSE partition
+ log debug: /dev/sda5 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition
+ item_in_dir -q bootmgr
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1
ls: cannot access : No such file or directory
+ item_in_dir -q ntldr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir dos /var/lib/os-prober/mount
+ [ dos = -q ]
+ q+ ls -1 /var/lib/os-prober/mount
+ grep -i ^dos$
+ [ -d ]
+ item_in_dir -q windows /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /var/lib/os-prober/mount
+ exit 1
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

******
-> Output with the patch and no /boot partition:

~$ LANG=C sudo os-prober
[sudo] password for yyy:
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda1
+ mpoint=/media/Vista
+ type=fuseblk
+ debug /dev/sda1 is a FUSE partition
+ log debug: /dev/sda1 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition
+ item_in_dir -q bootmgr
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1
ls: cannot access : No such file or directory
+ item_in_dir -q ntldr /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /media/Vista
+ item_in_dir dos /media/Vista
+ [ dos = -q ]
+ q+ grep -i ^dos$
+ ls -1 /media/Vista
+ [ -d ]
+ item_in_dir -q windows /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /media/Vista
+ item_in_dir windows /media/Vista
+ [ windows = -q ]
+ q+ grep -i ^windows$
+ ls -1 /media/Vista
+ item_in_dir -q win.com /media/Vista/Windows
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^win.com$
+ ls -1 /media/Vista/Windows
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda2
+ mpoint=/media/Perso
+ type=ext3
+ debug /dev/sda2 is not a MS partition: exiting
+ log debug: /dev/sda2 is not a MS partition: exiting
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda5
+ mpoint=/var/lib/os-prober/mount
+ type=fuseblk
+ debug /dev/sda5 is a FUSE partition
+ log debug: /dev/sda5 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition
+ item_in_dir -q bootmgr
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1
ls: cannot access : No such file or directory
+ item_in_dir -q ntldr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir dos /var/lib/os-prober/mount
+ [ dos = -q ]
+ q+ grep -i ^dos$
+ ls -1 /var/lib/os-prober/mount
+ [ -d ]
+ item_in_dir -q windows /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /var/lib/os-prober/mount
+ exit 1
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

Regards
Yann


<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
<br>
</div>I attached a new one and this is more verbose. Please test it.<br></blockquote><div><br>Bom dia Otavio<br><br>-&gt; Output with the patch and the (empty) /boot folder :<br><br>~$ LANG=C sudo os-prober<br>
+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda1<br>+ mpoint=/media/Vista<br>+ type=fuseblk<br>+ debug /dev/sda1 is a FUSE partition<br>
+ log debug: /dev/sda1 is a FUSE partition<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition<br>+ item_in_dir -q bootmgr<br>
+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 <br>ls: cannot access : No such file or directory<br>+ item_in_dir -q ntldr /media/Vista<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^ntldr$<br>
+ ls -1 /media/Vista<br>+ item_in_dir dos /media/Vista<br>+ [ dos = -q ]<br>+ q=<br>+ grep -i ^dos$<br>+ ls -1 /media/Vista<br>+ [ -d  ]<br>+ item_in_dir -q windows /media/Vista<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^windows$<br>+ ls -1 /media/Vista<br>+ item_in_dir windows /media/Vista<br>+ [ windows = -q ]<br>+ q=<br>+ grep -i ^windows$<br>+ ls -1 /media/Vista<br>+ item_in_dir -q <a href="http://win.com">win.com</a> /media/Vista/Windows<br>
+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^<a href="http://win.com">win.com</a>$<br>+ ls -1 /media/Vista/Windows<br>+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>
+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda2<br>+ mpoint=/media/Perso<br>+ type=ext3<br>+ debug /dev/sda2 is not a MS partition: exiting<br>+ log debug: /dev/sda2 is not a MS partition: exiting<br>+ cache_progname<br>
+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting<br>+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>
+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda5<br>+ mpoint=/var/lib/os-prober/mount<br>+ type=fuseblk<br>+ debug /dev/sda5 is a FUSE partition<br>+ log debug: /dev/sda5 is a FUSE partition<br>
+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition<br>+ item_in_dir -q bootmgr<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^bootmgr$<br>+ ls -1 <br>ls: cannot access : No such file or directory<br>+ item_in_dir -q ntldr /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^ntldr$<br>+ ls -1 /var/lib/os-prober/mount<br>
+ item_in_dir dos /var/lib/os-prober/mount<br>+ [ dos = -q ]<br>+ q=<br>+ ls -1 /var/lib/os-prober/mount<br>+ grep -i ^dos$<br>+ [ -d  ]<br>+ item_in_dir -q windows /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^windows$<br>+ ls -1 /var/lib/os-prober/mount<br>+ exit 1<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br>******<br>-&gt; Output with the patch and no /boot partition:<br><br>~$ LANG=C sudo os-prober<br>
[sudo] password for yyy: <br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda1<br>+ mpoint=/media/Vista<br>+ type=fuseblk<br>
+ debug /dev/sda1 is a FUSE partition<br>+ log debug: /dev/sda1 is a FUSE partition<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition<br>
+ item_in_dir -q bootmgr<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 <br>ls: cannot access : No such file or directory<br>+ item_in_dir -q ntldr /media/Vista<br>+ [ -q = -q ]<br>+ q=-q<br>
+ shift 1<br>+ grep -q -i ^ntldr$<br>+ ls -1 /media/Vista<br>+ item_in_dir dos /media/Vista<br>+ [ dos = -q ]<br>+ q=<br>+ grep -i ^dos$<br>+ ls -1 /media/Vista<br>+ [ -d  ]<br>+ item_in_dir -q windows /media/Vista<br>+ [ -q = -q ]<br>
+ q=-q<br>+ shift 1<br>+ grep -q -i ^windows$<br>+ ls -1 /media/Vista<br>+ item_in_dir windows /media/Vista<br>+ [ windows = -q ]<br>+ q=<br>+ grep -i ^windows$<br>+ ls -1 /media/Vista<br>+ item_in_dir -q <a href="http://win.com">win.com</a> /media/Vista/Windows<br>
+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^<a href="http://win.com">win.com</a>$<br>+ ls -1 /media/Vista/Windows<br>+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>
+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda2<br>+ mpoint=/media/Perso<br>+ type=ext3<br>+ debug /dev/sda2 is not a MS partition: exiting<br>+ log debug: /dev/sda2 is not a MS partition: exiting<br>+ cache_progname<br>
+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting<br>+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>
+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda5<br>+ mpoint=/var/lib/os-prober/mount<br>+ type=fuseblk<br>+ debug /dev/sda5 is a FUSE partition<br>+ log debug: /dev/sda5 is a FUSE partition<br>
+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition<br>+ item_in_dir -q bootmgr<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^bootmgr$<br>+ ls -1 <br>ls: cannot access : No such file or directory<br>+ item_in_dir -q ntldr /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^ntldr$<br>+ ls -1 /var/lib/os-prober/mount<br>
+ item_in_dir dos /var/lib/os-prober/mount<br>+ [ dos = -q ]<br>+ q=<br>+ grep -i ^dos$<br>+ ls -1 /var/lib/os-prober/mount<br>+ [ -d  ]<br>+ item_in_dir -q windows /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^windows$<br>+ ls -1 /var/lib/os-prober/mount<br>+ exit 1<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br>Regards<br>Yann<br></div></div><br>




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#5 yannubuntu
July 23rd, 2011 - 08:20 am ET | Report spam

Opa!

Output with /boot and patch:
$ LANG=C sudo os-prober
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda1
+ mpoint=/media/Vista
+ type=fuseblk
+ debug /dev/sda1 is a FUSE partition
+ log debug: /dev/sda1 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition
+ item_in_dir -q bootmgr /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1 /media/Vista
+ item_in_dir boot/ /media/Vista
+ [ boot/ = -q ]
+ q+ grep -i ^boot/$
+ ls -1 /media/Vista
+ boot=/media/Vista
+ item_in_dir bcd /media/Vista//media/Vista
+ [ bcd = -q ]
+ q+ grep -i ^bcd$
+ ls -1 /media/Vista//media/Vista
ls: cannot access /media/Vista//media/Vista: No such file or directory
+ bcd+ boot+ item_in_dir bcd /media/Vista/
+ [ bcd = -q ]
+ q+ grep -i ^bcd$
+ ls -1 /media/Vista/
+ bcd+ count_next_label
+ require_tmpdir
+ [ -z /tmp/os-prober.u3aFGD ]
+ _labelprefix+ count_for
+ _labelprefix+ grep ^ /var/lib/os-prober/labels
+ true
+ _result+ [ -z ]
+ return
+ _cfor+ [ -z ]
+ echo 1
+ echo
+ label+ result /dev/sda1:::chain
+ log result: /dev/sda1:::chain
+ cache_progname
+ logger -t 20microsoft result: /dev/sda1:::chain
+ echo /dev/sda1:::chain
/dev/sda1:::chain
+ exit 0
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda2
+ mpoint=/media/Perso
+ type=ext3
+ debug /dev/sda2 is not a MS partition: exiting
+ log debug: /dev/sda2 is not a MS partition: exiting
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda5
+ mpoint=/var/lib/os-prober/mount
+ type=fuseblk
+ debug /dev/sda5 is a FUSE partition
+ log debug: /dev/sda5 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition
+ item_in_dir -q bootmgr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir -q ntldr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir dos /var/lib/os-prober/mount
+ [ dos = -q ]
+ q+ grep -i ^dos$
+ ls -1 /var/lib/os-prober/mount
+ [ -d ]
+ item_in_dir -q windows /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /var/lib/os-prober/mount
+ exit 1
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux


Output with patch and without /boot:
$ LANG=C sudo os-prober
[sudo] password for yyy:
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda1
+ mpoint=/media/Vista
+ type=fuseblk
+ debug /dev/sda1 is a FUSE partition
+ log debug: /dev/sda1 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition
+ item_in_dir -q bootmgr /media/Vista
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1 /media/Vista
+ item_in_dir boot/ /media/Vista
+ [ boot/ = -q ]
+ q+ grep -i ^boot/$
+ ls -1 /media/Vista
+ boot=/media/Vista
+ item_in_dir bcd /media/Vista//media/Vista
+ [ bcd = -q ]
+ q+ grep -i ^bcd$
+ ls -1 /media/Vista//media/Vista
ls: cannot access /media/Vista//media/Vista: No such file or directory
+ bcd+ boot+ item_in_dir bcd /media/Vista/
+ [ bcd = -q ]
+ q+ grep -i ^bcd$
+ ls -1 /media/Vista/
+ bcd+ count_next_label
+ require_tmpdir
+ [ -z /tmp/os-prober.hRfoyP ]
+ _labelprefix+ count_for
+ _labelprefix+ grep ^ /var/lib/os-prober/labels
+ true
+ _result+ [ -z ]
+ return
+ _cfor+ [ -z ]
+ echo 1
+ echo
+ label+ result /dev/sda1:::chain
+ log result: /dev/sda1:::chain
+ cache_progname
+ logger -t 20microsoft result: /dev/sda1:::chain
+ echo /dev/sda1:::chain
/dev/sda1:::chain
+ exit 0
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda2
+ mpoint=/media/Perso
+ type=ext3
+ debug /dev/sda2 is not a MS partition: exiting
+ log debug: /dev/sda2 is not a MS partition: exiting
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting
+ exit 1
+ . /usr/share/os-prober/common.sh
+ cleanup_tmpdir=false
+ cleanup_ro_partitions+ progname+ type mapdevfs
+ partition=/dev/sda5
+ mpoint=/var/lib/os-prober/mount
+ type=fuseblk
+ debug /dev/sda5 is a FUSE partition
+ log debug: /dev/sda5 is a FUSE partition
+ cache_progname
+ basename /usr/lib/os-probes/mounted/20microsoft
+ progname microsoft
+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition
+ item_in_dir -q bootmgr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^bootmgr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir -q ntldr /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^ntldr$
+ ls -1 /var/lib/os-prober/mount
+ item_in_dir dos /var/lib/os-prober/mount
+ [ dos = -q ]
+ q+ grep -i ^dos$
+ ls -1 /var/lib/os-prober/mount
+ [ -d ]
+ item_in_dir -q windows /var/lib/os-prober/mount
+ [ -q = -q ]
+ q=-q
+ shift 1
+ grep -q -i ^windows$
+ ls -1 /var/lib/os-prober/mount
+ exit 1
/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux

t+
Yann


Opa!<br><br>Output with /boot and patch:<br>$ LANG=C sudo os-prober<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda1<br>
+ mpoint=/media/Vista<br>+ type=fuseblk<br>+ debug /dev/sda1 is a FUSE partition<br>+ log debug: /dev/sda1 is a FUSE partition<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>
+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition<br>+ item_in_dir -q bootmgr /media/Vista<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 /media/Vista<br>+ item_in_dir boot/ /media/Vista<br>
+ [ boot/ = -q ]<br>+ q=<br>+ grep -i ^boot/$<br>+ ls -1 /media/Vista<br>+ boot=/media/Vista<br>+ item_in_dir bcd /media/Vista//media/Vista<br>+ [ bcd = -q ]<br>+ q=<br>+ grep -i ^bcd$<br>+ ls -1 /media/Vista//media/Vista<br>
ls: cannot access /media/Vista//media/Vista: No such file or directory<br>+ bcd=<br>+ boot=<br>+ item_in_dir bcd /media/Vista/<br>+ [ bcd = -q ]<br>+ q=<br>+ grep -i ^bcd$<br>+ ls -1 /media/Vista/<br>+ bcd=<br>+ count_next_label <br>
+ require_tmpdir<br>+ [ -z /tmp/os-prober.u3aFGD ]<br>+ _labelprefix=<br>+ count_for <br>+ _labelprefix=<br>+ grep ^  /var/lib/os-prober/labels<br>+ true<br>+ _result=<br>+ [ -z  ]<br>+ return<br>+ _cfor=<br>+ [ -z  ]<br>
+ echo  1<br>+ echo <br>+ label=<br>+ result /dev/sda1:::chain<br>+ log result: /dev/sda1:::chain<br>+ cache_progname<br>+ logger -t 20microsoft result: /dev/sda1:::chain<br>+ echo /dev/sda1:::chain<br>/dev/sda1:::chain<br>
+ exit 0<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda2<br>+ mpoint=/media/Perso<br>+ type=ext3<br>+ debug /dev/sda2 is not a MS partition: exiting<br>
+ log debug: /dev/sda2 is not a MS partition: exiting<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting<br>
+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda5<br>+ mpoint=/var/lib/os-prober/mount<br>+ type=fuseblk<br>+ debug /dev/sda5 is a FUSE partition<br>
+ log debug: /dev/sda5 is a FUSE partition<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition<br>+ item_in_dir -q bootmgr /var/lib/os-prober/mount<br>
+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 /var/lib/os-prober/mount<br>+ item_in_dir -q ntldr /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^ntldr$<br>+ ls -1 /var/lib/os-prober/mount<br>
+ item_in_dir dos /var/lib/os-prober/mount<br>+ [ dos = -q ]<br>+ q=<br>+ grep -i ^dos$<br>+ ls -1 /var/lib/os-prober/mount<br>+ [ -d  ]<br>+ item_in_dir -q windows /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^windows$<br>+ ls -1 /var/lib/os-prober/mount<br>+ exit 1<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br><br>Output with patch and without /boot:<br>$ LANG=C sudo os-prober<br>[sudo] password for yyy: <br>
+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda1<br>+ mpoint=/media/Vista<br>+ type=fuseblk<br>+ debug /dev/sda1 is a FUSE partition<br>
+ log debug: /dev/sda1 is a FUSE partition<br>+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda1 is a FUSE partition<br>+ item_in_dir -q bootmgr /media/Vista<br>
+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 /media/Vista<br>+ item_in_dir boot/ /media/Vista<br>+ [ boot/ = -q ]<br>+ q=<br>+ grep -i ^boot/$<br>+ ls -1 /media/Vista<br>+ boot=/media/Vista<br>
+ item_in_dir bcd /media/Vista//media/Vista<br>+ [ bcd = -q ]<br>+ q=<br>+ grep -i ^bcd$<br>+ ls -1 /media/Vista//media/Vista<br>ls: cannot access /media/Vista//media/Vista: No such file or directory<br>+ bcd=<br>+ boot=<br>
+ item_in_dir bcd /media/Vista/<br>+ [ bcd = -q ]<br>+ q=<br>+ grep -i ^bcd$<br>+ ls -1 /media/Vista/<br>+ bcd=<br>+ count_next_label <br>+ require_tmpdir<br>+ [ -z /tmp/os-prober.hRfoyP ]<br>+ _labelprefix=<br>+ count_for <br>
+ _labelprefix=<br>+ grep ^  /var/lib/os-prober/labels<br>+ true<br>+ _result=<br>+ [ -z  ]<br>+ return<br>+ _cfor=<br>+ [ -z  ]<br>+ echo  1<br>+ echo <br>+ label=<br>+ result /dev/sda1:::chain<br>+ log result: /dev/sda1:::chain<br>
+ cache_progname<br>+ logger -t 20microsoft result: /dev/sda1:::chain<br>+ echo /dev/sda1:::chain<br>/dev/sda1:::chain<br>+ exit 0<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>+ cleanup_ro_partitions=<br>
+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda2<br>+ mpoint=/media/Perso<br>+ type=ext3<br>+ debug /dev/sda2 is not a MS partition: exiting<br>+ log debug: /dev/sda2 is not a MS partition: exiting<br>+ cache_progname<br>
+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda2 is not a MS partition: exiting<br>+ exit 1<br>+ . /usr/share/os-prober/common.sh<br>+ cleanup_tmpdir=false<br>
+ cleanup_ro_partitions=<br>+ progname=<br>+ type mapdevfs<br>+ partition=/dev/sda5<br>+ mpoint=/var/lib/os-prober/mount<br>+ type=fuseblk<br>+ debug /dev/sda5 is a FUSE partition<br>+ log debug: /dev/sda5 is a FUSE partition<br>
+ cache_progname<br>+ basename /usr/lib/os-probes/mounted/20microsoft<br>+ progname=20microsoft<br>+ logger -t 20microsoft debug: /dev/sda5 is a FUSE partition<br>+ item_in_dir -q bootmgr /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>
+ q=-q<br>+ shift 1<br>+ grep -q -i ^bootmgr$<br>+ ls -1 /var/lib/os-prober/mount<br>+ item_in_dir -q ntldr /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>+ grep -q -i ^ntldr$<br>+ ls -1 /var/lib/os-prober/mount<br>
+ item_in_dir dos /var/lib/os-prober/mount<br>+ [ dos = -q ]<br>+ q=<br>+ grep -i ^dos$<br>+ ls -1 /var/lib/os-prober/mount<br>+ [ -d  ]<br>+ item_in_dir -q windows /var/lib/os-prober/mount<br>+ [ -q = -q ]<br>+ q=-q<br>+ shift 1<br>
+ grep -q -i ^windows$<br>+ ls -1 /var/lib/os-prober/mount<br>+ exit 1<br>/dev/sda5:Ubuntu 10.10 (10.10):Ubuntu:linux<br><br>t+<br>Yann<br><br><br>




To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search