Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub: "Error 22: No such partition"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
joshua
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 134
Location: Wiesbaden

PostPosted: Wed Jun 19, 2002 9:54 am    Post subject: Grub: "Error 22: No such partition" Reply with quote

Hi there!

This one seems very strange to me. First of all I have an ASUS A7V board with integrated 2nd IDE-controller Promise Ultra 100 and one 60Gb HD attached to it - no additional harddisks, just this one. So I started installing Gentoo exactly following the instructions - highly impressed, I love the installation so far. After partitioning, creation of filesystems and mounting I'm now at installing grub, which does not work for me at all.

I have the following partitions:

  • /dev/hde1 ext3 mounted as /boot
  • /dev/hde2 ntfs (unmounted)
  • /dev/hde4 swap mounted as swap
  • /dev/hde5 xfs mounted as /
  • /dev/hde6 ntfs (unmounted)


Oh, and /boot/boot links to /boot

What I want to do now is to install grub into the MBR of /dev/hde, which should be named (hd0) inside of grub, because it is the one and only (that is: first) harddisk in my system (please don't answer "use (hd4)!", because that won't work for sure!).

As the instruction says I start grub and typed:
Code:

grub> root (hd0,0)
 Filesystem is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 d (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed

Error 22: No such partition

grub>


So now I don't understand, how grub can access (hd0,0) but not (hd0) ? What it actually did is, it killed my old lilo ("LI" at bootup), which was my intention, but does not install itself.

Thanks for help
joshua
Back to top
View user's profile Send private message
joshua
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 134
Location: Wiesbaden

PostPosted: Wed Jun 19, 2002 10:25 am    Post subject: Solved it Reply with quote

No idea how, but i just did the installation again - without the emerge and build steps. now it works. Strange ... maybe I mistyped sth.
Back to top
View user's profile Send private message
joshua
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 134
Location: Wiesbaden

PostPosted: Wed Jun 19, 2002 1:32 pm    Post subject: ... and ran into it again Reply with quote

rebooted, had to reinstall grub, same error as above (see first post).

any ideas?
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jun 19, 2002 2:29 pm    Post subject: Reply with quote

can u post your menu.lst file ?

where did you put it?

it find /boot fine - so the problem's not there.. it says:

"(hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... failed "
Back to top
View user's profile Send private message
joshua
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2002
Posts: 134
Location: Wiesbaden

PostPosted: Wed Jun 19, 2002 2:43 pm    Post subject: maybe ... Reply with quote

... maybe it's because I had still chroot'ed to /mnt/gentoo, after i did
Code:

exit
grub
... same as above ...


it worked again.

that's strange in my eyes, but It might to be supposed to work this way and I did not read the docs carefully enough? I think there is nothing special about my menu.lst, it's:
Code:

default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Linux
root  (hd0,0)
kernel /bzImage root=/dev/hde5

title=Windows 2000
root  (hd0,1)
chainloader +1


Anyway, now it works and I'm glad, I did not switch back to lilo, grub is really nice.

Needles to tell all you Gentoos that Gentoo rocks. But it does, and I have to say it. Gentoo ROCKS!

Thank you, I'm sorry for troublemaking ...

Have a nice day!
joshua
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Jun 19, 2002 3:14 pm    Post subject: Reply with quote

nps - glad you got it all worked out, and yeah gentoo DOES rock!
8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum