this post was submitted on 05 Dec 2024
13 points (93.3% liked)

Sysadmin

7763 readers
69 users here now

A community dedicated to the profession of IT Systems Administration

No generic Lemmy issue posts please! Posts about Lemmy belong in one of these communities:
!lemmy@lemmy.ml
!lemmyworld@lemmy.world
!lemmy_support@lemmy.ml
!support@lemmy.world

founded 2 years ago
MODERATORS
 

Windows Server 2022 creates one recovery partition just on the right of the C: partition. So, when it is required to expand the C: partition it is impossible due to this recovery partition. I realised of this problem because our IT department provides Windows Server virtual machines users are unable to expand.

I would like to know how are you dealing with this problem. Do you remove the recovery partition? Do you keep the recovery partition? how?

top 20 comments
sorted by: hot top controversial new old
[–] possiblylinux127@lemmy.zip 1 points 3 days ago

You can move the recovery partition and then expand

[–] Brkdncr@lemmy.world 14 points 2 weeks ago (1 children)
[–] IHawkMike@lemmy.world 13 points 2 weeks ago (2 children)

Recovery partitions on servers -- especially VMs -- are kind of pointless. Just boot the ISO if you need WinRM.

[–] possiblylinux127@lemmy.zip 1 points 3 days ago

The recovery partition is used for automatic recovery and sometimes Windows Update. I wouldn't go deleting it willy nilly.

[–] zako@piefed.social 3 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

I remember years ago one Windows Update of the vmware drivers that took down all our Windows Servers and they were unable to boot. I thought the recovery partition could be useful for those situations.

[–] Nomecks@lemmy.ca 3 points 2 weeks ago (2 children)

Why wouldn't you take a VM snapshot before upgrading?

[–] possiblylinux127@lemmy.zip 1 points 3 days ago

Because he is not a Chicken?

Grow some hair on your chest

[–] zako@piefed.social 3 points 2 weeks ago

This is a question for my users/admins :-D

[–] kn33@lemmy.world 2 points 2 weeks ago (1 children)

Eh, kinda, but a Windows Server ISO would be equally as useful.

[–] fuckwit_mcbumcrumble@lemmy.dbzer0.com 2 points 2 weeks ago (1 children)

A windows server iso would be a lot more useful since you could do anything including reinstall the OS, or copy files from the installer over. Recovery limits you to mostly just what’s already on the C drive.

[–] kn33@lemmy.world 1 points 2 weeks ago

Well, yes, but I thought that we're all smart enough to know that here and I didn't have to qualify my statement with "In the scenario that the recovery partition would be useful, a Windows ISO would be equally as useful to the task at hand."

[–] superkret@feddit.org 8 points 2 weeks ago (1 children)

Remove the recovery partition, it's pointless anyway.
But what the hell was MS thinking doing that?

[–] 30p87@feddit.org 5 points 2 weeks ago (2 children)

Probably along the lines of "Ook ook ook"

[–] superkret@feddit.org 3 points 2 weeks ago

deafening type-writer noises

[–] kn33@lemmy.world 3 points 2 weeks ago

I'm imagining it went something like

"Hey boss, should I set the Server variant to not install the recovery partition?"
"Why?"
"Well, kinda pointless isn't it?"
"Yeah, but like, not hurting anything, and do you want to risk breaking something? Because I don't"
"Yeah, fair point"

[–] plasticcheese@lemmy.one 5 points 2 weeks ago (2 children)

As others have said, we remove the recovery partition when it gets in the way.

We came across a very similar but more sticky issue the other day. One of our admins rightfully converted all our VMs from BIOS to UEFI. This, however, created an EFI partition sitting to the right of the OS partition for the majority of our servers. We're now in a position where we can't increase disk size on any of those servers without going through the process of rebooting the box with gparted and manually moving the partition to the left. We're a 24 hour operation with hundreds of servers. This is bad :/

[–] zako@piefed.social 3 points 2 weeks ago (1 children)

why do you still use BIOS instead of EFI? For any particular reason? VMware recommends EFI for Windows Server 2022. Our Window Server 2022 template is EFI.

[–] plasticcheese@lemmy.one 3 points 2 weeks ago

Ah, its just legacy servers. Any newer have been built with UEFI for a while now.

[–] Max_P@lemmy.max-p.me 1 points 2 weeks ago

You could also push the EFI partition at the very end of the disk whenever you resize the volume. A bit more annoying but can be done live at least. Or at the very least, moving a 500MB partition is a lot faster than moving GBs of C drive, so less time spent on GParted.

[–] magnesium@lemmy.dbzer0.com 1 points 2 weeks ago

Edit vhdx to add more storage, then follow this: https://thedxt.ca/2023/06/moving-windows-recovery-partition-correctly/

Works well