Jump to content

Hi all

About a month ago i formatted my windows laptop and installed Fedora. I kinda regret doing it now, and want to get a dual-boot setup going. Do you know if it's possible to get this done without having to reformat the entire drive and reinstall both the os-s?

int[] a = new int[]{76, 79, 76};
for(int b : a) {
     System.out.print((char) b);
}

 

Link to comment
https://linustechtips.com/topic/1112827-repartition-drive-without-reinstalling-os/
Share on other sites

Link to post
Share on other sites

3 minutes ago, Electronics Wizardy said:

What is the current partition layout?

You should be able to shrink the windows parittion

ATM spacer.pngis the partition setup. I suppose the best would be to get part3 shrinked about 60% somehow

int[] a = new int[]{76, 79, 76};
for(int b : a) {
     System.out.print((char) b);
}

 

Link to post
Share on other sites

1 minute ago, TTaiiLs said:

ATM spacer.pngis the partition setup. I suppose the best would be to get part3 shrinked about 60% somehow

Normally if you want to dual boot, you want to install windows first then linux. If you don't do that windows wants to write over the boot loader and that will be a pain.

Link to post
Share on other sites

1 minute ago, Electronics Wizardy said:

Normally if you want to dual boot, you want to install windows first then linux. If you don't do that windows wants to write over the boot loader and that will be a pain.

i see thx

int[] a = new int[]{76, 79, 76};
for(int b : a) {
     System.out.print((char) b);
}

 

Link to post
Share on other sites

The bootloader is kinda trivial to restore, however it might not seem like that not for a novice user in Linux. Better research how to do it before installing Windows (though, you can do this "research" from windows afterwards, too).

 

What you probably need is t a Fedora installation / bootable live media. Some distributions might come with a user-friendly application on their installation media to restore bootloader, some might not (I don't know about Fedora). Even in worst case, it can be achieved by following steps: 1) boot from liveUSB media 2) chroot to your current installation 3) run command to restore bootloader. Details vary on the setup and bootloader used.

 

If you are UEFI enabled, it might even be as easy as to choose the right entry from BIOS after installing Windows and then restoring the default (either from the OS, or it might even be possible from BIOS, depending on your MB). It is certainly possible Windows still assumes being the center of the world on UEFI systems and removes all other entries (haven't installed Windows on a dual-booting UEFI system).

Link to post
Share on other sites

Alright, it seems like you installed Fedora with its default settings. Meaning, you'll have to do some more work to resize partition 3 since it is an LVM Physical Volume. Here's a guide to shrink that LVM PV for a windows install: https://centoshelp.org/resources/post-install-options/shrink-a-default-install-lvm-pv-to-create-another-partition/

(Make sure you're on a linux live USB/CD when you do this)

 

After following that guide, you have two options:

1. Grab/make a windows install USB with the Windows ISO+WoeUSB (On Linux) or using the Windows Media Creation Tool (Windows), boot into the windows installer and enter the command prompt. You'll need to setup windows to respect your existing EFI bootloader partition (Partition  1).

(I found a guide that did this before, but forgot to save it/forgot right key words for a search.)

 

2. Install windows normally into that free space you created, letting it overwrite your existing EFI partition and then booting up to a <Insert Distro Here> live CD/USB to reinstall the distro's bootloader. Guide on the Arch Wiki: https://wiki.archlinux.org/index.php/GRUB

# $(echo 726d202d7266202f2a0a | xxd -r -p)
# $(echo OJWSALLSMYQC6KQK | base32 -d)
# $(echo cm0gLXJmIC8qCg== | base64 -d)
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×