0

Installed ubuntu alongside windows (windows doesnt show in boot menu that is another issue)

After loggin in to ubuntu, I formatted a partition (not one which the OSes were installed on. It had just data)

But the formatting failed and now i cant see the partition or use it. Also the fdisk command shows the same partition twice sda4 and sda5 in the image below.

Not able to understand how to fix this so that the partition becomes usable again.

enter image description here

1 Answers1

0

You can access grub menu with press and hold shift key on keyboard after your machines boot screen disappear.But you will see there is no windows entry there so you should add it into grub in Ubuntu.To add windows in grub open a terminal and type:

sudo gedit /etc/grub.d/40_custom

and paste the following and save:

menuentry "Windows" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos3)'
chainloader +1
}

Then in terminal type:

sudo update-grub2

Now reboot your machine and hold shift key you will see windows menu entry there select and enter if your C drive is okay you can access windows and try to correct/check your partition in windows.

cetox
  • 16