You are not logged in.

#1 2011-05-23 14:39:25

I7IZI
Member
Registered: 2010-12-29
Posts: 9

[SOLVED] missing /boot files

I broke it, lol. I was learning how to chroot my environment and I managed to erase everything in my /boot directory. I've been able to restore the files necessary to get grub working but I haven't been able to restore any of the files for booting the kernel (System.map, vmlinuz), nor have I been able to find them anywhere else on my machine. So I guess my question is if I we're to compile the kernel through ABS could I use the output of the newly created files to restore my /boot directory, or is their a simpler route to success? Thanks for your help in advance. smile

Last edited by I7IZI (2011-05-23 16:44:06)

Offline

#2 2011-05-23 15:32:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,768

Re: [SOLVED] missing /boot files

I have no idea how much experience you have, so bear with me if I state the obvious here.

Most Arch installations have a separate boot partition which may be mounted in your file system at /boot.  If, you are trying to update your boot partition inside of the chroot environment it must be mounted.  If it is not, all changes are made to the root file system in a directory called /boot -- but files on the boot partition are not affected.  Only when the boot partition is mounted on /boot do the files on that partition appear to be in the /boot directory of your file system.

Chroot into your environment.
Ensure /boot is not mounted.
Carefully erase all files in /boot
Mount the boot partition at /boot
Verify that files magically appeared by using ls /boot
Now do your updates
Unmount boot
Leave the Chroot.

Edit: Typo

Last edited by ewaller (2011-05-23 15:32:48)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2011-05-23 16:16:10

I7IZI
Member
Registered: 2010-12-29
Posts: 9

Re: [SOLVED] missing /boot files

Yeah, I definitely don't have a lot of experience fixing my machine, but I break it a lot, lol. So I believe what happened, now that I understand what I'm doing with chroot, is I had mounted everything correctly but I didn't correctly unmount my /boot partition and now everything has been wiped from there. The only thing that is on my /boot partition now is a grub directory from me that I made to copy important grub files to so I could get grub to boot, which works now. But everything else is still missing and I'm beginning to think that I will have to reinstall arch because I can't connect to wifi through chroot, which is the only connection point I have at home. Oh please help me save my machine, thank you! On a good note I'm learning a lot today with all the Google'ing and wiki reading.

Offline

#4 2011-05-23 16:22:40

I7IZI
Member
Registered: 2010-12-29
Posts: 9

Re: [SOLVED] missing /boot files

ewaller wrote:

Ensure /boot is not mounted.
Carefully erase all files in /boot
Mount the boot partition at /boot
Verify that files magically appeared by using ls /boot

Lol, definitely no magic happening here. Thanks though.

Offline

#5 2011-05-23 16:24:08

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED] missing /boot files

Reinstall kernel26 and other kernels you may have.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#6 2011-05-23 16:36:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,768

Re: [SOLVED] missing /boot files

fsckd wrote:

Reinstall kernel26 and other kernels you may have.

And note that this is probably already in your local cache (since you have installed it before)  You can install it from chroot without requiring network access.  If you have updated your package list and the system ties to grab a new version from the Ether, then tell pacman to explicitly install the version in your cache.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2011-05-23 16:43:03

I7IZI
Member
Registered: 2010-12-29
Posts: 9

Re: [SOLVED] missing /boot files

Yeah boiee! Thanks guys, this might be the first real fix I've done without doin a full reinstall! Funny how I tried to reinstall the kernel just as you were probably typing it or sending it. Supa Dupa Dank

Offline

Board footer

Powered by FluxBB