Port-xen archive

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

Re: swap file for linux stopped working: mail #2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 6 Oct 2008, at 21:26, Marcin M. Jessa wrote:

I used to create a separate SWAP file for linux and define it in my domU config: disk = [ 'file:/linux/ubuntu.img,0x301,w','file:/linux/ swap.img,sda2,w' ]
Then just defined swap device as hda2 in linux's fstab.
But this does not seem to work anymore but I am actually not sure when it stopped working since I until now
didn't use linux domU to anything serious.
Any idea what may have broken this config and how to make this work again?

I forgot to mention one thing. The root device on Linux is sda1 and the swap device is sda2.
Trying to initialize it manually I get following error:

# swapon  -a
swapon: /dev/sda2: No such device or address

# ls -l /dev/sda2
brw-rw---- 1 root root 8, 2 Sep 28  2007 /dev/sda2

Just to make sure: you have made sure that the swap file has the magic swap signature that Linux requires? I seem to remember that I needed to "mkswap /dev/sda2" or similar before the first attempt to swapon last time I had to run a Linux DOMU with swap.

Regards,

Johan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFI6npzKJmr+nqSTbYRAviHAKCkXFO+qZiWuDjGs2p5p1vPv8TKiwCdGi1v
THN2HM2d4dO0mdzLQlf28X4=
=j3UF
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index