Score:0

Ubuntu partition may have been deleted after Windows 10 upgrade

dm flag

A person I know had their legacy boot computer set for an Ubuntu and Windows 7 dual boot. He asked me to update the Windows 7 side to Windows 10, so I did an in place update and immediately regretted it. I had backed up the Windows 7 data but not the Ubuntu side. I thought at fist that Windows had just erased the grub bootloader, but I have a feeling that it actually deleted the Ubuntu partitions.

I made a live USB and booted to it.

This is the image from the lsblk command:

Photo of lsblk results

Here's are images for the fdisk -l command:

FDISK picture 1

enter image description here

On Windows 10 Disk Management there is a 98.63 GB section that can't be read which is the same size as sda8 on the Linux side. Could that be where the Ubuntu partition is, or is it gone and I need to look at data recovery options?

us flag
Can you access the files in `/dev/sda8` from the Ubuntu live session? Are there directories like `bin`, `usr`, `opt` and so on in that partition? Then it would be the Ubuntu partition. Once you confirm this, someone here can certainly tell you how to restore grub to use that partition and the Windows (I don't remember how to restore grub, but someone in this site will definitely know).
oldfred avatar
cn flag
Windows in BIOS mode is know to "forget" to update partition table with logical Linux partitions. Partition is still there & can be restored. If system newer than 2012, probably UEFI and better then to be UEFI/gpt. If older then lighter weight flavor now better than full Ubuntu. [testdisk or parted rescue restore](http://askubuntu.com/questions/654386/windows-10-upgrade-lead-into-grub-rescue/655080#655080) & https://askubuntu.com/questions/944371/grub-and-ubuntu-disappeared-after-windows-update
Curtis Bilewitch avatar
dm flag
@ArchismanPanigrahi When I try to mount /dev/sda8 it says can't find in /etc/fstab , so I am unable to check what is in it. It's also listed as a FAT16 type, which seems strange.
Score:0
tr flag

Ok, Curtis, I'm a bit of a noob but I'm going to take a shot at this

Everyone else, if I'm wrong, don't beat me too bad :) You never know, I might like it. I'm just tryna get my feet wet.

THE GOOD NEWS: I don't believe you've lost anything. Some things are just temporarily unaccounted for. But don't quote me on that.

THE BAD NEWS: you appear to be missing two partitions (3 & 4) which account for about 390G of the disk. However, doing an upgrade shouldn't just override partitions willy-nilly.

Windows is always going to load itself first if installed over another arch, or after updating/upgrading it. As @ArchismanPanigrahi mentioned, you will need to reconfigure GRUB.

You can also run sudo fdisk -l /dev/sda to read just that drive, and eliminate the loop info, and the other drives. Using a live-boot image, you can run as SU, you'll have to search Ubuntu for the default Root password on live images.

You should also have gparted on there. I believe. I'm pretty sure. Its a little better tool, in my opinion.

If not gparted, you definitely have parted, as that's a basic with Linux for root use if things really go wonkers.

It would be nice to also see what Device Manager in Windows shows about this setup. Does it see the missing partitions? You give enough info that I can help with some of your query, but not all of it. And only the informational side.

I would hazard a guess based on the 2nd fdisk image (which cuts off right above the valuable info, btw) that SDA is as follows:

  1. the boot partition, containing GRUB.
  2. the Linux distro, containing all the folders for the OS. Here you should find root, bin & sbin, home, and the rest. Side Note: the volume type is Extended, a logical drive. Windows requires NTFS, FAT16 ,or FAT32.
  3. Not enough info.
  4. Same.
  5. the Linux SWAP.
  6. the Windows OS
  7. seems to be the Windows boot partition.
  8. Unknown, not enough info. With only 1G, I'd say it could be several things. Most likely the Windows recovery partition. Hence why it's not in the file system table (fstab).

sda8 can be mounted, but you'll have to be super user and mount it to an existing mount point, such as /tmp or /mnt (the latter being the better as it's an old directory for mounting things but isn't really used now) or create a mount point under /media/< user name >. That final way is the standard today.

Though you'll know most of the answer just by looking at the filesystem type using fdisk or equivalent. I'd avoid mounting it unnecessarily.

As to the fix? You have three options as I see it.

I don't know what your desired level of knowledge is, where Linux is concerned. Sounds like you feel confident in Windows. If you wish to learn more about Linux, and multiple architectures on a machine in general, then there's a TON of very helpful documentation out there about this topic already.

Doing it yourself is going to take some research and time, trial and error. When you find potential solutions, read the feedback, make sure the situation is similar to yours. Give it a shot.

If you get errors, bring them back here, or to another forum, and post them. You'll get more help than you ever hoped for, then.

However, should you just want to fix it and move on, I've heard and read good things about this Boot Repair program written for situations just like these for folks who just want it done. I found a decent little article, most of which is going to be hindsight for you, but hindsight is how I've learned some of my best lessons.

Use BOOT REPAIR to fix Windows-Over-Linux installation

If you desire to learn more and do this without that tool, then I suggest hitting Google and the forums, because your answer is definitely already out there, multiple times.

Third option: avoid all culpability and let your buddy fix it. I guarantee they know the partition setup and can tell what is missing, and from where, and how to fix it (most likely).

Best of luck.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.