xfs
[Top] [All Lists]

Solved: Can't mount XFS root if HFS enabled

To: linux-xfs@xxxxxxxxxxx
Subject: Solved: Can't mount XFS root if HFS enabled
From: Nick Wellnhofer <wellnhofer@xxxxxxxx>
Date: Mon, 12 Apr 2004 15:21:00 +0200
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
This might be helpful to XFS users:

With Linux 2.6.4 and later versions I couldn't boot from my XFS root 
partition. I eventually found out that the new HFS driver which I had 
enabled was the culprit. The kernel first tried to mount the root fs as 
HFS and due to a wrong return value it bailed out.

If you have HFS enabled and want to boot from a XFS root partition you 
should pass "rootfstype=xfs" as boot parameter or apply the attached 
patch (against fs/hfs/super.c in 2.6.5).

This also might explain the problem John Palkovic posted here:
http://oss.sgi.com/archives/linux-xfs/2004-03/msg00185.html

I have forwarded the fix to the HFS maintainer and hope to see it in a 
release kernel soon.

Nick


-- 
aevum gmbh
leopoldstr. 87
80802 münchen
germany

fon: +4989 38380653
fax: +4989 38799384
wellnhofer@xxxxxxxx
http://aevum.de/


-- Attached file included as plaintext by Ecartis --
-- File: hfs.patch

--- super.c.old 2004-04-10 22:01:39.000000000 +0200
+++ super.c     2004-04-10 22:00:57.000000000 +0200
@@ -276,6 +276,7 @@
                if (!silent)
                        hfs_warn("VFS: Can't find a HFS filesystem on dev 
%s.\n",
                                hfs_mdb_name(sb));
+               res = -EINVAL;
                goto bail2;
        }
 



<Prev in Thread] Current Thread [Next in Thread>
  • Solved: Can't mount XFS root if HFS enabled, Nick Wellnhofer <=