You are not logged in.

#1 2007-02-07 22:21:27

dids22
Member
Registered: 2007-01-02
Posts: 251

eror 17 on grub [solved]

hi

i updated grub and reboot arch
(i also copy /boot/grub.menu.lst.new(which created in grub update) to/boot/grub.menu.lst)

now when i'm trying  to mount arch in grub i get eror 17

eror 17: cannot mount selected partition

so i press "e" and tried to change there somthing but it not help

root     (hd0,0)
kernel  /vmlinuz26  root=/dev/hda3 ro
initrd /kernel26.img

i have sata drive
so i tried to change is to sda3 -but it didn't help

have ideas? solutions?

thank you
(btw
i search solution in the forum and wiki but i didnt find answer)

oh i forgot to say that in grub i have 2 options (arch or xp)and  the prob' is only on arch (windows load up normally)

Last edited by dids22 (2007-02-12 15:46:29)

Offline

#2 2007-02-07 23:48:30

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: eror 17 on grub [solved]

Are you sure your arch partition is (hd0,0)?

Do you have a separate /boot partition?

Offline

#3 2007-02-08 00:38:55

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: eror 17 on grub [solved]

Try the following

root     (hd0,2)
kernel  /vmlinuz26  root=/dev/sda3 ro
initrd /kernel26.img

If that doesn't work.; post a copy of your /etc/fstab into your next reply

ADDED     This is based on the kernel line in the code you posted.  It may just be an example and NOT your actual partition.

Last edited by jwbirdsong (2007-02-08 00:41:59)


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#4 2007-02-08 14:24:05

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

how can i get to /etc/fstab ?? (i can't get in to arch)

and for tom5760 , grub install on the mbr

Last edited by dids22 (2007-02-08 14:25:04)

Offline

#5 2007-02-08 15:11:13

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: eror 17 on grub [solved]

dids22 wrote:

how can i get to /etc/fstab ?? (i can't get in to arch)

and for tom5760 , grub install on the mbr

When you enter edit mode ("e") in Grub and you said you typed

root (hd0,0)

what did the command return? What filesystem do you use?

If you can do that and that is your right boot partition, then you could do

cat /etc/fstab

on whatever your root partition is. The most important part is to know if you have a different boot bartition.

Offline

#6 2007-02-08 15:26:05

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

i am using ext3
and i dont have partition for boot
(so if i want to get to menu.lst i need to do /boot/grub/menu.lst - for that u mean?)

and (hd0,0) is the default - i didnt change it for this

Offline

#7 2007-02-08 15:52:35

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: eror 17 on grub [solved]

So, after you do

root (hd0,0)

you could list the contents of /etc/fstab and see what is your root partition.

Offline

#8 2007-02-08 16:08:12

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

first, the main partition of arch( / ) is sda4 so it need to be root (hd0,3) ,right?
second, the filesystem is ext2, my mistake

Offline

#9 2007-02-08 16:12:35

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: eror 17 on grub [solved]

now you're much better. did you try it?

Offline

#10 2007-02-08 16:20:25

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

yeah
in grub i press e and after that c
and i wrote root (hd0,3)

and its not work
i'm nor remember exactly the message it was somthing with ext2

Last edited by dids22 (2007-02-08 16:23:00)

Offline

#11 2007-02-08 16:24:32

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: eror 17 on grub [solved]

when you are in edit mode try this

find kernel26

it should find the kernel and return the partition number on which it is.

Offline

#12 2007-02-08 16:35:07

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

in edit mode i need to press c right?

Offline

#13 2007-02-08 16:40:01

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: eror 17 on grub [solved]

Ah, sorry, command mode, yes... it's 'c'.

Offline

#14 2007-02-08 16:44:07

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

i write in command mode

cat /etc/fstab

and the main output is :

/dev/sda2 swap  swap defaults 0  0

/dev/sda4   /       ext3 defaults 0  1

so i change

root     (hd0,0)
kernel  /vmlinuz26  root=/dev/hda3 ro
initrd /kernel26.img

for this

root     (hd0,3)
kernel  /vmlinuz26  root=/dev/sda4 ro
initrd /kernel26.img

and now i get error 15

file not found

Last edited by dids22 (2007-02-08 18:55:27)

Offline

#15 2007-02-08 19:54:17

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

someone?

Offline

#16 2007-02-08 21:29:27

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: eror 17 on grub [solved]

change
kernel  /vmlinuz26  root=/dev/sda4 ro
to
kernel  /boot/vmlinuz26  root=/dev/sda4 ro
and 

initrd /kernel26.img
to
initrd /boot/kernel26.img

to end up with

root     (hd0,3)
kernel  /boot/vmlinuz26  root=/dev/sda4 ro
initrd /boot/kernel26.img

PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#17 2007-02-09 09:53:04

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

i still get error 15 

"file not found"

Offline

#18 2007-02-09 12:57:54

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: eror 17 on grub [solved]

Well let's what is actually in you /boot folder...

Enter the GRUB "shell" and get to command mode like you did earlier...
Enter your root    (hd0,3) followed by enter....you should get a message about the files system type....

Next at grub prompt enter kernel /boot then hit tab key (maybe twice not sure)  and it will list ALL files in your /boot folder.
look for your vmlinuz and kernel26.img to make sure we have the names right....Once we can verify the name are right and the files are there you can just  continue on in GRUB command mode and enter the next two lines (ie. kernel and initrd) with correct file name..( you will get a confirmation message after each enter if names are right)

If you get all 3 line entered in command mode and get you messages with no errors enter boot at GRUB prompt and you should boot right up....(Emphasis on should)

Hope this makes some sort of sense....I've not much coffee yet this am.

EDIT  ---> when listing the files name see if you have initrd26.img instead of the kernel26.img..I just don't remember the name for the files on a stock/clean install.

Last edited by jwbirdsong (2007-02-09 13:05:47)


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#19 2007-02-10 18:45:23

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eror 17 on grub [solved]

yeah i have initrd 26.img

ok , it's working now

thnks everybody

one little thing , how i remove file with pacman? pacman -R file path?

Offline

#20 2007-02-12 15:04:19

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: eror 17 on grub [solved]

Glad you got it to boot...(Noticed the add user question)

For pacman use pacman -R "package-name" not file path..just like to install but use the  -R switch
example    --->   pacman -R madwifi-ng

Please add SOLVED  to thread title.


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

Board footer

Powered by FluxBB