Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

The thing I wonder why I am not able to see swap area of ubuntu in clonezilla. I want to create an image of my ubuntu. However, I cannot find the swap partition of ubuntu to image it.

Thanks.

share|improve this question
    
Frankly, you don't even need to image it since it contains ZERO data. It can be created after restoring or backing up. –  atenz Aug 2 '12 at 15:19

1 Answer 1

up vote 5 down vote accepted

The swap partition is not needed.

The swap partition is not needed for cloning. To find out why, let's find out what swap does. If you have programs running, and not enough RAM, they are put in swap. At every boot, and through normal operation, data in swap gets cleared time to time, comes and goes, not being needed for data(Similar to RAM). Keeping SWAP is like taking a snapshot of RAM, which is only useful for debugging. You only need to backup any non-swap partitions related to Ubuntu. If you need to restore, you can make a new swap partition, just like the one you had before, without risking important data.

share|improve this answer
    
Okay you are definitely right. However, here is a problem. I installed my ubuntu with a swap partition. Then I want to restore my ubuntu using another flash disk. Because my new flash disk has free space, I need to create partitions including swap and ext4 but the question I wonder is that if it is appropriate to create a swap space having different UUID and space amount. In /etc/fstab, UUIDs of the partition is saved. Whenever I create a new swap partition, these UUIDs will not macth. Can it cause a problem in my ubuntu? I hope I was clear enough to explain my concern :) –  Eray Tuncer Aug 5 '12 at 15:43
1  
@ErayTuncer Not a problem: Just edit /etc/fstab as root: sudo gedit /etc/fstab. Just make a backup first. –  hexafraction Aug 5 '12 at 23:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.