Hibernation / Changing size of swap partition

Discussion in 'Linux' started by picasso, Aug 10, 2008.

  1. picasso

    picasso

    Joined:
    Jul 26, 2008
    Messages:
    29
    Likes Received:
    0
    Hi,

    my swap partition (395mb) seems to be to small for hibernation (at least that is what has been shown). Is hibernation working anyway with Ubuntu? How could i safely change its size, what is the minimum? Thx.....
     
    picasso, Aug 10, 2008
    #1
    1. Advertisements

  2. picasso

    lotus49

    Joined:
    Jun 29, 2008
    Messages:
    343
    Likes Received:
    0
    Location:
    Yorkshire
    Hibernation is currently not working reliably with Ubuntu on the One.

    In order to use hibernation the swap partition must be at least as large as the amount of memory you have. Ubuntu can now run with a swap file just as efficiently as a partition but you cannot hibernate to a file.

    Resizing partitions in general is a dangerous process (unless you are using LVM). I would normally recommend reinstalling unless you have done a lot of customising that you cannot easily repeat.

    However, there are tools available. gparted is a command line utility that will do this but I wouldn't recommend it unless you really know what you are doing. Ubuntu comes with Partition Editor, which should also work. There are also commercial tools like Partition Magic, which can resize ext2 partitions.

    Whatever you do, don't attempt this unless you either have no data you care about on the machine or have backed it up.
     
    lotus49, Aug 10, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.