Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: where is grub

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    where is grub

    Hi all, i am reading about USB bootable and it points me to grub in tutorial is issued command:
    grub> find /boot/grub/stage1

    but it gives me: Error 15: File not found

    i do not have any problems with grub, i can choose between M$ and Linux while boot

    so when i issue:
    sudo fdisk -l
    i see which partition is bootable (sda1)
    i have multiple partitons
    sda1, sda2, sda3, sda4

    sda1 windows
    sda2 linux
    sda3 swap
    sda4 ntfs

    so my question: how can i know where is grub installed ?
    I found on net that is in directory /boot/grub/stage1 (sda2 in my case)
    but why I have bootable sda1 ?? can anyody explain that ?

    another question: I found grub can be installed on a partition
    grub> setup (hd0,0)
    or on a MBR
    grub> setup (hd0)
    . How can i know where is ?

    last question: can i issue i think in my case command:
    grub> root (hd0,1)
    (sould be sda2 where i expecting grub) and then command:
    grub> find /boot/grub/stage1
    should gives output ?

    realy last question: I create bootalbe usb with unetbootin which uses syslinux, is possible to boot M$ located on HDD throught that ? Thanks a lot

  2. #2
    Seems that i answer 2nd question
    sudo dd if=/dev/sda bs=512 count=1 | od -a | grep G
    gives me GRUB but
    sudo dd if=/dev/sda1 bs=512 count=1 | od -a | grep G
    did not gives nothing

  3. #3
    I thing I ve found solution so
    /boot/grub/ contains grub files that are too big to store in MBR so they have to be located somewhere in hdd.

    grub> root(hd0,0)
    now works i forget sudo

    but still i would know if is possible from unetbootin created USB boot directly to harddisk partition (i dont want to press ctrl alt del)

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts