Find the answer to your Linux question:
Results 1 to 5 of 5
I have to re-install the grub loader on one of my systems My Centos installation has 3 partitions 100 meg for /boot 6000 for swap and the rest is created ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    11

    question re: reinstalling grub loader


    I have to re-install the grub loader on one of my systems

    My Centos installation has 3 partitions
    100 meg for /boot
    6000 for swap
    and the rest is created for /

    my device names are:
    /dev/cciss/c0d0p1 (boot)
    /dev/cciss/c0d0p2 (swap)
    and /dev/cciss/c0d0p3 ( / ) respectively.

    I am not sure which partition (the boot ‘p1′ or the ‘/’ ‘p3′ should contain the grub loader. My /boot partition is marked as boot with an asterisk?

    any help would be appreciated
    Last edited by jjj0923; 12-06-2012 at 06:28 PM.

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    913
    It should be /dev/dciss/c0d0

    Grub will be installed on the mbr, which is the first few sectors of the entire disk that hold the partition information as well.

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    11
    Quote Originally Posted by mizzle View Post
    It should be /dev/dciss/c0d0

    Grub will be installed on the mbr, which is the first few sectors of the entire disk that hold the partition information as well.

    so my command should be: "/sbin/grub-install /dev/cciss/c0d0" ???

    just to confirm...

    thanks in advance
    Last edited by jjj0923; 12-06-2012 at 06:28 PM.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2011
    Posts
    11
    I did this:

    /sbin/grub-install /dev/cciss/c0d0

    and now the system reboots and winds up at the 'grub >' prompt

    what now?

    there was no grub.conf created.

    what next?

  6. #5
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Was this system previously functioning, booting?
    Did you have a grub.conf file, which would indicate Grub Legacy?
    Do you have a Live CD you can use to mount the boot and/or root partitions to see what is there?
    What is the output of fdisk -l command as root? (Lower case Letter L in the command)

Posting Permissions

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