this post was submitted on 03 May 2024
181 points (94.6% liked)

Technology

59374 readers
3767 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

20240520 UPDATE: I just ran winupdate on an ancient win10 surface and after the same 643 error two more times, and running through all the available updates, it's now reporting I'm up to date. yippee.
I guess the latest update finally fixed it, at least on the Surface.

Anyone tried and succeeded? Not too awful plodding through the resizing? Tips to avoid destroying a partition and having to reinstall the os?

all 43 comments
sorted by: hot top controversial new old
[–] [email protected] 74 points 6 months ago (2 children)

Waow. MS can't decide if their users should have control of their hardware or not.

Your linux bootloader and efi config? That belongs to Windows, and it will make changes as much as it wants. A recovery partition that has no usefulness outside their own ecosystem? Yeah, they know it's fucked, and they fucked it, but it's your computer, you fix it!

[–] [email protected] 39 points 6 months ago (1 children)

Simple. It's theirs when it works and yours when it doesn't.

[–] [email protected] 8 points 6 months ago

Their when it works and it's profitable.

[–] [email protected] 29 points 6 months ago (3 children)

A recovery environment is overrated under Windows. Just backup your files and reinstall from scratch.

[–] [email protected] 18 points 6 months ago* (last edited 6 months ago) (3 children)

I've been using windows since windows 3. The number of times I've used the "recovery" feature is exactly zero.

Edit: Corrected by another user below. I have used it a couple times for update rollbacks, I just haven't used it for a full recovery. When I've run into serious issues I just reload it from scratch, as I keep data and OS on completely separate drives.

[–] [email protected] 15 points 6 months ago (2 children)

The number of times I’ve used the “recovery” feature is exactly zero.

The RE Partition is for more than Recovery. If you've ever uninstalled an update then you've used the RE Partition.

[–] [email protected] 4 points 6 months ago

Very good point! Then I have used it.

[–] [email protected] 2 points 6 months ago* (last edited 6 months ago)

In this case I'm happy I always installed Windows without RE partition. It works fine and you can still uninstall updates. Broken system files can also be replaced by a fresh pull from Windows Update.

[–] [email protected] 6 points 6 months ago

Lucky for you! Twice over the years I have had Windows 10, the system failed to come back up after a windows update and the ability to uninstall the most recent update through the recovery partition saved me.

[–] [email protected] 3 points 6 months ago

It recovers in the background with no user intervention when things go wrong.

[–] [email protected] 11 points 6 months ago

It's more than strictly a recovery partition. It is also used for updates and the files needed to roll individual ones back. The entire issue was that they had an update that didn't properly handle when there wasn't enough space for it in the recovery partition.

[–] [email protected] 5 points 6 months ago

Yeah, I have it turned off on all my machines (mostly because of that vulnerability a few months ago).

I have never been in a situation where it was useful, nor have I ever had it work when I tried it.

[–] [email protected] 13 points 6 months ago

I have run the script with mostly success. A few computers had the script fail because WinRE was corrupt, or missing, or whatever. You would think that if WinRE wasn't present, the update would be skipped and not repeatedly notify you that it failed, but that's Microsoft for you.

[–] [email protected] 11 points 6 months ago (1 children)

Anyone tried and succeeded?

Shiiit, I have a powershell script for this. Takes 90 seconds or less to fix it on systems with an SSD. Takes 2-3 minutes on HDD systems. I've done hundreds of times since the January 2024 update.

[–] [email protected] 5 points 6 months ago (1 children)
[–] [email protected] 8 points 6 months ago* (last edited 6 months ago)

You can literally copy / paste either of these commands into an elevated Powershell session. They create the directories needed, go fetch the script from Github, then execute it with the necessary arguments. I've run this on Windows 10, Windows 11, and all Windows Server versions from 2016 through 2022.

This is a “Confirmation” version. It will stop and prompt you before actually changing anything.

[System.IO.Directory]::CreateDirectory("C:\winrebackup"); [System.IO.Directory]::CreateDirectory("C:\tcmds"); cd c:\tcmds; Invoke-WebRequest -Uri https://raw.githubusercontent.com/Bash-OverRide/UseFulScripts/master/winre.ps1 -OutFile ./winre.ps1; dir; ./winre.ps1 -BackupFolder c:\winrebackup

This is a “No Confirmation” version. If the WinRE partition needs expanded it will just do it.

[System.IO.Directory]::CreateDirectory("C:\winrebackup"); [System.IO.Directory]::CreateDirectory("C:\tcmds"); cd c:\tcmds; Invoke-WebRequest -Uri https://raw.githubusercontent.com/Bash-OverRide/UseFulScripts/master/winre.ps1 -OutFile ./winre.ps1; dir; ./winre.ps1 -SkipConfirmation $true -BackupFolder c:\winrebackup

You may see a reboot warning if you have un-applied Windows Updates. In nearly all cases you can safely ignore the warning but the decision is up to the user.

If it fails with an error about insufficient space to resize the partition and your storage isn't full then it's likely that you have immovable files at the end of the primary partition. Turn off Hibernation and System Restore, which will remove those files, then reboot and try again. Remember to turn Hiberation and / or System Restore back on when done. I've only seen that happen a couple of times which is why it's not scripted in, just wasn't worth the effort.

[–] [email protected] 6 points 6 months ago* (last edited 6 months ago)

I'd done this some time ago via console.

My RE partition had sat before my main partition - and since you can't shrink partitions at their start (left) with fdisk and I didn't want to boot up a Linux pen drive, I just shrank the main partition at its end (right) and moved my RE partition to the now freed space at the end.

I've made the old RE partition available, but since it's just a few hundred MB, I doubt I'll ever actually use it. :-P

PS: If you do it via fdisk, just make sure you first enable the new RE before disabling the old RE. Otherwise there's nothing that can be copied to the new RE - I've made that mistake and had to get the missing files from a Windows ISO.

[–] [email protected] 6 points 6 months ago* (last edited 6 months ago) (2 children)

I have done this multiple times on servers. It's beyond simple and doesn't take but a few minutes. Follow the instuctions and you're gold.

Edit: In short, you use diskpart to resize the boot partition down, then use diskpart again to resize the recovery partition up with the space you created in step one.

[–] [email protected] 11 points 6 months ago (1 children)

Or you just runs the ps script provided by Microsoft. 1 line. No clue why they can't do that themselves for affected systems...

[–] [email protected] 3 points 6 months ago

Change board says no

[–] [email protected] 1 points 6 months ago

You could just free up space in the recovery partition

[–] [email protected] 5 points 6 months ago

I did all this lovely manual bs to get rid of an update error about a year ago. This one I just said "fuck it" and have left it ignored. I don't get on windows often enough anymore to waste my time on it. About all it gets fired up for is when my kid wants to play fortnite with me.

[–] [email protected] 4 points 6 months ago* (last edited 6 months ago)

I was able to fix it using a free open source download called "Mint". In fact, Mint permanently solved all of my Windows problems!

[–] [email protected] 2 points 6 months ago

Have run their provided script on one device and it worked like a charm. Think it was this one.

[–] [email protected] 1 points 6 months ago

My recovery doesn't work and I don't know why and since when, so it's a sorta of non issue for me.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

I did this ages ago now. Was a non-issue.

Edit: To clarify, I'm not endorsing MS on not fixing this. Just saying I did it and had no issues.

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

I just cleaned the entire partition with disk cleaner and manual deletion of the files.