Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub doesnt see my hard drives?
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
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Sat Dec 27, 2003 1:11 am    Post subject: Grub doesnt see my hard drives? Reply with quote

Earlier today, i backed up my entire system, and repartitioned, and put the designated files back to their places. (root and boot files). I modified my /etc/fstab/, and i modified my /boot/grub/grub.conf for the new partitions, but when i rebooted, i got a grub error 22 (summarized as "this partition does not exist"). So i chrooted into my system from the LiveCD and remerged grub and was trying to set it up, when i typed "root (hd0,2)", which is my boot, hda3. and it gave me a grub error 21. (selected disk does not exist). I can mount these partitions, view the files, and i know the grub partition numbers are correct. Does anyone have any clue why grub does not see my hard drives?
btw, even "root (+tab" in the grub command line shows nothing.
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Dec 27, 2003 1:18 am    Post subject: Reply with quote

Did you mount /proc before chrooting ?
Back to top
View user's profile Send private message
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Sat Dec 27, 2003 1:26 am    Post subject: Reply with quote

i did...
mount /dev/hda4 /mnt/gentoo
mount /dev/hda3 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
jsc1959
n00b
n00b


Joined: 17 Sep 2003
Posts: 74
Location: Los Angeles, CA

PostPosted: Sat Dec 27, 2003 1:30 am    Post subject: Reply with quote

I was having a similar problem....I had to before chroot

mount -o bind /dev /mnt/hd??/dev for it to work....hope this helps....
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Dec 27, 2003 1:51 am    Post subject: Reply with quote

Hey, good thinking jsc1959.

Actually, if you are missing device nodes in /dev, you probably want to do this (inside the chroot) to restore them.
Code:
# emerge baselayout
Back to top
View user's profile Send private message
dark_teferi
Tux's lil' helper
Tux's lil' helper


Joined: 07 Aug 2003
Posts: 138
Location: AZ

PostPosted: Sat Dec 27, 2003 2:27 am    Post subject: Reply with quote

what?

to that mount command.
_________________
"Rain from this storm leaves you pinned to the ground like an insect"
Back to top
View user's profile Send private message
jsc1959
n00b
n00b


Joined: 17 Sep 2003
Posts: 74
Location: Los Angeles, CA

PostPosted: Sat Dec 27, 2003 2:10 pm    Post subject: Reply with quote

i think it was meant for after the chroot
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Sat Dec 27, 2003 5:46 pm    Post subject: Reply with quote

dark_teferi,
Look inside your /dev directory. The device nodes may have been lost during the backup/restore operation. If that is the case, it would explain why GRUB cannot find your drives/partitions from inside the chroot.
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