accidentally removed the kernel+initramfs, i dont have an installation media, but i can boot to windows
i was thinking that i already have linux-lts and linux on my /boot
i didnt wanted to upgrade the kernel so often so i pacman -Rnsc linux
but turns out i had only linux on my /boot and i removed iti removed the only kernel i had
so after rebooting i end up with no kernel images in /boot
i was thinking that a possible solution could be to:
- find a prebuilt initramfs+kernel image (bc i cant
mkinitcpioon windows) - put them on
/bootand hope it boot up - i can use
pacmanto reinstall the required kernel - reboot
thanks
Edited 4 Feb 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Text
- ID
- eyoftp
26 comments
Boot to windows, make a USB install medium, boot USB install, fix system?
well.. i know this is ridiculous but.. right now i dont have a USB stick so i cant make a USB install medium
i need to find a way to fix this without any external devices
is there a way to use a partition of my disk as an installation medium
i.e to flash the arch linux .iso on a partition of my disk then to boot to that partition...
hmm but.. the .iso is made of more than one partition... doest seem to work
anyways i dont want to wait until i get my usb stick..
thank u so much tho
what FS are we dealing with here? (your root & boot)
Can't you burn a CD or DVD either?
If this is an efi system and you are connected to the internet with Ethernet, you can use netboot. Arch Linux offers this on its download page with an explanation how to do that in the wiki. You can paste that in your boot partition and start it from your bootloader
the wiki say that I need efibootmgr but I don't have Linux to do that
If you have grub installed you can boot the efi file via the grub rescue shell
I haven't used any virtualisation in Windows but could you use a VM or similar to run the Arch install ISO, mount the / and /boot of your arch install and solve it that way?
Not safe and easily. Last time a year or two ago I mounted real partitions onto a virtualbox you had to use the advanced cli and the next time windows froze and needed to hard shutdown it did nasty things to the filesysems
Ah yeah. My ignorance on Windows and current status of VMs is very clear :D.
Deleted before we saved it.
Deleted before we saved it.
I still thought WSL was still able to access all had drives/partitions. Am I mistaken?