I was using Windows 10 and Ubuntu 18.04 dual boot. And yesterday I was trying to create more space in Ubuntu partition. So, I tried to shrink space from the Windows partition using Windows disk management tool. But, it allowed me to shrink only 8 GB, and I needed more space (30GB). So, I used AOMEI partition assistant to shrink it. It went on a preOS mode and then after booting to Windows again I saw that it the required created 30GB space but formatted my Ubuntu partition too.
And after that, I was unable to boot into Windows also. I get
boot device not found
I would appreciate any help since I have no clue what to do and I don't want to lose my data from Windows.
I am currently using Ubuntu from a bootable flash drive. And running
sudo fdisk -l gives the following output:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: CC7B896F-703B-441A-B358-34F3401BA61F Device Start End Sectors Size Type /dev/sda1 2048 821246 819199 400M Windows recovery environment /dev/sda2 821248 1353727 532480 260M EFI System /dev/sda3 1353728 1615871 262144 128M Microsoft reserved /dev/sda4 1615872 1749703408 1748087537 833.6G Microsoft basic data /dev/sda5 1758339224 1766727831 8388608 4G Microsoft basic data /dev/sda6 1768774856 1777163463 8388608 4G Microsoft basic data /dev/sda7 1828229120 1879709695 51480576 24.6G Microsoft basic data /dev/sda8 1879709696 1881571326 1861631 909M Windows recovery environment /dev/sda9 1881581000 1953521069 71940070 34.3G Microsoft basic data Disk /dev/sdb: 7.5 GiB, 8036285952 bytes, 15695871 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0199340a Device Boot Start End Sectors Size Id Type /dev/sdb1 * 2048 15695870 15693823 7.5G c W95 FAT32 (LBA)
I am ready to provide additional data if required.
Please take a look at this screenshot of gParted on my PC. There is no linux-swap partition. I guess this happened after the shrinking process by the AOMEI partition assistant processed.
I am able to boot to Windows and Ubuntu through the rEFInd rescue USB disk.
Oops, I found a silly mistake of mine. After shrinking through AOMEI I foolishly converted my EFI system partition from FAT32 to NTFS (using AOMEI). I converted it back again. And now I am able to boot to Windows normally, but not able to boot to Ubuntu, not even using the rEFInd rescue disk. Now, that's probably because of corruption in my linux-swap partition, but I am not sure.
Should I expect any help?