[plug] Help with grub please [SEC=UNCLASSIFIED]

Peter demo9 at gswd.com
Mon Jan 18 22:40:37 WST 2010

Kev wrote:
> Wilkinson, Alex wrote:
>>     0n Mon, Jan 18, 2010 at 03:27:08PM +0800, Kev wrote:
>>     >I'm in urgent need of some help with grub 1.97 (Ubuntu Karmic 
>> Netbook     >Remix).  I've just finished resizing my Remix partition 
>> using GParted     >and the PartedMagic CD.  My only way in at the mo 
>> is using a separate     >boot disk - in this case Super Grub Disk 2.
>>     >
>>     >
>>     >On a root console if I type grub I'm told that grub isn't 
>> installed.      >So, as per the onscreen instruction I type apt-get 
>> install grub and it     >does this without hesitation or error.  
>> Still grub fails at boot time     >with this error message
>>     >
>>     >    GRUB loading.
>>     >
>>     >    error: file not found
>>     >
>>     >    grub rescue>_
>>     >
>>     >
>>     >The last line is a prompt.  At this stage I'm at a complete 
>> loss, not     >being a command line jockey in any way at all.  I had 
>> it in mind that     >grub 2 looked at the partitions at boot time and 
>> dynamically created its     >boot menu on the fly.  I did had 
>> EasyPeasy in sda6 and remix in sda7,     >with a windows partition in 
>> sda1.  I removed EasyPeasy and stretched     >Remix to fill the void, 
>> and I see that remix is now in sda6.  I figure     >that's the 
>> problem but with grub2 I'm at a loss to fix it.
>> apparently karmic changed from grub version 1 to grub version two. 
>> please see:
>> [http://icewalkerz.blogspot.com/2009/10/ubuntu-karmic-changes-between-grub-1x.html] 
>>   -Alex
>> IMPORTANT: This email remains the property of the Australian Defence 
>> Organisation and is subject to the jurisdiction of section 70 of the 
>> CRIMES ACT 1914.  If you have received this email in error, you are 
>> requested to contact the sender and delete the email.
>> _______________________________________________
>> PLUG discussion list: plug at plug.org.au
>> http://www.plug.org.au/mailman/listinfo/plug
>> Committee e-mail: committee at plug.linux.org.au
> Thanx Alex.  Unfortunately, however, rtfm just does't work because I'm 
> at least 1 level below that on the ignorance scale.  I'm afraid that 
> that site only increases the confusion, particularly given that the 
> file most discussed starts with a great big warning, written in large 
> friendly letters; "DO NOT EDIT THIS FILE".  Apart from that, I think 
> my problem is before that in the boot process.  Grub can't even be 
> found cf;
> >     >    GRUB loading.
> >     >
> >     >    error: file not found
> >     >
> >     >    grub rescue>_
> I'm afraid I really need help coz I simply don't know enough to rtfm 
> and work it out.
> Thanx,
> Kev
Hi Kev,

Did you reinstall grub as part of the install process or did you leave 
the existing grub boot record in place.  Installing 'grub' at the 
command line won't help you as it simply installs grub (1), not grub2....

If you have a ubuntu live cd  (or usb stick, depending on your 
situation....)  ... boot into ubuntu from that,

Then go into a terminal and do this:  (ignore the bits behind the # - 
just there for clarification)

sudo -i
mount /dev/sda? /mnt  #linux partition: replace ? with correct linux 
partition  (in your case 6?)
grub-install --root-directory=/mnt/ /dev/sda


This process (re)installs grup2 to the boot sector of your drive.  grub2 
is generally smart enough to figure out the rest on its own.  If this 
doesn't work, you may need to look for other causes?   Did something go 
wrong while resizing the partitions? 

Can you access the partitions ok  from the live cd?

I'm probably getting ahead of myself....  try the above first and then 
let us know the outcome.


More information about the plug mailing list