LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2008, 08:42 AM   #1
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Ubuntu Maverick Meercat
Posts: 96

Rep: Reputation: 23
messed up my ubuntu system and don't know where to go now


i am using hardy 8.04 and trying to dual boot with xp. i would be familiar with dual booting xp and mandriva. i set up some partitions

sda1 was /
sda2 was swap
sda3 was /home
sda4 was fat32 for windows

I copied the boot sector from sda1 onto the fat32 and went to install windows, problem with it and then left with no boot options apart from a grub> prompt. sorted that with find, root and setup etc and then rearranged the partitions to have the fat32 at the start of the drive. grand everything went ok

sda1 is fat
sda2 is /
sda3 is swap
sda4 is /home

ubuntu was booting fine and so I tried xp again and now xp works perfectly but can't get into linux. the bootsector that i installed in boot.ini is just leaving me at a grub prompt.

i can use the livedvd to get back into ubuntu and tried grub, find, root and setup for the second partition etc and it seems to work ok but no menu.lst is being made. i can try booting the kernel from the grub prompt but it always hangs.

i can just reinstall it from dvd but i'll lose all the system changes i've made and theres many! so i'm trying to sort this out if i can without that.

any help would be appreciated -thanks
 
Old 06-25-2008, 09:04 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
that should write the Grub boot loader to the MBR of the HD. then just allow the Grub menu to handle your multi-boot configuration. It sounds like you were going the other way using the windows boot loader, but this should actually be less hassle in the long run.

Typically for a multi-boot system you would install Windows first, then Linux allowing Linux to take over the job as boot manager.

Better yet, follow this guide on the Ubuntu Site..
Recovering Ubuntu after installing Windows

Last edited by farslayer; 06-25-2008 at 09:07 AM.
 
Old 06-25-2008, 09:15 AM   #3
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Ubuntu Maverick Meercat
Posts: 96

Original Poster
Rep: Reputation: 23
Thanks I got it working although I don't know how and its not the same as the way it was but I can work on that. I did delete the /boot directory by accident so that was another hurdle but I used the kernel off the livedvd.

Works now which is the main thing. I copied a backup of menu.lst to it and entered the new uuids in there and (hd0,1) too. all in all a learning experience!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When I start up Ubuntu, the screen gets messed up. xCuber125 Linux - Laptop and Netbook 6 02-14-2008 11:12 AM
My system is messed up because of VirtualBox jymmi Ubuntu 2 09-28-2007 07:59 PM
file system messed up, help! eaglegst Debian 3 08-31-2005 07:14 PM
Arrrrrgh! I have messed up my system fonts njschroe Linux - General 0 02-01-2005 01:01 PM
Perl has messed up my system..Can anyone help? midgcool Linux - Software 2 12-05-2004 11:34 AM


All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration