Re: [ubuntu-in] Error in command grub-install

2010-06-04 Thread Shrikant Khanduri
Hi Ravi, Please Update if problem is solved.


On 4 June 2010 19:47, deepak kumar  wrote:

> Hello Ravi.
> Try this
> 1.boot using live cd
> 2.mount your linux root partition in /mnt
>   $mount -t extX  /dev/sdaX  /mnt
> 3.now bind necessary system directories
> $mount --bind /sys /mnt/sys
> $mount --bind /dev /mnt/dev
> $mount --bind /proc /mnt/proc
> 4.now chroot to /mnt
>$chroot /mnt
> 5.now run update grub
>$update-grub
> 6.now install grub
>$grub-install /dev/sda
> 7.recheck installation
>$grub-install --recheck /dev/sda
> 8.if no error message is found then exit
> $exit
> 9.unmount all  the mounted devices
>   $umount /mnt/dev
>   $umount /mnt/sys
>   $umount /mnt/proc
> 10.now reboot
>   $reboot
>
>
>
> On Thu, Jun 3, 2010 at 10:44 AM, Jkhatri  wrote:
>
>>  On Wednesday 02 June 2010 09:33 PM, Ravi Joshi wrote:
>>
>>   Hi. i am trying to install Grub using Ubuntu9.04 Live CD i tried to
>> run grub-install command  but it gives me some error... following is my
>> terminal...
>>
>>
>> GRUB>
>>
>> and here when i run boot command it gives me ERROR 5. KERNEL MUST BE
>> BOOTED BEFORE GRUB (i forgot what exactly the eroor was.)  and now i can't
>> login even my windowsXp.
>>
>> so please help me..
>>
>> -Ravi Joshi
>>
>>
>> Hi Ravi
>>
>> will you try following ... and post the result here ??
>>
>>
>>
>>   1. If you have Grub 2 set to boot without displaying the menu at all,
>> hold the SHIFT key down until the menu displays. (In Grub it was the ESC
>> key.)
>>   2. Press any key once the menu is displayed to 'freeze' it. Then arrow
>> to the kernel you want to boot.
>>   3. Press "e"
>>   4. Scroll to the end of the "linux /boot/vmlinuz" line. If
>> displayed, remove "quiet" and/or "splash". Add the word "single" to the end
>> of the line.
>>   5. Press CTRL-X to boot to the Recovery menu.
>>
>>
>>
>>
>>
>> --
>>
>> Jatin Khatri
>>
>> Web www.khatrijatin.co.nr
>>
>> www.fedoraproject.org/wiki/Jatin
>>
>> Phone (+91) 98250 20393
>>
>> Save Paper, Save Environment.**
>> *(Plant at least one tree in your life and nurture it !!!)*
>>
>>
>>
>> --
>> ubuntu-in mailing list
>> ubuntu-in@lists.ubuntu.com
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>>
>>
>
>
> --
> d...@k$
>
> --
> ubuntu-in mailing list
> ubuntu-in@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>
>
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] Error in command grub-install

2010-06-04 Thread deepak kumar
Hello Ravi.
Try this
1.boot using live cd
2.mount your linux root partition in /mnt
  $mount -t extX  /dev/sdaX  /mnt
3.now bind necessary system directories
$mount --bind /sys /mnt/sys
$mount --bind /dev /mnt/dev
$mount --bind /proc /mnt/proc
4.now chroot to /mnt
   $chroot /mnt
5.now run update grub
   $update-grub
6.now install grub
   $grub-install /dev/sda
7.recheck installation
   $grub-install --recheck /dev/sda
8.if no error message is found then exit
$exit
9.unmount all  the mounted devices
  $umount /mnt/dev
  $umount /mnt/sys
  $umount /mnt/proc
10.now reboot
  $reboot



On Thu, Jun 3, 2010 at 10:44 AM, Jkhatri  wrote:

