r/linux4noobs • u/Itsnade150206 • 4d ago
my double boot all lost
so I wanted to boot my windows but it wont boot how many times I tried then I decided to install new windows which i downloaded from my Linux after follow instructions on ai it becameike this. now I have lost both Linux and most importantly my windows
6
Upvotes
4
u/FunJackfruit1659 3d ago
It's not lost, do you have the live usb you used to install Linux still? (Assuming you used one)
It should be a fairly easy fix and not take long. (assuming you already know how)
I'm bad at helping explain stuff, but I can try if you want
2
u/h4rdw00d_ 3d ago
Go into the BIOS, switch the boot order to load windows (should be obvious in the options/order)
The question is whether you completely removed windows through the installation process of Linux and what you did when installing.
If you have the USB that has the Linux installer, re-run it. It should be fine.
If it doesn't work again, take the USB to a friend's, download a different version of the distro that would be compatible or use a different distro altogether. Or go to a library and do the same thing.
Or follow the users advice to check the grub config.
6
u/A_Harmless_Fly Manjaro 3d ago edited 3d ago
Ouch, I remember how much it stings learning not to run commands I didn't 100% understand. I know how you feel. (pit in the stomach)
Windows after linux on the same drive will overwrite your boot sector. You can chroot in with a flashdrive to rescue your linux system if you didn't overwrite the root partition during the windows install.
Now you know why people suggest a second drive if you are going to dual boot, and timeshift backups.
I'd suggest you live boot, then check what's on your laptops drive, and backup whatever is still there that you want on a disk or a flash drive or something else like google drive etc. Then go on from there without the chance of losing something, maybe get an external drive if you want to dual boot.
P.S. When you ask an AI, add "Explain what every command does, be verbose" to the end of the question. They will gaslight you if the prompt is too vague or if the AI doesn't have high quality training material on the subject. It's a lot harder for them to do that if they have to show their work. If I had a dollar for every time I've read "You are absolutely right, doing ____ would give you bad results" when I point out a flawed response I'd be able to afford better hardware.
9
u/Flashy-Guava9952 3d ago
See that's your mistake right there!
4
u/musingofrandomness 3d ago
The grub prompt gives you some basic options. It calls devices by a different name (hd0) or similar if memory serves. Partitions are something like (hd0,0) for the first partition. Assuming you just have a corrupted grub config this can be easily fixed. You can use something along the lines of "ls (hd0,1) to see what files live where and then, if you still get a menu and not just a prompt, you can hit "e" to edit the boot menu item and correct the mistaken pointer.
1
u/3grg 3d ago
You may not have lost anything other than the boot loader. Try booting from SuperGrub2 Disk and see what is still there. If you can boot the Linux install, sudo update-grub and sudo grub-install /dev/disk with efi partition usually fixes grub. That's all I can say as you did not provide any details.
3
u/AmbassadorsWife 3d ago
Good!
1
u/Confident_Hyena2506 3d ago
This will keep happening if you wipe the efi partition, which holds the bootloaders for both os.
Your real data is probably still there, assuming you didn't wipe other partitions as well.
Read about how efi boot works if you want to maintain dualboot system without surprises like this.
1
u/Efficient-Sea-92 5h ago
#1 rule when dualbooting: Always use separate drives for Linux / Windows.
Windows has tendancy to mess with the Linux install and its partitions if they co-exist with eachother. And always install Windows first, then Linux.
-2
u/jerrywas_olds 3d ago
Search r/neckbeard jkjk but should exist (arch fuckers). Any Linux community should take you down the rabbit hole