UML question
Net Llama!
netllama
Mon May 17 11:57:46 PDT 2004
On Fri, 2 Jan 2004, David A. Bandel wrote:
> On Fri, 2 Jan 2004 19:56:21 -0500 (EST)
> Net Llama! <netllama at linux-sxs.org> wrote:
>
> > On Fri, 2 Jan 2004, David A. Bandel wrote:
> > > Folks,
> > >
> > > Any UML wizards out there know what I've doing wrong here?
> > >
> > > Kernel command line: ubd1=swap2
> > > eth0=daemon,,,/var/run/uml-utilities/uml_switch.ctl ubd0=uml2
> > > root=/dev/ubd0
> > >
> > > the swap file, swap2, can be mounted by the host just fine.
> > > However, in UML I get this:
> > > uml2:~# swapon /dev/ubd1
> > > swapon: /dev/ubd1: No such device
> > >
> > > Any ideas?
> >
> > Yup. The swap device in UML must be specified as /dev/ubd7. Anything
> > else is treated as some other filesystem (ext3, XFS, etc).
>
> First, where did you find that (referring to the udb7 <-> swap)?
I'm pretty sure its buried in the official documentation on the UML
website.
> Second, it doesn't work any differently:
>
> Kernel command line: ubd7=swap2
> eth0=daemon,,,/var/run/uml-utilities/uml_switch.ctl ubd0=uml2
> root=/dev/ubd0
>
> uml2:~# swapon /dev/ubd7
> swapon: /dev/ubd7: No such device
> uml2:~# ls -al /dev/ubd7
> brw-rw---- 1 root disk 98, 7 Dec 30 18:09 /dev/ubd7
You already have an entry for swap in your fstab? Inside the UML instance
it should be /dev/ubd/7. Perhaps try:
swapon /dev/ubd/7
Does kswapd get started when you boot the UML instance?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman netllama at linux-sxs.org
Linux Step-by-step & TyGeMo http://netllama.ipfox.com
More information about the Linux-users
mailing list