>  On Wednesday 02 June 2010 09:33 PM, Ravi Joshi wrote:
>
>   Hi. i am trying to install Grub using Ubuntu9.04 Live CD i tried to
> run grub-install command  but it gives me some error... following is my
> terminal...
>
>
> GRUB>
>
> and here when i run boot command it gives me ERROR 5. KERNEL MUST BE BOOTED
> BEFORE GRUB (i forgot what exactly the eroor was.)  and now i can't login
> even my windowsXp.
>
> so please help me..
>
> -Ravi Joshi
>
>
> Hi Ravi
>
> will you try following ... and post the result here ??
>
>
>
>   1. If you have Grub 2 set to boot without displaying the menu at all,
> hold the SHIFT key down until the menu displays. (In Grub it was the ESC
> key.)
>   2. Press any key once the menu is displayed to 'freeze' it. Then arrow to
> the kernel you want to boot.
>   3. Press "e"
>   4. Scroll to the end of the "linux /boot/vmlinuz" line. If displayed,
> remove "quiet" and/or "splash". Add the word "single" to the end of the
> line.
>   5. Press CTRL-X to boot to the Recovery menu.
>
>
>
>
>
> --
>
> Jatin Khatri
>
> Web www.khatrijatin.co.nr
>
> www.fedoraproject.org/wiki/Jatin
>
> Phone (+91) 98250 20393
>
> Save Paper, Save Environment.**
> *(Plant at least one tree in your life and nurture it !!!)*
>
>
>
> --
> ubuntu-in mailing list
> ubuntu-in@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>
>


-- 
d...@k$
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] Error in command grub-install

2010-06-04 Thread deepak kumar
Hello Ravi.
Try this
1.boot using live cd
2.mount your linux root partition in /mnt
mount -t extX  /dev/sdaX  /mnt
3.now bind necessary system directories
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
4.now chroot to /mnt


On Thu, Jun 3, 2010 at 10:44 AM, Jkhatri  wrote:

>  On Wednesday 02 June 2010 09:33 PM, Ravi Joshi wrote:
>
>   Hi. i am trying to install Grub using Ubuntu9.04 Live CD i tried to
> run grub-install command  but it gives me some error... following is my
> terminal...
>
>
> GRUB>
>
> and here when i run boot command it gives me ERROR 5. KERNEL MUST BE BOOTED
> BEFORE GRUB (i forgot what exactly the eroor was.)  and now i can't login
> even my windowsXp.
>
> so please help me..
>
> -Ravi Joshi
>
>
> Hi Ravi
>
> will you try following ... and post the result here ??
>
>
>
>   1. If you have Grub 2 set to boot without displaying the menu at all,
> hold the SHIFT key down until the menu displays. (In Grub it was the ESC
> key.)
>   2. Press any key once the menu is displayed to 'freeze' it. Then arrow to
> the kernel you want to boot.
>   3. Press "e"
>   4. Scroll to the end of the "linux /boot/vmlinuz" line. If displayed,
> remove "quiet" and/or "splash". Add the word "single" to the end of the
> line.
>   5. Press CTRL-X to boot to the Recovery menu.
>
>
>
>
>
> --
>
> Jatin Khatri
>
> Web www.khatrijatin.co.nr
>
> www.fedoraproject.org/wiki/Jatin
>
> Phone (+91) 98250 20393
>
> Save Paper, Save Environment.**
> *(Plant at least one tree in your life and nurture it !!!)*
>
>
>
> --
> ubuntu-in mailing list
> ubuntu-in@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>
>


-- 
d...@k$
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] Error in command grub-install

2010-06-02 Thread Jkhatri

On Wednesday 02 June 2010 09:33 PM, Ravi Joshi wrote:
Hi. i am trying to install Grub using Ubuntu9.04 Live CD i tried 
to run grub-install command  but it gives me some error... following 
is my terminal...



GRUB>

and here when i run boot command it gives me ERROR 5. KERNEL MUST BE 
BOOTED BEFORE GRUB (i forgot what exactly the eroor was.)  and now i 
can't login even my windowsXp.


so please help me..

-Ravi Joshi




Hi Ravi

will you try following ... and post the result here ??



  1. If you have Grub 2 set to boot without displaying the menu at all, 
hold the SHIFT key down until the menu displays. (In Grub it was the ESC 
key.)
  2. Press any key once the menu is displayed to 'freeze' it. Then 
arrow to the kernel you want to boot.

  3. Press "e"
  4. Scroll to the end of the "linux /boot/vmlinuz" line. If 
displayed, remove "quiet" and/or "splash". Add the word "single" to the 
end of the line.

  5. Press CTRL-X to boot to the Recovery menu.




--

Jatin Khatri

Web www.khatrijatin.co.nr 

www.fedoraproject.org/wiki/Jatin 

Phone (+91) 98250 20393

Save Paper, Save Environment.**
/*(Plant at least one tree in your life and nurture it !!!)*/


-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] Error in command grub-install

2010-06-02 Thread Jkhatri



r...@ubuntu:~# grub-install --root-directory=/media/root /dev/sda
grub-probe: error: Cannot open `/boot/grub/device.map'
[: 494: =: unexpected operator
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /media/root/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)/dev/sda
r...@ubuntu:~#

i tried this rub-install --root-directory=/media/root /dev/sda command 
so many times but still it gives me same error again and again.. and 
now i restart my laptop it open a black screen with grub terminal like 
this


GRUB>

and here when i run boot command it gives me ERROR 5. KERNEL MUST BE 
BOOTED BEFORE GRUB (i forgot what exactly the eroor was.)  and now i 
can't login even my windowsXp.


so please help me..

-Ravi Joshi



Ravi

will you try following command

sudo grub-install --root-directory=/media/root /dev/sda

I'm not sure but invalid or unsupported executable format  is 
usually a result of a mapping error on grub , but you seem to have it 
mapped correctly. I can only guess that the device.map might be wrong, 
try checking /boot/grub/device.map and see if /dev/sda is actually (hd0) 
like grub thinks it is






--

Jatin Khatri

Web www.khatrijatin.co.nr 

www.fedoraproject.org/wiki/Jatin 

Phone (+91) 98250 20393

Save Paper, Save Environment.**
/*(Plant at least one tree in your life and nurture it !!!)*/


-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


[ubuntu-in] Error in command grub-install

2010-06-02 Thread Ravi Joshi
Hi. i am trying to install Grub using Ubuntu9.04 Live CD i tried to run 
grub-install command  but it gives me some error... following is my terminal...

ubu...@ubuntu:~$ sudo -i
r...@ubuntu:~# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xae9bae9b

   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1    2611    20972826    7  HPFS/NTFS
/dev/sda2    2612   19457   135315495    f  W95 Ext'd (LBA)
/dev/sda5    2612   10313    61866283+   7  HPFS/NTFS
/dev/sda6   10314   14229    31455238+   7  HPFS/NTFS
/dev/sda7   14230   16840    20972826    7  HPFS/NTFS
/dev/sda8   16841   17089 261   82  Linux swap / Solaris
/dev/sda9   17090   19457    19020928+  83  Linux
r...@ubuntu:~# mkdir /media/root
r...@ubuntu:~# mount /dev/sda9 /media/root
r...@ubuntu:~# ls /media/root
bin    dev   initrd.img  media  proc  selinux  tmp  vmlinuz
boot   etc   lib mnt    root  srv  usr
cdrom  home  lost+found  opt    sbin  sys  var
r...@ubuntu:~# grub-install --root-directory=/media/root /dev/sda
grub-probe: error: Cannot open `/boot/grub/device.map'
[: 494: =: unexpected operator
Installing GRUB to /dev/sda as (hd0)...
Installation finished. No error reported.
This is the contents of the device map /media/root/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)    /dev/sda
r...@ubuntu:~# 

i tried this rub-install --root-directory=/media/root /dev/sda command so many 
times but still it gives me same error again and again.. and now i restart my 
laptop it open a black screen with grub terminal like this

GRUB>  

and here when i run boot command it gives me ERROR 5. KERNEL MUST BE BOOTED 
BEFORE GRUB (i forgot what exactly the eroor was.)  and now i can't login even 
my windowsXp.

so please help me..

-Ravi Joshi


  -- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in