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.
- 03-07-2007 #1Just 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.
- 03-07-2007 #2
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.
CasperIt is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-07-2007 #3Just 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.
- 03-07-2007 #4
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
- 03-07-2007 #5Just 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
- 03-08-2007 #6Code:
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
- 03-09-2007 #7Just 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.


Reply With Quote
