You are not logged in.

#1 2008-05-01 08:17:16

kilolima
Member
Registered: 2008-01-26
Posts: 49
Website

accidentally deleted everyting on /boot

Hi,

so now I know that trying to remove a directory that contains a mounted partition will give an error but still delete everything from that partition.

I deleted everything on /boot partition and cannot boot arch.  How can I re-install the kernel, grub, and whatever else was on there?  I had /boot on sda3 and sda4 was the encrypted / partition.

I hope this is not too complicated. Please?

kilolima

Offline

#2 2008-05-01 09:39:13

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: accidentally deleted everyting on /boot

Hi.
This is what I would try:  chroot into my Arch install following this guide here:  http://wiki.archlinux.org/index.php/Kernel_Panics, then reinstall the kernel (kernel26) and grub. 

If you can't bring your network up for some reason, you can always cd /var/cache/pacman/pkg/ and
pacman -U <pkgname>

Offline

#3 2008-05-01 10:15:56

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: accidentally deleted everyting on /boot

If you use a boot partition, don't forget to mount it

# mount /dev/sdXZ /mnt/boot

I am no genius, but didn't he delete his /boot partition?

Offline

#4 2008-05-01 10:22:31

Aramroth
Member
From: Bydgoszcz, Poland
Registered: 2006-08-09
Posts: 4

Re: accidentally deleted everyting on /boot

chroot into your Arch partition from a live distribution and pacman -S grub kernel26.

Offline

#5 2008-05-01 11:48:34

keratos
Member
Registered: 2008-04-27
Posts: 138

Re: accidentally deleted everyting on /boot

Aramroth wrote:

chroot into your Arch partition from a live distribution and pacman -S grub kernel26.

Isn't that only the 1st page of the novel??

He cannot boot ANY liveCD and exepct it to work out-of-the box.
Surely he will need to ensure that:

the necessary root partition and kernel options are supplied in the bootloader,
the correct initrd image is installed,
the correct system map (and modules are installed),
grub or lilo verified.

No information was provided as to the install options when he installed Arch and whether he's modified the system/hardware (disk) configs.

Offline

#6 2008-05-02 21:56:35

kilolima
Member
Registered: 2008-01-26
Posts: 49
Website

Re: accidentally deleted everyting on /boot

novel?!  egads.

The only custom option I used when installing was booting from encrypted partitions, since the root partition is encrypted.  I did try booting from a live-cd and got a kernel panic.

Is it easier to re-install arch? (again)

cheers,

kilolima

Offline

#7 2008-05-02 22:14:25

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: accidentally deleted everyting on /boot

kilolima wrote:

Is it easier to re-install arch? (again)

If it were me, that's what I'd do.


oz

Offline

#8 2008-05-03 01:03:58

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: accidentally deleted everyting on /boot

[duncan@myhost ~]$ cd /boot
[duncan@myhost boot]$ dir
diag1.img  grub  kernel26-fallback.img    kernel26.img  System.map26  vmlinuz26
[duncan@myhost boot]$ cd ./grub
[duncan@myhost grub]$ dir
device.map     iso9660_stage1_5  reiserfs_stage1_5  ufs2_stage1_5
e2fs_stage1_5  jfs_stage1_5     stage1            vstafs_stage1_5
fat_stage1_5   menu.lst         stage2            xfs_stage1_5
ffs_stage1_5   minix_stage1_5     stage2_eltorito
[duncan@myhost grub]$

If it helps.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

Board footer

Powered by FluxBB