View previous topic :: View next topic |
Author |
Message |
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Sat Dec 27, 2003 1:11 am Post subject: Grub doesnt see my hard drives? |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Dec 27, 2003 1:18 am Post subject: |
|
|
Did you mount /proc before chrooting ? |
|
Back to top |
|
|
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Sat Dec 27, 2003 1:26 am Post subject: |
|
|
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 |
|
|
jsc1959 n00b
Joined: 17 Sep 2003 Posts: 74 Location: Los Angeles, CA
|
Posted: Sat Dec 27, 2003 1:30 am Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Dec 27, 2003 1:51 am Post subject: |
|
|
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 |
|
|
dark_teferi Tux's lil' helper
Joined: 07 Aug 2003 Posts: 138 Location: AZ
|
Posted: Sat Dec 27, 2003 2:27 am Post subject: |
|
|
what?
to that mount command. _________________ "Rain from this storm leaves you pinned to the ground like an insect" |
|
Back to top |
|
|
jsc1959 n00b
Joined: 17 Sep 2003 Posts: 74 Location: Los Angeles, CA
|
Posted: Sat Dec 27, 2003 2:10 pm Post subject: |
|
|
i think it was meant for after the chroot |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Dec 27, 2003 5:46 pm Post subject: |
|
|
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 |
|
|
|