LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-31-2006, 05:55 AM   #1
Mark1234
LQ Newbie
 
Registered: Aug 2006
Location: netherlands
Distribution: pclinuxos
Posts: 15

Rep: Reputation: 0
error while loading operating system


hi everyone !!!!

i have got a general problem and i don't now what to do.

this is the story, : i had installed PClinuxOS for the first time in my live on a computer.
i thought to don't use my entirely harddisk so i can install windows to.
linux did very well, so i wanted to install windows XP to.
i did that with the rest of my unpartitioned space but... it says that could not install it on the new partition i made because it was no windows partition. so i deleted the partition and i made a new partition, but it still doesn't work.
i gave up to install windows and want to go on the internet to find a answer why it doesn't work.
but... linux doesn't work anymore.
when i boot it says : error while loading operating system !!!
i don't now what to do because when i want to install linux again from the life-CD it says the same again after restarting !!! can someone help me out please.
 
Old 08-31-2006, 12:19 PM   #2
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Rep: Reputation: 15
Hi

1. It seems that the Windows bootloader has overwritten LILO. To fix it, boot from the live CD, at the prompt, type 'livecd 2', login as root (with password: root) and run:

{assuming your Linux partition is hda1)

# mkdir /mnt/hda1 (creates the mount point /mnt/hda1)
# mount /dev/hda1 /mnt/hda1 (mount the linux partition)
# chroot /mnt/hda1 (chroot to the installation on the hard drive{
# /sbin/liloconfig (rewrite LILO)

Then do:
# shutdown -r now
and remove the CD so it boots from the hard drive.


2. As for your second question, how are you creating the partition? (ie. are you doing it from the Linux install or the Windows installer?)

The easiest thing to do would be to delete the partition you created for Windows and let Windows do it itself during the installation. (Make sure to select the unformatted space and format it as FAT32 if you want to share data between the OSes).

However, as Windows overwrites any other bootloader with its own, after this you'll need to do the procedure I outlined above again.

Hope this helps.

1337_penguin

Last edited by 1337_penguin; 08-31-2006 at 12:20 PM.
 
Old 09-01-2006, 08:31 AM   #3
Mark1234
LQ Newbie
 
Registered: Aug 2006
Location: netherlands
Distribution: pclinuxos
Posts: 15

Original Poster
Rep: Reputation: 0
thank you very much !!!!
i can finally use my computer again, and have both linux and windows as operating system.
thanks !!!
 
Old 09-01-2006, 09:49 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
The reason windows overwrote your mbr was that you do not have the option to tell windows to not install unlike Linux which you do have a choice. Also once you over wrote your mbr windows is incapable of booting linux. That is why you should always install windows first and linux last.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Loading Operating System RAdams Fedora 12 05-24-2006 11:10 AM
Error Loading Operating System :( zXen Ubuntu 2 03-06-2006 07:38 AM
Error Loading Operating System sredmon Linux - General 4 08-06-2005 12:52 PM
error loading operating system ziggie216 Linux - General 5 12-29-2003 07:15 PM
Error Loading Operating System cfugate Linux - Hardware 6 06-01-2003 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration