You are not logged in.

#1 2009-12-30 14:15:32

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

[SOLVED] I am a complete idiot and deleted my boot files!!!

Help!!

For some stupid reason, I just deleted everything in /boot
The partition is still there unchanged, just without the necessary files! Is there a way i can regenerate these files please?

Thanks in advance

Last edited by ninjaprawn (2009-12-31 12:15:24)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#2 2009-12-30 14:29:08

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

I think you can do this as root:

mkdir /boot/grub
cp /usr/lib/grub/i386-pc/* /boot/grub/
vim /boot/grub/menu.lst
pacman -S kernel26

Last edited by lolilolicon (2009-12-30 14:33:50)


This silver ladybug at line 28...

Offline

#3 2009-12-30 14:41:30

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

lolilolicon wrote:

I think you can do this as root:

mkdir /boot/grub
cp /usr/lib/grub/i386-pc/* /boot/grub/
vim /boot/grub/menu.lst
pacman -S kernel26

thanks for the response. When i did vim /boot/grub/menu.lst i just got a blank page. is that right?


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#4 2009-12-30 14:49:13

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

Yeah, that's right.
vim is an editor you know? You'd better type :q! to exit vim first, if haven't learnt how to use vim.

By the vim line, I mean you need to edit /boot/grub/menu.lst properly, with your favorite editor.
To learn about menu.lst, read this: http://wiki.archlinux.org/index.php/GRUB, and there is a menu.lst example in there too.
(But if you have a backup of menu.lst, then you can just copy it to /boot/grub/menu.lst)

Last edited by lolilolicon (2009-12-30 14:53:06)


This silver ladybug at line 28...

Offline

#5 2009-12-30 14:49:44

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

brilliant, thanks a lot!


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#6 2009-12-30 17:39:38

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

ok, i tried to boot arch back up again, but it doesn't work. I get the grub command and am stuck there. I think my menu.lst isn't quite right

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,1)
kernel /vmlinuz26 root=/dev/sda3 ro vga=773
initrd /kernel26.img

any ideas? thanks


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#7 2009-12-30 17:59:33

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

sorry, ignore that

I ran setup (hd0,1) and that fixed it. thanks again lolilolicon smile


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#8 2009-12-30 18:12:56

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] I am a complete idiot and deleted my boot files!!!

Glad to know you fixed it smile


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB