You are not logged in.

#1 2008-10-25 12:07:42

Maya-PSK
Member
Registered: 2008-10-25
Posts: 2

Grub Error , First Installation

Hi to all , I'm a new user.It's the first time that I try to install Arch Linux.
I've created two partitions :
sda1 root 500 Gb ext3
sda2 swap 1 Gb

Ii've used hwdetect for configuring the system.
And i've edited the /etc/fstab , adding this two instructions :

/dev/sda1    /    ext3   defaults   1    1
/dev/sda2   swap   swap   sw

I've tried to install Grub but it's impossible. I've selected to install Grub on the MBR(/dev/sda) , and the root is /dev/sda1.
The error of grub is:

Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found

My menu.lst :

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

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/hda        (hd0)
#  /dev/hdb2       (hd1,1)
#  /dev/hda3       (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 
#     +-------------------------------------------------+

# 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,0)
kernel /vmlinuz26 root=/dev/hda3 ro vga=773
initrd /kernel26.img

# (1) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

I've also tried this configuration :

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

Sorry for my English!

Thank You!

Last edited by Maya-PSK (2008-10-25 12:13:19)

Offline

#2 2008-10-25 13:08:54

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Grub Error , First Installation

Maya-PSK wrote:
# (0) Arch Linux
title  Arch Linux  [/boot/vmlinuz26]
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro vga=773
initrd /boot/kernel26.img

I could be missing something, but this one looks correct according to your description.  How many hard drives do you have?


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#3 2008-10-25 15:04:34

ixzus
Member
From: Barcelona (Spain)-Bristol (UK)
Registered: 2008-10-25
Posts: 26

Re: Grub Error , First Installation

Code:

/dev/sda1    /    ext3   defaults   1    1
/dev/sda2   swap   swap   sw

Why don't you try for the "dump" and "pass" values   0  1 for sda1  and   0  0 for sda2, and also set "defaults"  for sda2, so it looks like:

Code:

/dev/sda1    /     ext3   defaults   0    1
/dev/sda2   swap   swap   defaults   0    0

"If at first an idea is not absurd, then there is no hope for it."  A. Einstein

Offline

#4 2008-10-25 16:51:47

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: Grub Error , First Installation

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

As creslin said, this one seems to be correct.

Try the following:

# grub                                           (you get the grub prompt)
grub> find /boot/grub/stage1             (search for the file name /boot/grub/stage1 and show the devices which contain the file.)

so that Grub tells you where he thinks the system is located.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#5 2008-10-27 08:28:28

Maya-PSK
Member
Registered: 2008-10-25
Posts: 2

Re: Grub Error , First Installation

Thank you!!! I've solved. The error was in /etc/fstab i've tried the configuration posted by ixzus and it works!!!

Offline

Board footer

Powered by FluxBB