# Hibernation to a swap file 12.04, fragfile output

I've been trying for some time now, to get hibernation working in 12.04 on my Dell XPS17. I dual-boot Windows 7 and Ubuntu, each having their own partition and one shared partition for all my data and documents.

As I would like to be able to switch from Ubuntu to Windows without losing all the things I was currently doing in Ubuntu, I would like to be able to use hibernation. In order to achieve this I've followed the information here.

Only instead of creating my swap file on my Linux partition (which is formatted: ext4), I've chosen to create one on my shared partition (which is formatted: NTFS).

There is a problem with this though (at least, that's what I think the problem is), because when I call:

sudo filefrag -v /media/data/Ubuntu_Swap_Space/6GiB.swap


I get the following output:

Filesystem type is: 65735546
File size of /media/Data/Ubuntu_Swap_Space/6GiB.swap is 6442450944 (1572864 blocks, blocksize 4096)
Discontinuity: Block 22 is at 25829097 (was 232498)
/media/Data/Ubuntu_Swap_Space/6GiB.swap: 2 extents found


So I'm not sure what I need to fill in as an offset to follow the rest of the earlier mentioned information. I've tried both the location of block 22 and the number that is listed after that, but when I then try sudo pm-hibernate nothing happens and this shows up in my /var/log/pm-suspend.log:

s2disk: Could not use the resume device (try swapon -a). Reason: No such device