[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] switchroot mount failed


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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= ;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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
smoothly.

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.

Regards,

Ranbir
-- 
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
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.