This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-users] switchroot mount failed

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] switchroot mount failed
From: Kanwar Ranbir Sandhu <m3freak@xxxxxxxxxx>
Date: Thu, 15 Jun 2006 00:37:49 -0400
Delivery-date: Wed, 14 Jun 2006 21:38:33 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:Subject:From:To:In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=VaV8G+OFDEhn7uiPkiVmkGSZzAXJZ/lnkVafaVyIToBKYSK+Bbkq6Y7j4Zx/L9CqUNOwHnICY+C/UqJFs0ddmTpbglWY/GFEIB4wpWIq0NSaPcTDFk1Sc6RbnEFohKM6zw1gIfWQT/ioDURBCNrx7vMc6psgLv5gLIC/VQpnB4s= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2b50db750606130842u1b108870vaab53e05102b320@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <2b50db750606130842u1b108870vaab53e05102b320@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-13-06 at 08:42 -0700, vineet chadha wrote:
> I am running xen3.0.2  and xen unstable on RHEL 4, and get this error
> when trying to boot Xen kernel(domain0) \
> ...... 
> Creating root device
> Mounting root filesystem
> mount: error 6 mounting ext3
> mount: error 2 mounting none
> Switching to new root
> switchroot: mount failed: 22

I've been using Xen on a CentOS 4 system for about a month, and I've had
my share of problems: this was one of them.

In my case, I was setting up a second domU, and every time I would boot
it, it would freeze at the "Switching to new root" step.  It was quite
puzzling because the new domU was based on an existing one that was
working perfectly.

During my trouble shooting, I discovered that my base image didn't have
a /dev directory.  So, I created a /dev directory  (empty of course,
since CentOS 4 uses udev), unmounted the logical volume that contained
the domU, started it, and behold, it finished booting.  It's now running

Sooo, you might want to check that /dev exists before you start the
domU.  Even though /dev is populated at boot time, it seems a /dev
directory must first exist.


Kanwar Ranbir Sandhu
Linux 2.6.16-1.2111_FC4 i686 GNU/Linux 
00:21:29 up 1 day, 17:51, 4 users, load average: 0.39, 0.12, 0.04 

Xen-users mailing list