linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] swap problem
@ 2005-10-12 14:01 Etay Meiri
  2005-10-12 14:49 ` Blaisorblade
  0 siblings, 1 reply; 3+ messages in thread
From: Etay Meiri @ 2005-10-12 14:01 UTC (permalink / raw)
  To: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 730 bytes --]

Hi,

I'm unable to get the swap file working with uml (2.6.13-bs2).
I created a 512Mb file using dd and formatted it using 'mkswap ./swap'.
I start uml with the command:
vmlinux mem=128m ubd0d=root_fs.fc4 ubd1d=swap
eth0=tuntap,,,10.10.20.6<http://10.10.20.6>
I've got 8 devices under /dev/ubd and only /dev/ubd/0 seems to be working
and used for the root partition.
I see the following messages during the boot:
.
.
[42949373.340000] ubda: unknown partition table
[42949373.340000] ubdb: unknown partition table
.
.
Enabling swap space: swapon: /dev/ubd/1: No such device or address [FAILED]

Any idea?

Thanks,

--
------------------------------------------------------
Etay Meiri
etay.meiri@gmail.com

[-- Attachment #2: Type: text/html, Size: 902 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] swap problem
  2005-10-12 14:01 [uml-devel] swap problem Etay Meiri
@ 2005-10-12 14:49 ` Blaisorblade
  2005-10-12 15:03   ` Etay Meiri
  0 siblings, 1 reply; 3+ messages in thread
From: Blaisorblade @ 2005-10-12 14:49 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Etay Meiri

On Wednesday 12 October 2005 16:01, Etay Meiri wrote:
> Hi,
>
> I'm unable to get the swap file working with uml (2.6.13-bs2).
> I created a 512Mb file using dd and formatted it using 'mkswap ./swap'.
> I start uml with the command:

> vmlinux mem=128m ubd0d=root_fs.fc4 ubd1d=swap
> eth0=tuntap,,,10.10.20.6<http://10.10.20.6>
> I've got 8 devices under /dev/ubd and only /dev/ubd/0 seems to be working
> and used for the root partition.
> I see the following messages during the boot:
> .
> .
> [42949373.340000] ubda: unknown partition table
> [42949373.340000] ubdb: unknown partition table
That's normal, as there's no partition table on /dev/ubd0 (or let's call 
it /dev/ubda, it's the same thing). You normally mount /dev/hda1, 
not /dev/hda, but mount /dev/ubda, not /dev/ubda1.
> .
> .
> Enabling swap space: swapon: /dev/ubd/1: No such device or address [FAILED]

> Any idea?
Check the minor number. It should be 16, but there are around root_fs with 
number 1 (which was correct when UBD didn't support partitions). This would 
explain everything in your setup.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [uml-devel] swap problem
  2005-10-12 14:49 ` Blaisorblade
@ 2005-10-12 15:03   ` Etay Meiri
  0 siblings, 0 replies; 3+ messages in thread
From: Etay Meiri @ 2005-10-12 15:03 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

Great! it worked.

Thanks,

-Etay

On 10/12/05, Blaisorblade <blaisorblade@yahoo.it> wrote:
>
> Check the minor number. It should be 16, but there are around root_fs with
> number 1 (which was correct when UBD didn't support partitions). This
> would
> explain everything in your setup.
> --
> Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
> Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ
> 215621894)
> http://www.user-mode-linux.org/~blaisorblade
>
>
>
>
>
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
> http://mail.yahoo.it
>
>


--
------------------------------------------------------
Etay Meiri
etay.meiri@gmail.com

[-- Attachment #2: Type: text/html, Size: 1226 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-12 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-12 14:01 [uml-devel] swap problem Etay Meiri
2005-10-12 14:49 ` Blaisorblade
2005-10-12 15:03   ` Etay Meiri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox