Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 installed windows 7 and my grub is gone. I'm trying to follow: but I can't mount my ubuntu partion.

sudo fdisk -l

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        4863    38958080    7  HPFS/NTFS
/dev/sda3            4864       14594    78157825    5  Extended
/dev/sda5           14220       14594     2999296   82  Linux swap / Solaris

Gparted shows my Extended partition as empty/unallocated space (???). How can I mount it?

 sudo mount -t ext3 /dev/sda3 /media/ubuntu

    mount: wrong fs type, bad option, bad superblock on /dev/sda3,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
share|improve this question
There isn't a Linux partition here. It seems you have overwritten it unfortunately. – dv3500ea Mar 12 '11 at 15:24
up vote 1 down vote accepted

It looks like you've borked your system, Ubuntu was presumably installed in /dev/sda1, but you've overwritten it with Windows.

sda3 is an Extended partition. In the past, it's thought that 4 partitions were more than enough, which turned out to be false. So they invented the Extended partition. A disk can contain 3 Primary partitions, and 1 Extended partition. The Extended partition itself cannot be used directly, it contains other partitions. In your case, it's the swap partition, sda5.

share|improve this answer

An extended partition just contains partition definitions. It's basically a placeholder for extra partitions beyond the initial four. In your case, the extended partition only holds a swap partition. So it looks like Windows overwrote the partition Ubuntu was on.

From here, you could install a new copy of Ubuntu. That's always the safest: Windows first, Ubuntu second. And it looks like there's plenty room left for a new partition.

share|improve this answer

Perhaps installing Wubi would be the best course of action for you, Wubi installs like any other Windows program and can be easily removed the same way.

share|improve this answer

Your Answer


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.