UML question

Net Llama! netllama
Mon May 17 11:57:46 PDT 2004


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

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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