#Windows partition broken after installing mint
146 messages · Page 1 of 1 (latest)
boot to Linux to test something
the installed version
****To see if Linux is booted/installed as UEFI or BIOS mode:
In terminal: ls /sys/firmware/efi
a 'no files found' means it's booted as legacy BIOS
files found will mean UEFI booted
There are files there
yes, structure looks good
idk why Windows boot got messed
u may need to get and boot a windows installer dvd/image and use its Advanced tools/repair
the advanced tools are what it sends me to when I try to boot windows, I think?
also, what about the "Repair filesystem..." option in Disks. is that worth trying?
this screen? that looks the same as what I get
yeah that screen, but from ISO
Ok. And you don't think the 'Disks" app's repair filesystem tool is worth running?
I can't see windows files. I can't mount the partition that has them
do you mean the flash drive I used to install linux?
yes
I didn't use ventoy (if that matters), but I do have that, yeah
u may need some tools, so I recommend u get the ventoy bootloader tool for USB's and install it exactly to my instructions (LINE 11 especially) then add Hirens Boot CD PE iso to it.
then boot the usb as a UEFI storage device at power on time.. use ventoy menu to choose Hirens, and boot normal. On Hirens desktop, open command prompt as administrator (r-click) and do chkdsk c:
if errors are found, log to c drive in prompt. c:
then type chkdsk /f
Alright. I'll work on this and let you know, thanks
Also, what iso should I be putting on to it?
windows, right?
if that doesn't fix the problem, you can verify if the ESP (UEFI Boot partition) contains the proper stuff, by loading linux mint iso, off ur ventoy stick, then running its Boot Repair tool from its desktop start-menu, and do a SUMMARY report, and read it over.
I'd just add Hirens Boot PE , and Mint ISO for now
but you're saying to run chkdsk which is windows, no?
if the chkdsk thing doesnt fix Windows, and the Boot Repair summary shows no entries for Windows in all the data regarding that exact disk, then more work needs to be done regarding rebuilding the EFI partition
yes, Hirens is like a Windows environment.
ohh I didn't know that. ok
one more question before I get going, can you elaborate on this? how would I do that?
so the first command scans the c: drive (in hirens it should detect the NTFS partition automatically, and letter it C:) u can check in its file explorer anyway.
if it finds errors, it will tell u at the end of the scan in the command prompt
it will say do "chkdsk /f" to fix
/r will do a surface scan, but that's rather lengthy and likely excess work.
when i said log to, i just mean make sure the prompt reads C:\ >
command to log to correct place: c:
and/or cd \
in the extreme event... you'll need the Win official install ISO, and have a good watch of this video to guide u
https://www.youtube.com/watch?v=CZ17JrgFFhw
Is your system not booting or has something else gone wrong with the UEFI bootloader? If so, this video will show you how to completely rebuild the UEFI bootloader to fix just about any booting problem your having with a GPT or UEFI system.
Sponsored links
VIP-SCDKey.com
25% off discount code: CyberCPU
▬ Windows 10 Pro (16USD): https://biitt.l...
but u may hopefully not have to go that far.
'chkdsk c:' output a bunch of stuff, but notably "The Volume Bitmap is incorrect."
it recommends running 'chkdsk /scan'. should I do that, or 'chkdsk /f' like you said?
is it SSD?
yes
ok do its recommendation
might take a while but hopefully not more than 10 minutes
nah, it finished fast. it's now recommending 'chkdsk /spotfix'
should I go ahead with that recommendation?
hm. it said it fixed the 1 error it found, but I still can't boot to it or mount it
danggg
try again.. go back into hirens. do the chkdsk /f thing.. then use its own file explorer to look around and open files like pictures or documents in the thing it calls "c:" drive.
ie: c:\users$user\
hope it at least opens files there.
I'm thinking I'll try browsing the c drive before and after chkdsk /f
sure
this is very rare. either ur drive just got a bad sector or 2 in the flash memory, or even more strangely, the EFI got wrecked.
well find the right stuff and work on the right drive letter.
yup, working on that
"Corrupt master file table. CHKDSK aborted." it makes no recommendations
ew
are u able to access files?
and, did u do the command using an Administrator-level command prompt window?
"d:" returns "The file or directory is corrupted and unreachable"
yes I did
*unreadable
in the file explorer, u mean?
both in the command prompt and in file explorer
and ur certain to be looking in this 375-400 GB partition/proper drive letter?
I have no good way to verify other than the fact that it won't load
there may be some Disk-related tools in Hirens. I guess check them out.. otherwise u will need to erase that partition, and reinstall Windows on it.
open "Windows Disk Management" from start-search . u'll see what letter it gave it.
D: says 372.47 GB, so that seems right. strangely the file system is listed as "RAW" and the status is "Healthy (Basic Data Partition)"
.
alright, thanks
yeah file system should list as NTFS, but eh.. good luck.
Alright, so. I spent all of last night trying to restore the partition, with no luck. So its time to give up on it and just reinstall windows. I wanted some guidance though. So I just need to go ahead and format that singular partition, right?
The first image is the one in question.
But I also noticed the one in the second image that says "Microsoft Reserved". Do I need to do anything with that?
And then lastly, the partition in the third image is "Windows Recovery Environment" which I guess is why I can get to that recovery screen that I think you'd usually see booting from an ISO. Can I just reinstall from that?
hang on
yup, no worries
ok you're still able to boot into linux on this computer right?
yeah
I would first venture to boot the Windows Installer ISO, and do a thing
u have it right?
Just the first download on this page, right? https://www.microsoft.com/software-download/windows11
looks right
ok (obviously if it doesnt install right, then u'll need to make a media creation tool, on another Windows PC, onto a fresh USB stick of at least 8 GB i think)
but ya find the ISO.
try with Ventoy for now
Alright. What are you suggesting I try?
whatever u had working.. windows 10 or 11.. just install. I was gonna say try to recover the bootloader, but nvm.
so to prepare the disk,
go into gparted, delete 3 partitions. The large screwed up NTFS one, the ms reserved, and the ms recovery one.. apply changes, then reboot to the Windows installer. dont format anything.. just leave as unallocated space, and windows installer should pick it up and set it up with u.
Gotcha. And do I just need the gparted package, or do I need gparted-common as well?
nevermind its a dependency
no i'd rather u do it from the live USB
which it already is included on
the mint stick
however, if u dont have access to it, then u will need to install gparted on your main mint install.
No, I can do it from Mint on ventoy.
ya u can choose either way
ok do that
keep in mind that after you install Windows, its installer may alter or delete something in the EFI partition to make Linux unbootable. In such case, run the Boot Repair tool in the mint live desktop.
also, don't forget to turn off Windows Fast Startup, as the first order of business once it gets installed.
👍
with those partitions marked for deletion, I now have two separate unallocated segments. is there a way to combine them/does it matter?
you may choose to move the linux partition to the far right.. up to you. it will have to rewrite any used amount of data on that, so give time.
I'll just grow the Linux partition to include the ~500mb on the right. then I don't need to worry about the time to move files or it messing with the boot
ahh
what do you make of this. this is after installing windows and restarting
um..
oh prob cuz the old boot entry was there from before in the EFI partition
trial and error it
👍
well I have no idea where it was stored. but it says it has a backup of my pc from 3 days ago. I stg, was Microsoft storing backups on the cloud without my knowledge? even more reason to be on Linux
lol
wow eh.
well it must be an online storage. That would likely show up in your OneDrive. (check via web)
not a bad thing I guess if you don't have super secret files.
turned out it wasn't as much of a backup as it seemed lol. but anyway. I can boot to both windows and Linux now! Last thing: is there a way/need to remove that extra windows boot entry
yes. I think on the Hirens CD there's a thing called Easy BCDedit
just be sure to keep right entry.
and keep your Ventoy USB intact in case dualbooted Linux needs repair
it's telling me this
oh idk much about this. make a new post for that in misc-support
will do. thank you so much for all your help. I really appreciate it
you're welcome! please mark the post as solved.
I can't find how to do that on mobile, which is all I have access to atm