[Pc_Support] Re: Swap on an NTFS partition? -- pre-allocated blocks (forgot a comment)

Bryan J. Smith thebs413 at gmail.com
Thu Aug 24 13:32:37 EDT 2006


Darren Humphrey wrote:
> So far I have tried:
> umount /mnt/hda2        (originally mounted readonly)
> ntfsmount /mnt/hda2    (now mounted read write)
> mkswap /mnt/hda2/pagefile.sys   (reports success)

Oops, forgot a comment.

"mkswap" is rather silent, even when it fails.  Try it with the "-c"
option to check bad blocks to verify you can actually write to the
file.

I don't think your problem is "swapon," but "mkswap."  Also, really
verify /mnt/hda2 is mounted read/write -- although that's hard to do
without creating a new file, something you should _never_ do with NTFS
because it modifies filesystem attributes.



More information about the Pc_support mailing list