LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Problem at start with Grub (https://www.linuxquestions.org/questions/puppy-71/problem-at-start-with-grub-648514/)

VictorLemar 06-11-2008 04:26 AM

Problem at start with Grub
 
I made a Ghost image of a Puppy Installation. When I restored it on a different hard-disk system freezed with the message "GRUB..."
What has it happened?

pinniped 06-11-2008 04:54 AM

Grub's "root" (where to look for the /boot/grub/ directories and its files) has changed when you played with different disks; you need to interrupt Grub at the 'first stage' and specify a working 'root'.

VictorLemar 06-11-2008 05:00 AM

Quote:

Originally Posted by pinniped (Post 3181365)
you need to interrupt Grub at the 'first stage'

How can I do it? Maybe editing file menu.lst?

Quote:

Originally Posted by pinniped (Post 3181365)
specify a working 'root'.

For doing that, I have to know the path, in other words how the drive has been mounted...

Thank you.

Larry Webb 06-11-2008 05:13 AM

We need to know more, how many distros do you have and the hd partitions. Give us your partitions by doing 'fdisk -ls' in terminal as root and pasting the results here.

Larry Webb 06-11-2008 05:18 AM

First let me ask, do you have a linux operating system that will boot on this computer? You will need something, if not need to have a live cd, about any live cd will work.

VictorLemar 06-11-2008 06:06 AM

Quote:

Originally Posted by Larry Webb (Post 3181385)
We need to know more, how many distros do you have

Just one distro, the last Puppy
Quote:

Originally Posted by Larry Webb (Post 3181385)
and the hd partitions.

Two partitions: hda1, hda2

and this is the menu.lst file:

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Mon Jun 9 11:09:18 2008
#
# The backup copy of the MBR for drive '/dev/hdc' is
# here '/boot/grub/mbr.hdc.19703'. You can restore it like this.
# dd if=/boot/grub/mbr.hdc.19703 of=/dev/hdc bs=512 count=1
#
# Start GRUB global section
default 0
timeout 3
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
title Linux (on /dev/hdc2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hdc2 ro vga=787
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/hdc2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

VictorLemar 06-11-2008 07:01 AM

Ok, I solved reinstalling Grub from the puppy live cd :-)


All times are GMT -5. The time now is 03:31 PM.