Find the answer to your Linux question:
Results 1 to 7 of 7
I cannot get lilo to work, so I wanted to try to install grub. I cannot boot to the OS because lilo would not install, so I loaded the mandriva ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    18

    Mandriva Rescue grub install


    I cannot get lilo to work, so I wanted to try to install grub. I cannot boot to the OS because lilo would not install, so I loaded the mandriva rescue, and went to a console. When I do

    grub-install /dev/sda

    I get the message: cannot create director '/boot' File exists

    Do I have to chroot to some directory? If so which one, I am kind of a linux newbie, I have had some experience with fedora. Any help would be much appreciated. Thanks.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi developer_dave,

    Welcome to the LinuxForums.

    if you have created separate boot partition then chroot that only. create mount_point, mount partition and chroot it.




    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    18
    Does it sound like I need to do this, I do not know if I have a seperate boot partition. I used Mandriva defaults when installing. If I do need to do all of this, how can I accomplish this? Thanks.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    execute "fdisk -l" in rescue mode and post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    18
    Device Boot Start End Blocks ID System
    /dev/sda1 * 1 1083 8187448+ 83 Linux
    /dev/sda2 1084 20673 148100400 5 Extended
    /dev/sda5 1084 1624 4089928+ 82 Linux swap / Solaris
    /dev/sda6 1625 20673 144010408+ 83 Linux

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Code:
    chroot /dev/sda1  /mnt/sysimage
    grub-install /dev/sda
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Mar 2007
    Posts
    18
    When I do 'chroot /dev/sda1 /mnt/sysimage' I get the message:

    chroot: cannot change root directory to /dev/sda1: not a directory

    sorry, I am a real newbie, just trying to get it to work. Can you think of anything else? Thanks.

Posting Permissions

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