Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Ubuntu and wanted to clone my HD with the dd command. I have used it before but this time I got an error message:

Warning: invalid flag 0x0000 of partition table 5 will be corrected by (w)rite

I really do not understand what it means, but when using Gparted to look at the disk I got the following info:


I suppose that the two partitions to the right in the picture means that they are overlapping.

How do I fix this? (pls remember that I am a newbie so a detailed approach is much appreciated) I do not want to damage the content of the disk, so is it possible to fix it without losing any data?

Thanks in advance

share|improve this question

migrated from Mar 23 '11 at 22:43

This question came from our site for professional and enthusiast programmers.

Your hard disk is fine. If you need to clone it, then boot your computer using a Live CD or USB and then use the dd command. I think you are bound to get errors if you try clone a hard disk that is in use.

share|improve this answer

/dev/sda2, as an extended partition, contains /dev/sda5, a logical partition.

share|improve this answer
is that ok or? do you know what the 'invalid flag...' message means? – Toby Mar 23 '11 at 22:31
Yes extended partitions should always contain at least one logical partition. The flag is likely the 16 bits starting 444 bytes from the start of the partition block. These are normally 0000. As this is a swap partition, there is very little risk if the partition gets damaged. – BillThor Mar 24 '11 at 4:16

Your Answer


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