Results 1 to 3 of 3

Thread: Why is my swapfile discontinuous?

  1. #1
    Join Date
    May 2009
    Location
    Lytham St Anne's, England
    Beans
    119
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Red face Why is my swapfile discontinuous?

    Hi.

    I have an Ubuntu 9.04 64-bit installation on a 16 Gig partition. It currently has 6 Gigs of free space. I just upgraded my MacBook2,1 from 1 Gig to 3 Gig RAM.

    Linux currently has no swapfile. I'm trying to give it a swapfile, which I also want to use to be able to hibernate the machine. (I have never done this successfully in Ubuntu by the way, though it works flawlessly in OS X).

    To create a swapfile I did:

    sudo dd if=/dev/zero of=/swapfile bs=1024 count=5200000

    I now do:

    sudo filefrag =v /swapfile

    to find the first block number, and it gives me:

    Discontinuity: Block 1170062 is at 1723040 (was 1722297)
    Discontinuity: Block 1170075 is at 1723055 (was 1723052)
    Discontinuity: Block 1170078 is at 1723088 (was 1723057)
    Discontinuity: Block 1171413 is at 1724426 (was 1724423)

    Now, it goes on for pages with this kind of thing, and then:

    /swapfile: 1190 extents found, perfection would be 41 extents

    What's going on?

    Richard

  2. #2
    Join Date
    May 2007
    Location
    Finland
    Beans
    701
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Why is my swapfile discontinuous?

    Why don't you use GParted?
    You'll need to make 3GB (or more) of free space, and create a swap partition there
    Intel E8500 - ASUS P5Q-E - 4GB RAM - ATi Radeon 4670 - Samsung SpinPoint F1 - Enermax Modu82+ 425W

    Linux user
    493567

  3. #3
    Join Date
    Feb 2009
    Location
    USA
    Beans
    3,186

    Re: Why is my swapfile discontinuous?

    Linux doesn't use a swap file. Linux uses swap partition. Use GParted to create a swap partition.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •