View previous topic :: View next topic |
Author |
Message |
andreabergia n00b
Joined: 23 Jul 2003 Posts: 9
|
Posted: Sat Oct 16, 2004 10:12 am Post subject: Change / partition |
|
|
Hi everyone.
Yesterday I installed a new hd on my PC, and I moved my old disk (where Gentoo resides) from Master to Slave (that is, from /dev/hda2 to /dev/hdb2). Then I edited /boot/grub/grub.conf and /etc/fstab, updating references to the old partition. But, when I restarted the system (I booted from an old Slackware setup disk, and then I chrooted onto my Gentoo partition), the kernel told me that it wasn't able to find the root partition, and asked me for its device file. I inserted /dev/hdb2 and all went fine. I thought: maybe it's initrd's fault, let's run genkernel again. So I did. But it didn't helped, after a restart the system won't boot until I insert the root device by hand. So I'm asking you: why do this happens? What should I do to fix it? Thank you! _________________ Andrea Bergia - student Linux Registered User #281550 |
|
Back to top |
|
|
quirkie0 n00b
Joined: 10 Oct 2004 Posts: 16 Location: Bruxelles (Belgium)
|
Posted: Sat Oct 16, 2004 10:59 am Post subject: |
|
|
Maybe I'm going to say something stupid, but if you want to boot from your hard disk, the information for booting must be located into the MBR of your master hard disk, no ? |
|
Back to top |
|
|
andreabergia n00b
Joined: 23 Jul 2003 Posts: 9
|
Posted: Sat Oct 16, 2004 12:19 pm Post subject: |
|
|
quirkie0 wrote: | Maybe I'm going to say something stupid, but if you want to boot from your hard disk, the information for booting must be located into the MBR of your master hard disk, no ? |
I've already re-installed grub in the MBR. _________________ Andrea Bergia - student Linux Registered User #281550 |
|
Back to top |
|
|
andreabergia n00b
Joined: 23 Jul 2003 Posts: 9
|
Posted: Sun Oct 17, 2004 9:43 am Post subject: Solved! |
|
|
I've solved the problem! I forgot to update the real_root line in grub. Now it works well. _________________ Andrea Bergia - student Linux Registered User #281550 |
|
Back to top |
|
|
|