Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

Boot error

  Date: Dec 10    Category: Unix / Linux / Ubuntu    Views: 363
  

I tried to install Kanotix Linux (another distro based on Debian, which I
managed at last to boot from the live CD with the boot option ACPI on DMA on,
APIC off, otherwise it kicked me, like Knoppix) but Acritoxinstaller got stuck
after formatting the Kubuntu partition. I rebooted and installed SimplyMepis but
I got the surprise that it did not have Ubuntu also in the boot menu at startup.
Yesterday I managed to install Kanotix, it worked flawlessly and there is Ubuntu
also in the boot menu but when I try to boot Ubuntu there is the error message

"Error 2
Bad file or directory type"

and something like "press any key to restart",
I cannot remember exactly

The Ubuntu partition is intact, I can access all the files easily, I have not
lost any data.

Please tell me how to repair GRUB so as to be able to load Ubuntu also.
Kanotix is very nice but I recommend it to be installed only on an empty
computer, with no other OS installed...

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 10    

It has been awhile since I have used MEPIS, but it has a utility in the KDE
system menu to rewrite grub. If it did not do it properly the first time
then it isn't likely to do it again, but it is worth a shot.

Otherwise, you will have to cut and paste from the menu.lst in /boot/grub of
your Ubuntu installation to your menu.lst in Mepis. You will need to use su
in Mepis to load its menu.lst found in the root directory at /boot/grub. I
think that Mepis has a file manager in administration mode in the system
menu. It used to. Use that instead or use a terminal and change to root with
su and then launch konqueror. Navigate to /boot/grub/ (in the MEPIS root
directory) and open the menu.lst in kate.

Next open the Ubuntu menu.lst. You don't have to be root so use an ordinary
file manager. Open it in kate. Copy the lines from the Ubuntu menu.lst that
you need. If you place them at the top, ahead of MEPIS, then Ubuntu will
become the default boot OS. Otherwise paste it after the MEPIS lines. Save.

Possible problem. If you have separate drives and use a boot manager to
choose which drive to boot first and both drives are set to hd(0,x) (mine
work this way, but most people's don't) then you will have to edit those
lines of menu.lst to reflect the change. Basically if they are on the the
same drive it should be no problem, but if they are on different drives then
you may have a problem when you reboot. If so you will have to manually edit
grub at boot up (press e, change and then press b to boot) and then make
changes when you get back in.

 
Answer #2    Answered On: Dec 10    

this is probably similar
https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows

 
Answer #3    Answered On: Dec 10    

Thank you very much ! I looked on the menu.lst but couldn't find anything
wrong, Ubuntu was also listed there but just could not be booted. I booted
Macpup Foxy and deleted GRUB from the Ubuntu partition but this did not solve
the problem and then unplugged the IDE hard disk to work on the SATA one, booted
the Ubuntu live CD and restored GRUB according to the instructions on the
Internet but this did not solve the problem either, Kanotix's GRUB loaded, with
Ubuntu in the boot menu but with the same error when trying to load it. As I was
desperate, I booted from the Kubuntu live CD, started the installer, resized the
Kanotix partition and installed Kubuntu. Its GRUB now loads Kubuntu, Kanotix or
Ubuntu with no trouble. It seems that there is really something wrong with
Kanotix's installer. Now I have a three-boot system on the giant SATA drive,
with Ubuntu and Kanotix on two huge partitions and Kubuntu on a smaller one and,
independently, another
three-boot system on the IDE drive, with gOS, Linux Mint (on most of the space)
and Macpup Foxy frugal. I did not really want this, but at least I have six
options.
I might seem to be an undecided maniac.

 
Didn't find what you were looking for? Find more on Boot error Or get search suggestion and latest updates.




Tagged: