LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-27-2009, 05:42 AM   #16
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46

Quote:
Originally Posted by jmilb10053 View Post
I am in Ubuntu now. How do I get back to Xp when I am getting the Error 17 on the Grub?

Did you use the cd to boot back into Ubuntu? I'm assuming that since you got the Error 17. Make sure you are on Ubuntu that you installed and not on the LiveCD. One way to check is to see what is mounted with 'df' in a terminal. That should show the top thing being '/' on something like /dev/sda5 or whatever partition you installed on.

If you are on the installed Ubuntu, do this in terminal:

cd /boot/grub
ls

You should see various files with 1_5 at the end, stage1, stage2, menu.lst.

Do you have that stuff there?
 
Old 09-27-2009, 09:32 AM   #17
jmilb10053
LQ Newbie
 
Registered: Sep 2009
Location: Lexington Ky
Posts: 15

Original Poster
Rep: Reputation: 0
I am only able to get to Ubunto using the Cd , Each time I reboot its is like starting over. I just started to reinstall unbuntu but I do not want to do that either. I am afraid it will want to set up another partition. How do I get to the terminal? Is that the Ctrl Alt F1? If I am on the livecd is their anyway to check or correct the grub?
 
Old 09-27-2009, 12:47 PM   #18
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by jmilb10053 View Post
I am only able to get to Ubunto using the Cd , Each time I reboot its is like starting over. I just started to reinstall unbuntu but I do not want to do that either. I am afraid it will want to set up another partition. How do I get to the terminal? Is that the Ctrl Alt F1? If I am on the livecd is their anyway to check or correct the grub?
You can find Terminal in the Applications menu under Accessories.

In order to check and fix grub, you will need to mount your actual linux partition. Step one is to find out what that is. This will all be done in the terminal:

sudo fdisk -l (small L)

Look for the partition that is Linux and not swap.

Once you know that, do this substituting the correct partition for 'sda5' below:

sudo mount /dev/sda5 /mnt

Now you can look at what is on that partition, specifically like I said before in the grub directory:

cd /mnt/boot/grub
ls

Do you find those files ending with 1_5 and also stage1, stage2, menu.lst?

And I forgot to ask, but do you have just one hard drive?

If you DO find those files there, then try this. This must be done while the partition is still mounted. In other words don't reboot the cd or something like that and try it cold:

sudo chroot /mnt

This means that commands which will be run will be run as if you are booted on your installed system.

Then you will need to update and reinstall grub to the mbr:

update-grub
grub-install /dev/sda

Then use the red icon on the panel to reboot, this time booting without the cd to see if grub now works.
 
Old 09-27-2009, 01:18 PM   #19
jmilb10053
LQ Newbie
 
Registered: Sep 2009
Location: Lexington Ky
Posts: 15

Original Poster
Rep: Reputation: 0
I think I am following a little now. ajlewis- I ran sudo fdisk -l and it gave me 2 hard drives. My internal where I thought i was installing and my external. My external is were I have /dev/sdb5 ands system linux. So is ubuntu on my external none booting hard drive? So should I disconnect it and re install unbuntu? How do i get off the ubuntu@ubuntu:~$ prompt?
 
Old 09-27-2009, 02:29 PM   #20
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
Quote:
Originally Posted by jmilb10053 View Post
I think I am following a little now. ajlewis- I ran sudo fdisk -l and it gave me 2 hard drives. My internal where I thought i was installing and my external. My external is were I have /dev/sdb5 ands system linux. So is ubuntu on my external none booting hard drive? So should I disconnect it and re install unbuntu? How do i get off the ubuntu@ubuntu:~$ prompt?
It looks like you installed on /dev/sdb5. Are there any linux partitions on your internal drive? If not, then you surely installed on the external drive. Grub got installed on the internal drive's mbr. Then when grub tried to find the files it needs it looked on the internal drive, but the files are on the other drive.

If you want to install linux on the internal drive, then you could unplug the external drive to make it easier on yourself.

I think the prompt you are talking about is on the terminal. In that case just close the window of the terminal by clicking on the X at the top right. Then you can reboot the cdrom by clicking on that red icon on the panel and choose Restart. This will require repartitioning the internal drive probably. You may have to resize the windows partition since they usually take the whole drive to install windows on. Be careful not to choose for it to take the whole drive or you will wipe out windows.

After you are done installing, you can plug in the external drive and get rid of the files in that linux partition so that you can use the partition for something else.
 
Old 09-27-2009, 03:17 PM   #21
jmilb10053
LQ Newbie
 
Registered: Sep 2009
Location: Lexington Ky
Posts: 15

Original Poster
Rep: Reputation: 0
I think I have got it now. I am not sure why or how but I did have ubuntu loaded on the external hard drive. I disconnected its usb and re loaded ubuntu from the live cd. It fixed the grub issue and allowed me to boot to xp (I now get a second grub screen after I select xp and have to select xp again) and to ubuntu.

Besides being new at this I see 2 major mistakes in what I did during the process. I assumed that imgburn would make a cd rom as well as infra recorder. I was wrong. So when I re burned the cd I believe that fixed some of the early issue. 2nd problem which I have no way of knowing why, the cd tried to load ubuntu on the external usb hard drive instead of the internal boot drive. Once I fixed this I seem to be in business. Thanks to everyone and especially to ajlewis2.

Now I have to fix why firefox will not run. It was running when it was the live cd. Thanks again
 
Old 09-27-2009, 03:43 PM   #22
ajlewis2
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217

Rep: Reputation: 46
I think the installer went to the external drive, because there was free space on it. You would have been able to install on the first drive if you had used Custom when you got to the partitioner. Then you could have directed it to the first drive, resized, repartitioned and all that.

Anyway, I'm glad you got that going. Post your firefox problem to a new post. Be sure to give details on what is happening or not happening. Tell if firefox loads but just doesn't get to the Internet. But don't put it here. This thread is Solved! Yippee! Another Linux convert in the making. :-)
 
  


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
Time Warp / Clock Problem - Ubuntu Alternate CD install over Ubuntu Server krimzen85 Linux - Software 2 08-07-2009 10:01 AM
LXer: Simple Guide How to Upgrade Ubuntu 8.04 (Hardy Heron) to Ubuntu 8.10 (Intrepid LXer Syndicated Linux News 0 10-31-2008 10:50 AM
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM


All times are GMT -5. The time now is 12:22 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