LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Grub (https://www.linuxquestions.org/questions/linux-software-2/installing-grub-747474/)

vino87 08-14-2009 02:42 AM

Installing Grub
 
I copied all the files from a IDE hard disk to my SATA hard disk partition
using the cp -avx command, when I try to bootup from SATA hard disk it shows "Verifying DMI pool data" and gets hangup. what I need to do to get boot from SATA hard disk. when I look at the /boot file I found that it was grub.

centosboy 08-14-2009 03:22 AM

Quote:

Originally Posted by vino87 (Post 3642887)
I copied all the files from a IDE hard disk to my SATA hard disk partition
using the cp -avx command, when I try to bootup from SATA hard disk it shows "Verifying DMI pool data" and gets hangup. what I need to do to get boot from SATA hard disk. when I look at the /boot file I found that it was grub.

which distro??
boot with a rescue disk.
then

Code:

grub-install /dev/sda
or whichever the boot disk is

vino87 08-17-2009 05:18 AM

I installed GRUB boot loader into the /dev/sda1 partition.
When I boot up the system, I got the following error message.

mkrootdev: label /not found
mount : error 2 mounting ext3
pivotroot : pivot_root (/sysroot, /sysroot/intrd) failed : 2
unmount /initrd/proc failed : 2

kernel panic : No init found
Try passing init= option to kernel

Larry Webb 08-17-2009 05:24 AM

Give us the results of fdisk -l

vino87 08-17-2009 05:43 AM

Device Boot
/dev/sda1 *
/dev/sda2
/dev/sda3
/dev/sda4
/dev/sda5

Larry Webb 08-17-2009 02:34 PM

Is that the result of fdisk -l?

I can not give you the technical reason but I believe you need to use a clone program or the dd command to accomplish what you are trying to do. The copy command will not work.

hughetorrance 08-17-2009 03:38 PM

Get a copy of the UBCD, make sure you get the free one ... its got Grub on it,navigate to automatically install...

aus9 08-17-2009 06:44 PM

hi

I installed GRUB boot loader into the /dev/sda1 partition.

would need a bootloader in mbr to chainload to it.

as mentioned put grub in mbr is the safest.

if you are not using ext4 the /boot partition or /boot sub-folder to / can run on grub2.

2) dd command would have been better as it can copy over mbr but why would you want to?
It would be safer to do a new partition table and a clean install.
This assumes you have backups.

but your kernel on ide may not have the modules for your sata....introducing a new error.

so IMHO it is better to do a clean install just to make sure new preferred distro detects and configs all your hardware.

centosboy 08-18-2009 02:27 AM

Quote:

Originally Posted by vino87 (Post 3646264)
I installed GRUB boot loader into the /dev/sda1 partition.
When I boot up the system, I got the following error message.

mkrootdev: label /not found
mount : error 2 mounting ext3
pivotroot : pivot_root (/sysroot, /sysroot/intrd) failed : 2
unmount /initrd/proc failed : 2

kernel panic : No init found
Try passing init= option to kernel

did you do a

Code:

grub-install /dev/sda
drop the 1 :)


All times are GMT -5. The time now is 10:02 AM.