1

A similar question has been asked here: How do I remove my Ubuntu partition from Windows 7 and reuse the space?, and I've used the advice that was posted.

However, I still can't figure out which of the partitions is Ubuntu.

Here's a screenshot after I run diskmgmt.msc Windows disk management screen shot

  1. I need a fresh install of Ubuntu since my current one has suddenly stopped working. I had used .iso image by mounting the image and installing it on a thumb drive when I partitioned it.

  2. To do the above, do I need to remove the partition first from diskmgmt.msc and then go about partitioning it again from the image like I did the first time around?

Update. I get "Boot error" when I try to run the Ubuntu installer by booting from USB. When I press enter, it takes me to the grub screen. Do I need to use Windows recovery disk to repair so that grub is no longer there? (This problem was resolved)

I have now attached the screenshot that I get when I choose "Something else" when the installer asks me how I want to partition my disk. It seems the 52.64 GB was the one with Ubuntu on it. I was confused because according to the diskmgmt.msc it's 100% free. Ubuntu. I have deleted ext4 and swap, restarted the install, selected "Install Ubuntu alongside them" and that seems to have worked.

Thanks everyone for the advice!

1 Answers1

1

You can predict from the the size given to get the Ubuntu partition. So do you remember how much space you allocated to Ubuntu? I guess the first two partition is Ubuntu partition. 1st i,e 52GB is for Ubuntu home,root and others and 2nd i,e 5.92 GB is for swap. The reason why these partitions are unreadable because Ubuntu uses ext4 partition which can't be read by Windows OS.

If you still have any doubt then best thing you can do is to boot Ubuntu using Live CD/DVD/USB with Try Ubuntu option.

When booted run this command:

sudo blkid

It will give the output some thing like this:

/dev/sda1: LABEL="Windows" UUID="FA50DCB150DC763B" TYPE="ntfs" 
/dev/sda5: LABEL="40GBTWO" UUID="00A0CE7EA0CE7A24" TYPE="ntfs" 
/dev/sda6: UUID="7550252c-3da7-4cd9-8da3-71e9ba38e74a" TYPE="ext4" 
/dev/sda7: UUID="088fd084-a011-4896-aa93-c0caaad60620" TYPE="swap"

Now you can get that /dev/sda7 is swap and /dev/sda6 is ext4. So it is clear that Ubuntu is installed in sda6 partitions. Now only thing you've to get is the size of /dev/sda6. So that you can match it with Windows table.

To do so run this command:

lsblk

It will give:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0  37.3G  0 disk 
├─sda1   8:1    0    10G  0 part /media/Windows
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0  17.2G  0 part /media/40GBTWO
├─sda6   8:6    0   8.8G  0 part /
└─sda7   8:7    0   1.3G  0 part [SWAP]

Now using it you can get that 8.8GB is the size of /dev/sda6 in which Ubuntu is installed. This is one of the way. Though there would be another way.

Use Gparted to get solved your confusion. :)

Saurav Kumar
  • 15,174