Skip to content

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 mkinitcpio on windows)
  • put them on /boot and hope it boot up
  • i can use pacman to reinstall the required kernel
  • reboot

thanks

Edited 4 Feb 2020. We only hold this version.

0 points24 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Text
ID
eyoftp

Author

23
posts
307
comments
3
media
View profile

26 comments

Boot to windows, make a USB install medium, boot USB install, fix system?

5 points

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

1 points

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

4 points

the wiki say that I need efibootmgr but I don't have Linux to do that

1 points

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?

3 points

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

2 points

Ah yeah. My ignorance on Windows and current status of VMs is very clear :D.

2 points
unknown author2 hidden

Deleted before we saved it.

1 points
unknown author1 hidden

Deleted before we saved it.

1 points

I still thought WSL was still able to access all had drives/partitions. Am I mistaken?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.