First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 214563
Alias:
Product:
Component:
Status: CLOSED
Resolution: TEST-REQUEST
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sebastian <mailing@wodkahexe.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
fix_inode_size.diff Set default inode size to 128 instead of 256 patch Sebastian 2008-03-24 17:49 0000 308 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 214563 depends on: Show dependency tree
Show dependency graph
Bug 214563 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)





View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-24 17:47 0000
After updating e2fsprogs from 1.40.4 to 1.40.6 grub can no longer read files
that are on a partition created with e2fsprogs 1.40.6.

Reproducible: Always

Steps to Reproduce:
1. emerge "=sys-fs/e2fsprogs-1.40.6"
2. mkfs.ext3 /dev/sda1
3. mount /dev/sda1 /foo
4. cp -r /boot /foo
5. open grub with "grub"
6. type "root (hd0,0)"
7. type "setup (hd0)"
Actual Results:  
grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type

Expected Results:  
grub> setup (hd0)  
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub> 


The problem only exists with e2fsprogs 1.40.6. With 1.40.4 everything is
working as expected. The problem is related to changes in /etc/mke2fs.conf
shipped with 1.40.6. Running 1.40.6 with the default config from 1.40.4 does
work.

In mke2fs.conf for 1.40.6 the default inode size is 256. In 1.40.4 it was 128.

Running 1.40.6 with the default inode size of 128 does not produce any problem.

"Error 2: Bad file or directory type" means:
This error is returned if a file requested is not a regular file, but something
like a symbolic link, directory, or FIFO.

------- Comment #1 From Sebastian 2008-03-24 17:49:22 0000 -------
Created an attachment (id=147148) [edit]
Set default inode size to 128 instead of 256

This patches fixes mke2fs.conf shipped with e2fsprogs 1.40.6. It changes the
default inode size back to 128 as in 1.40.4.

------- Comment #2 From SpanKY 2008-03-24 20:03:04 0000 -------
that ignores the real problem ... grub cant handle diff inode sizes apparently

------- Comment #3 From Robin Johnson 2008-03-24 20:10:17 0000 -------
This was already going to be in the -r5 I was working on - hopefully out later
today.

------- Comment #4 From Robin Johnson 2008-03-25 06:17:54 0000 -------
in -r5, please test it from the package.mask.

------- Comment #5 From Sebastian 2008-03-26 21:19:50 0000 -------
Confirmed. -r5 fixes this problem. Thanks.

------- Comment #6 From Robin Johnson 2008-03-30 06:25:37 0000 -------
Thanks

------- Comment #7 From SpanKY 2008-04-15 22:18:38 0000 -------
*** Bug 217863 has been marked as a duplicate of this bug. ***

------- Comment #8 From Wiktor Wandachowicz 2008-05-02 04:27:58 0000 -------
Read the following article for explanation:

GRUB vs. the Inodes: Who Needs a Bootable System, Anyway?
http://www.linuxplanet.com/linuxplanet/tutorials/6480/1/

------- Comment #9 From Andreas K. Huettel 2008-07-14 12:05:26 0000 -------
It should be pointed out that this bug hits everyone who installs from the
Gentoo 2008.0 LiveCD (i686) on an ext3 partition. :(

First Last Prev Next    No search results available      Search page      Enter new bug