Score:2

Can't access windows partition after Ubuntu dual boot install. Any way to access files?

pl flag

After installing Ubuntu, I can no longer boot into Windows. This issue was detailed here.

I've basically given up on accessing windows on this laptop again.

I would now like to know if there is any way I can check if the files on that windows partition have been wiped unintentionally during the dual boot installation process, or if I can access or restore that partition somehow from within Ubuntu (or any other way).

There is no 'mount' option available for that partition in gparted.

I'm not sure if there is any software available in Ubuntu for accessing files on such partitions, but I'm open to any suggestions.

vanadium avatar
cn flag
Ubuntu can by default work with partitions of windows in the ntfs format if they are "healthy". Your "Basic data partition" however has an exlamation mark, indicating a specific problem with the parittion. Try perhaps to reveal the cause of the issues by attempting to mount it: `sudo mount /dev/sda4`: if the system cannot mount it, error messages will give a first indication of what might be wrong.
Johan Palych avatar
us flag
Try disabling hibernation: powercfg /h off https://docs.microsoft.com/en-us/troubleshoot/windows-client/deployment/disable-and-re-enable-hibernation
user3175632 avatar
pl flag
@vanadium, I just tried puttiing that in terminal, and got this response: `mount: /dev/sda4: can't find in /etc/fstab.` Does that mean anything to you? There were no other error messages.
user3175632 avatar
pl flag
@JohanPalych I don't think I can do that as I can't get into windows in order to follow the instructions.
Johan Palych avatar
us flag
Try installing grub-customizer and edit the grub boot menu to start Windows. To the terminal: sudo apt update && sudo apt install grub-customizer
vanadium avatar
cn flag
My bad, sorry. The command of course should include a mount point, i.e. should be like `sudo mount /dev/sda4 /mnt`. If that works, content becomes visible under /mnt, if not, there will be error outpur (like you had now, because no mount point was specified. `/mnt` by default is an exiting directory on most linux systems: you have to specify a directory that exists as mount point.
vanadium avatar
cn flag
Could you also check in gparted if you can get more information on the exclamation mark: can you click on that to see the error message or something?
Matthew avatar
ru flag
@Johan Palych: Once grub-customizer edits a grub configuration, doesn't it become very difficult for humans and impossible for other tools (like boot-repair) to read it? That seems unhelpful in this case because it means OP is putting all their eggs in one basket. My source for this is: https://easylinuxtipsproject.blogspot.com/p/grub-customizer.html
Johan Palych avatar
us flag
Run the following on the command line (Ctrl+Alt+t): sudo os-prober If your Windows installation was found, you can run: sudo update-grub https://askubuntu.com/questions/197868/grub-does-not-detect-windows
oldfred avatar
cn flag
If you have an UEFI system with UEFI installs, you should always be able to boot both Windows & Ubuntu/grub from UEFI boot menu. Often f12, but varies by vendor, same key you used to select the flash drive installer in UEFI boot mode. Then in Windows turn off fast start up. And you may need to temporarily turn on os-porber as for secuity reasons grub2 is turning off os-prober in /etc/default/grub . Change to false : `GRUB_DISABLE_OS_PROBER=true` run `sudo update-grub` then change back to true.
user3175632 avatar
pl flag
@vanadium just tried that and the error message I get in terminal is as follows... `Failed to open ntfs attribute: No such file or directory Failed to load $MFT: No such file or directory Failed to mount '/dev/sda4': No such file or directory`
user3175632 avatar
pl flag
@vanadium in gparted, if I right click on the windows partition and select Information, the warning is detailed as follows: Failed to open ntfs attribute: No such file or directory Failed to load $MFT: No such file or directory Failed to mount '/dev/sda4': No such file or directory Failed to open '/dev/sda4'. Failed to open ntfs attribute: No such file or directory Failed to load $MFT: No such file or directory Failed to mount '/dev/sda4': No such file or directory Unable to read the contents of this file system! Because of this some operations may be unavailable.
user3175632 avatar
pl flag
@JohanPalych I believe grub is working, and I can get it to attempt to boot into windows, but that just goes directly to a 'Preparing Automatic Repair' screen and ultimately a few windows startup tools, but I wasn't able to boot into the OS.
vanadium avatar
cn flag
Prefer to add information relevant to debug the problem to your question: use "edit". Comments may not be read or may disappear.
Johan Palych avatar
us flag
NTFS recovery option from Ubuntu - gnome-disks: sudo apt install gnome-disk-utility (big risk) or Back to Windows. Recovery Options: https://www.itpro.com/operating-systems/microsoft-windows/359109/how-to-fix-automatic-repair-loop-in-windows-10
Score:-1
cn flag

I would suggest Testdisk. It is a cli tool and you would have to read a couple how-to/turorials, but for partition/file recovery it is the tool most likely to get you the results you want.

To install it:

sudo apt update
sudo apt install testdisk

"Quick Scan" instructions -->

Choose Create on create a new log file.

The drive your partition was/is on when asked to select a media

Intel on partition table type,

and then analyse.

When the list appears, do [Quick Search].

Good luck ;)

vanadium avatar
cn flag
That is your last resource for self-service data recovery. It recovers recognizable chunks of bits into files with random file names.
Vikare avatar
cn flag
Actually I think it can do a quick search for lost partitions too (before the aforementioned "chunks of bits into files with random file names.") It's been a while since I last used it, could be wrong. Still, most powerful tool you can get before going 'professional.'
vanadium avatar
cn flag
you are right, I was confusing with the accompagnying tool `photorec`. The partition, however, is seen in gparted, so it is not actually lost, but may be corrupt..
Vikare avatar
cn flag
My bad then. Trying to mount it is indeed an easier fix and if it doesn't work he can install testdisk. Shouldn't have rushed with an 'answer.'
Vikare avatar
cn flag
@user3175632 I would like to point out that Testdisk *IS* an actual option, and the most relevant advice given when attempting file recovery is the more you "fiddle" with a filesystem the less data is recoverable. That is if you care apo the files and have given up on booting windows (you could reinstall it?) as you state above.
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.