Port-xen archive

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

swap file for linux stopped working: mail #2



Marcin M. Jessa wrote:
Hi.

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?


Cheers,
Marcin


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




Home | Main Index | Thread Index | Old Index