FS#37503 - [grub] 2.00.5086-1 - grub-mkconfig os-probing partition errors

Attached to Project: Arch Linux
Opened by jb (jb.1234abcd) - Saturday, 26 October 2013, 16:54 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 30 October 2013, 10:29 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Ronald van Haren (pressh)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
grub-mkconfig issues partition errors while os-probing.

Additional info:
* package version(s)
* config and/or log files etc.
grub 2.00.5086-1
os-prober 1.58-1
util-linux 2.24-1
reiserfsprogs 3.6.24-1
xfsprogs 3.1.11-1

Steps to reproduce:
grub-mkconfig
   grub.out (15.6 KiB)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 30 October 2013, 10:29 GMT
Reason for closing:  Upstream
Comment by Tobias Powalowski (tpowa) - Sunday, 27 October 2013, 18:13 GMT
Well is this a real bug?
It's just debugging output, without telling what is wrong here what shall we do?
Comment by jb (jb.1234abcd) - Sunday, 27 October 2013, 19:12 GMT
A supplemental info to attached grub.log file:
because 'cfdisk' does not show extended partition per default, it can be misunderstood as missing or corrupted fs.
Here is newer output instead:
# cfdisk --print s
Partition Table for /dev/sda

First Last
# Type Sector Sector Offset Length Filesystem Type (ID) Flag
-- ------- ----------- ----------- ------ ----------- -------------------- ----
1 Primary 0 41867279 63 41867280 HPFS/NTFS/exFAT (07) Boot
2 Primary 41867280 44949503* 0 3082224*Linux swap / So (82) None
3 Primary 44949504* 73103359* 0 28153856*Linux (83) None
4 Primary 73103360* 78140159 0 5036800*Extended (05) None
5 Logical 73103360* 78140159 63 5036800*Linux (83) None
#

There is one more thing I do not know what is the cause of:

- in tty console

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
/dev/cdrom: open failed: No medium found
No volume groups found
done

Note: randomly missing line:
Found Microsoft Windows XP Home Edition on /dev/sda1

Also, I see these lines (btw, I can not capture them by shell indirection or tee commmand):
...
No volume groups found
Oct 26 18:19:31 myhost kernel: EXT4-fs (sda4): unable to read superblock
Oct 26 18:19:31 myhost kernel: EXT4-fs (sda4): unable to read superblock
Oct 26 18:19:31 myhost kernel: EXT4-fs (sda4): unable to read superblock
... e7b8c000 00 00 ...
... e7b8c010 00 00 ...
... e7b8c020 00 00 ...
... e7b8c030 00 00 ...
... XFS (sda4): Internal error xfs_sb_read_verify at line 730 of file fs/xfs/xfs_mount.c. Caller 0xf0bcb3e4
... XFS (sda4): Corruption detected. Unmount and run xfs_repair
... FAT-fs (sda4): bogus number of reserved sectors
... FAT-fs (sda4): bogus number of reserved sectors
...

- in xterm

I do not see these debug/error lines like above.

Comment by Keshav Amburay (the.ridikulus.rat) - Wednesday, 30 October 2013, 08:29 GMT
@jb: From the output this looks like FS corruption in your system that has nothing to do with grub or os-prober. Also os-prober is a separate program from grub (diff pkg, diff upstream), grub simply calls os-prober. os-prober itself has its own scripts for OS detection that is independent of grub-mkconfig. First try to fix the FS and if you are sure the FS is fine, then report this upstream (to os-prober, not grub). I don't think anything can be done from Arch side.

EDIT: os-prober (not grub-mkconfig) gets confused with the extended partition /dev/sda4 (which does not exist in you fdisk output), and tries to probe /dev/sda4 for any FS and that leads to the error output. This is definitely a os-prober issue.

Loading...