FS#11997 - grub doesn't install right if /etc/mke2fs.conf file has inode_size = 256

Attached to Project: Arch Linux
Opened by christopher rogers (godane) - Wednesday, 05 November 2008, 02:35 GMT
Last edited by Ronald van Haren (pressh) - Wednesday, 12 November 2008, 10:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andreas Radke (AndyRTR)
Architecture All
Severity Critical
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Grub doesn't install right if /etc/mke2fs.conf file has inode_size = 256. It needs to be 128 inorder for grub to be install right. I have tested this in virtualbox and it only works with inode_size = 128.

Additional info:
e2fsprogs 1.4.3-2

Steps to reproduce:
pacman -S e2fsprogs
pacman -S grub
grub-install /dev/sda
can't find boot folder on device (it was something like that)
This task depends upon

Closed by  Ronald van Haren (pressh)
Wednesday, 12 November 2008, 10:14 GMT
Reason for closing:  Works for me
Additional comments about closing:  sorry I can't replicate it on a normal installation.
Please re-open if you can replicate your issue on a normal installation (so not in virtualbox).
Comment by Jan de Groot (JGC) - Wednesday, 05 November 2008, 07:40 GMT
I think it's better to apply this patch to grub. Debian and Redhat use this patch. If we don't patch grub, we have to make sure that the filesystem containing /boot always has inode_size=128.
Comment by Ronald van Haren (pressh) - Wednesday, 05 November 2008, 18:43 GMT
agreed, this would make more sense to fix in grub
Comment by Ronald van Haren (pressh) - Monday, 10 November 2008, 14:51 GMT
Jan, that patch is already applied for some time it seems. I'll see if I can set up a test partition to test/fix this bug later this week.
Comment by Ronald van Haren (pressh) - Wednesday, 12 November 2008, 10:11 GMT
bash-3.2# tune2fs -l /dev/sda3 | grep 'Inode size'
Inode size: 256
bash-3.2# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 19227708 7367620 10883336 41% /
none 899768 0 899768 0% /dev/shm
/dev/sda5 19380676 16743692 1660236 91% /home
/dev/sda8 176341464 27933840 148407624 16% /files
bash-3.2# tune2fs -l /dev/sda3 | grep 'Inode size'
Inode size: 256
bash-3.2# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
bash-3.2#

Loading...