[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
os-prober is very chatty in the syslog, and this may be more useful than these (incomplete, I'm afraid) set -x dumps. Could you perhaps extract the syslog messages emitted by a run of os-prober? ** Summary changed: - windows not found unless partion is mounted + Windows not found unless

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Dmitrijs Ledkovs
What's the output of: sudo blkid -o value -s TYPE /dev/sda2 where /dev/sda2 is the windows partition in question? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not found

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread snooptodd
todd@todd-Latitude-E6420:~$ sudo blkid -o value -s TYPE /dev/sda2 ntfs ** Attachment added: os-prober_syslog.txt https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1051306/+attachment/3396278/+files/os-prober_syslog.txt -- You received this bug notification because you are a member

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Dmitrijs Ledkovs
os-prober tries hard to determine types of the filesystem, and mounts using those only. From the logs it appears that it failed it's attempts at mounting the windows partition in question. Maybe os-prober should fallback to 'auto' type, and then use that... but then 20microsoft uses the passed

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Dmitrijs Ledkovs
Now this is a long shot, but can you do this: $ sudo mount -t auto /dev/sda2 /mnt $ ls -la /mnt $ sudo umount /mnt $ sudo grub-mount /dev/sda2 /mnt $ ls -la /mnt $ sudo umount /mnt Hopefully both ls calls are identical -- You received this bug notification because you are a member of

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread snooptodd
todd@todd-Latitude-E6420:~$ sudo mount -t auto /dev/sda2 /media/Windows/ todd@todd-Latitude-E6420:~$ sudo os-prober /dev/sda2:Windows 7 (loader):Windows:chain ** Attachment added: os-prober_mounted_syslog.txt

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
So, I can't reproduce this here with my test copy of Windows 7, unfortunately. If I could then this would be a lot easier. I suspect that GRUB's NTFS driver (we use GRUB's filesystem drivers so that we can do true read-only mounts, without running the risk of replaying journals or similar) is

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread snooptodd
Not the same. todd@todd-Latitude-E6420:~$ sudo mount -t auto /dev/sda2 /mnt todd@todd-Latitude-E6420:~$ ls -la /mnt total 5811870 drwxrwxrwx 1 root root 16384 Oct 11 13:17 . drwxr-xr-x 24 root root 4096 Oct 12 08:07 .. -rwxrwxrwx 1 root root 24 Jun 10 2009 autoexec.bat

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Dmitrijs Ledkovs
@ snooptodd Can you do all of this as root for the grub-mount? above. Sorry didn't realise grub-mount is that protective. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread snooptodd
sudo ls -la /mnt doesnt give the correct result either. grub_mount syslog Oct 12 09:04:03 todd-Latitude-E6420 ntfs-3g[4042]: Version 2012.1.15AR.5 external FUSE 29 Oct 12 09:04:03 todd-Latitude-E6420 ntfs-3g[4042]: Mounted /dev/sda2 (Read-Write, label , NTFS 3.1) Oct 12 09:04:03

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
You still haven't actually given me the output of 'sudo ls -l /mnt'. Please could you run the *exact* sequence of commands I gave, with no variation, and show the output of those? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread snooptodd
@Colin Watson todd@todd-Latitude-E6420:~$ sudo grub-mount /dev/sda2 /mnt todd@todd-Latitude-E6420:~$ sudo ls -l /mnt total 0 todd@todd-Latitude-E6420:~$ sudo ls -l /mnt/boot ls: cannot access /mnt/boot: No such file or directory todd@todd-Latitude-E6420:~$ sudo umount /mnt

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
Ooh. Well, I may not have been able to reproduce on my test machine, but on my normal development laptop, 'sudo grub-mount /dev/sda5 /mnt' results in an empty /mnt, where /dev/sda5 is my root partition and is certainly not empty. Oh dear. Investigating. ** Package changed: os-prober (Ubuntu

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
I can also reproduce this with upstream trunk; and have verified that it's not present in precise. ** Tags added: regression-release -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title:

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
My current belief is that this bug is triggered by the presence of a symlink to a directory. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not found unless partition is

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
** Changed in: grub2 (Ubuntu Quantal) Status: Triaged = In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not found unless partition is mounted To manage

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread jose
From syslog (added some context, windows partition is sda1): Not mounted: macosx-prober: debug: /dev/sda1 is not an HFS+ partition: exiting 50mounted-tests: debug: running subtest /usr/lib/os-probes/mounted/20microsoft 20microsoft: debug: /dev/sda1 is a NTFS partition 50mounted-tests: debug:

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-core-dev/ubuntu/quantal/grub2/quantal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not found unless partition is mounted To manage

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Colin Watson
** Changed in: grub2 (Ubuntu Quantal) Status: In Progress = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1051306 Title: Windows not found unless partition is mounted To

[Bug 1051306] Re: Windows not found unless partition is mounted

2012-10-12 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 2.00-7ubuntu10 --- grub2 (2.00-7ubuntu10) quantal; urgency=low * Ignore symlink traversal failures in grub-mount readdir (LP: #1051306). -- Colin Watson cjwat...@ubuntu.com Fri, 12 Oct 2012 17:14:04 +0100 ** Changed in: grub2 (Ubuntu