On Tue, July 10, 2007 2:17 pm, [EMAIL PROTECTED] wrote:
> The guys at Dove appeared to have found the power supply problem but not
> fully
> fixed GRUB or the partioning / data transfer to the new expanded hard
> drive...they are still trying to figure things out...but clearly they are
> not
> linux trained.
>
> Is there a kind soul who would be prepared to take a look at my PC at the
> CLUG
> meeting tonight to at least try to get it to boot correctly?
>
> If Dove are unable to fully transfer my linux data by the end of work
> today
> does anyone know of a place / someone in town who can connect to the
> removed
> hard drive to extract data from it? (I have the original hard drive which
> did
> work, though Dove says it has a problem).
>
> Cheers
>
> Ralph

Boot from CD

chroot to your linux root partition

mount linux boot partition (if it is separate)

run grub

enter the three magic commands

root (hdx,y)
setup (hdx)
quit


x and y depend on your setup, but are easy to determine:

x is the hard drive number, zero based (ie the first hard drive is 0)
y is the partition where grub is stored, again zero based. If you have a
separate boot partition it will be that one, if you don't it will  be the
root partition.

This puts grub on the MBR, which is usually where you want it.


>
>
> Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
>
>> Thanks for the reply Steve.
>>
>> I have't been able to follow through with your recommendations as yet
>> as my pC
>> is still experiencing un-expected power downs and freezes...so it
>> appears that
>> the hard drive was not at fault as Dove diagnosed!!
>>
>> I did manage to get a live Knoppix to run for a few minutes and identify
>> some
>> of the partitions.
>>
>> I presume the  <root device> you list item 3. would be my hdc1 windows
>> NTFS
>> partition?
>>
>> Cheers
>>
>> Ralph
>>
>> Quoting Steve Holdoway <[EMAIL PROTECTED]>:
>>
>>> 1. Boot off a live linux cd
>>> 2. mkdir /target
>>> 3. mount /dev/<root-device> /target
>>> 4. (if you've got a separate boot device ) mount /dev/<boot-device>
>>> /target/boot
>>> 5. chroot /target /bin/bash
>>> 6. grub
>>> grub> root hd(0,0) [ assuming first partition - adjust the second 0
>>> accorgingly ]
>>> grub> setup hd(0,0)
>>> grub> exit
>>> 7. exit
>>> 8. init 6
>>>
>>>
>>> Should do it. grub allows for tab completion if you are unsure where
>>> your boot device is.
>>> There is a grub-install command on some distros, but I still don't
>>> trust it...
>>>
>>> hth,
>>>
>>>
>>> Steve
>>> On Fri, 06 Jul 2007 13:28:57 +1200
>>> [EMAIL PROTECTED] wrote:
>>>
>>>> I've just had the nice guys at Dove Electronics replace a faulty hard
>>>> drive
>>>> for me. In the process they upgraded from 80 to 250gb and expanded the
>>>> partitions (only the M$ ones as they were using Norton Ghost and
>>>> couldn't do
>>>> anything with the Linux formatted ones).
>>>>
>>>> My original hard drive used GRUB to dual boot.
>>>>
>>>> Now when I turn on I first get the F2 (setup) and F12 (multiboot
>>>> screen and
>>>> then it goes to a big black screen with 'GRUB' in top left corner
>>>> and stops.
>>>>
>>>> Clearly GRUB has lost its reference to the partitions..can anybody
>>>> offer a
>>>> solution to getting it working again?
>>>>
>>>>
>>>>
>
>
>
>
>


-- 
Nick Rout

Reply via email to