this post was submitted on 07 Jul 2023
6 points (100.0% liked)

techsupport

2449 readers
1 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS
 

Update 2: Finally did it by following the first option I explained in my own comment (i.e. backup and reinstall)

Update 1: I also updated the UEFI just to be sure and the issue persists as expected


Sorry if the post is long, trying to give each relevant detail.

My system has two drives, the first for Linux and the second for Windows.
Initially I had OpenSUSE MicroOS on the first and I could boot into Windows through the UEFI, but then I installed Fedora on it and lost the ability to get into Windows since. I thought that it had a boot partition on its own drive, but I guess I was wrong since now that I checked the partitions, there is no FAT32 partition on there.

image of partitioning scheme for Windows drive

(in text form)

nvme0n1                                       931,5G disk              
├─nvme0n1p1                                      16M part              
├─nvme0n1p2                                   930,8G part  BitLocker   
│ └─bitlk-66306                               930,8G crypt ntfs
└─nvme0n1p3                                     692M part  ntfs

Unlike on my Linux drive image of partitioning scheme for Linux drive

(in text form)

nvme1n1                                       931,5G disk              
├─nvme1n1p1                                     600M part  vfat        /boot/efi
├─nvme1n1p2                                       1G part  ext4        /boot
└─nvme1n1p3                                   929,9G part  crypto_LUKS 
  └─luks-353e522f-c0f3-4167-99fc-90d576a734e8 929,9G crypt btrfs       /var/home

So I probably destroyed the content of the boot files in its installation process.

I'm able to access my BitLocker encrypted drive through Fedora, so if I have to reinstall I can still make a backup (it wasn't very important to me either way).
I also fired up a Windows recovery drive to see if it detected the system and it does, I haven't yet looked at what the recovery drive can do, so if that's the key to solving this let me know.

The actual question

So at this point I wonder: is there a way to restore the Windows boot option? Would I have to do it in some GRUB config or do I have to/can I create a boot partition on the Windows drive too and somehow write the bootloader there?

you are viewing a single comment's thread
view the rest of the comments
[–] ErnestoGrimes 1 points 1 year ago* (last edited 1 year ago) (5 children)

I can show you how to restore the windows boot but I'm not exactly sure what it will do to your Linux boot.

if you have a windows install USB boot to that.

once you get to the first screen hit shift-f10 this will open a command prompt

type diskpart

type list vol

this will show you your volumes and drive letters you will need to determine the drive letter of your windows install

next determine the the volume number of your fat32 uefi partition

type sel vol 2 (or whatever the number of your uefi vol is)

type assign (this will give the selected a drive letter)

type list vol again and see what letter is assigned

type exit to leave diskpart

type bcdboot x:\windows /s y: /f uefi

where x: is your windows partition and y: is your uefi partition

[–] QuazarOmega 1 points 1 year ago (4 children)

The problem is that I have no FAT32 partition on that drive, I don't know why exactly. Is there a way to resize the other partitions to make a new one?

[–] ErnestoGrimes 2 points 1 year ago (1 children)

the uefi should boot from the first drive that has a valid boot partition. . if you have multiple boot partitions then you would have to select the drive to boot to from the boot menu. if that is what you want then I don't believe it matters if the partition is at the beginning or end of the drive. I would try and shrink you partition by about 500mb partition and format the empty space as fat32 then use the steps I mentioned to setup your windows boot.

[–] QuazarOmega 1 points 1 year ago (1 children)

Ok, so in that case I'll have to shrink the Basic data partition (BitLocker) right?

[–] ErnestoGrimes 1 points 1 year ago (1 children)

I curious what is in that ntfs partition at the end of your windows drive, if it's not needed you may be able to use that.

I've never shrunk a bit locker partition before but it should be possible, worst case you decrypt the drive resize then reencrypt.

[–] QuazarOmega 1 points 1 year ago* (last edited 1 year ago)

what is in that ntfs partition at the end

I cannot access it, so I don't know, but I imagine it is of some importance I found it in another PC too with Bitlocker enabled.

worst case you decrypt

Unfortunately I can't simply decrypt it to perform a shrink, I need to actually disable BitLocker first, but in order to do that I would have to log in to Windows, I ended up thinking of two possible solutions which I listed in my other comment

load more comments (2 replies)
load more comments (2 replies)