Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45226

Summary: grub doesn't support UFS2 filesystem
Product: Gentoo Linux Reporter: Jon Marston <jon.marston>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: major CC: robmoss
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 55732    
Bug Blocks:    

Description Jon Marston 2004-03-20 11:44:58 UTC
Current grub versions in portage don't support the UFS2 file system used by default in the latest versions of the FreeBSD install.
This makes dual booting with Gentoo/FreeBSD using grub impossible.
Grub gives an error of "File system unknown"

Reproducible: Always
Steps to Reproduce:
1.Install Gentoo
2.Install FreeBSD
3.Set up grub to dual boot gentoo and freebsd

Actual Results:  
Boot on FreeBSD fails with a grub error of "filesystem unknown"

Expected Results:  
Grub should have recognised the UFS2 file system used by FreeBSD


The following URL provides a patch (which I personally couldn't ge working):
http://forums.gentoo.org/viewtopic.php?t=60023&highlight=grub+ufs2
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-03-20 17:35:47 UTC
it didn't work for you? what happened?
Comment 2 Jon Marston 2004-03-21 11:24:10 UTC
I copied the ebuild and patch texts to the relevant files, as described by the thread. But the emerge process always dies at the point of patching with a .out file repetitively printing output as follows:

***** grub-0.94-ufs2-0.3.patch *****
 
====================================
 
PATCH COMMAND:  patch -g0 -p0 < /usr/portage/sys-boot/grub/files/grub-0.94-ufs2-0.3.patch
 
====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr grub/configure.ac grub/configure.ac
|--- grub/configure.ac   Tue Jan 27 05:21:01 2004
|+++ grub/configure.ac   Tue Jan 27 05:21:39 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr grub/grub/Makefile.am grub/grub/Makefile.am
|--- grub/grub/Makefile.am   Tue Jan 27 05:21:00 2004
|+++ grub/grub/Makefile.am   Tue Jan 27 05:21:39 2004
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 32
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -uNr grub/stage2/Makefile.am grub/stage2/Makefile.am
|--- grub/stage2/Makefile.am   Tue Jan 27 05:21:01 2004
|+++ grub/stage2/Makefile.am   Tue Jan 27 05:40:00 2004
--------------------------
No file to patch.  Skipping patch.


Comment 3 Jon Portnoy (RETIRED) gentoo-dev 2004-03-29 14:11:20 UTC
Why not simply chainload FreeBSD?
Comment 4 Robert Moss (RETIRED) gentoo-dev 2004-07-11 20:17:50 UTC
UFS2 support is in grub-0.95. Watch this space...
Comment 5 Robert Moss (RETIRED) gentoo-dev 2004-07-11 23:02:53 UTC
This is implemented in grub-0.95, for which an ebuild is provided in bug #55732. Adding this bug as a dependency.
Comment 6 Robert Moss (RETIRED) gentoo-dev 2004-08-23 17:14:15 UTC
Full UFS2 support is apparently provided in grub-0.95-20040823, although I am unable to test this. Closing - please reopen if this isn't the case.