UML question
David A. Bandel
david
Mon May 17 11:57:48 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sat, 3 Jan 2004 10:13:14 -0500 (EST)
Net Llama! <netllama at linux-sxs.org> wrote:
> On Sat, 3 Jan 2004, David A. Bandel wrote:
> > On Fri, 2 Jan 2004 20:50:23 -0500 (EST)
> > Net Llama! <netllama at linux-sxs.org> wrote:
> >
> > [snip]
> > > > 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
> >
> > I don't have a /dev/ubd/<anything> only /dev/ubd#[#].
> >
> > >
> > > Does kswapd get started when you boot the UML instance?
> >
> > yep.
>
> Otay, where did you get the UML kernel & filesystem that you're using?
> And is swap just not getting turned on at bootup?
>
> I have both /dev/ubd7 and /dev/ubd/7, with the same perms, ownership &
> major,minor:
> brw-r--r-- 1 root root 98, 112
>
> What do you have for yours?
BINGO! I have:
brw-rw---- 1 root disk 98, 7 Dec 30 18:09 /dev/ubd7
my ubd devices go from 0-255 for the minor number, and ubd7 == 98,7.
When I swapon ubd112, it works!
This is the debian UML kernel/rootfs build (actually, the rootfs is
built via debootstrap and dpkg).
Will report this to the package maintainer.
Thanx,
David A. Bandel
- --
Focus on the dream, not the competition.
Nemesis Racing Team motto
GPG key autoresponder: mailto:david_key at pananix.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/+JWaj31PLQNUbV4RAli3AJ9FTcAiTvfRqiupWB+IxfYNET44ngCeI+52
MtHgzOLnS1olr6XhmI5EnkM=
=AG1e
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list