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 05-30-2008, 05:13 PM   #16
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229

I am jumping in because saikee and jiml8 are probably asleep. As far as I know all linux distros come with command line text editor vi and most come with at least one GUI which I do not know which one ubuntu uses. But in terminal as root when you get to the file you want to open

# vi /mnt/hd??/boot/grub/menu.lst

In other words just name your text editor and put the path behind and when you hit enter it should open the text editor and give you two options to either 'open a new session' or 'open default' which will open your path if your path is correct. If everything works out on your first try do not forget to write and save before ending the session.

Last edited by Larry Webb; 05-30-2008 at 05:15 PM.
 
Old 05-30-2008, 05:33 PM   #17
Kiwi944
Member
 
Registered: Jan 2008
Location: Auckland
Distribution: Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Hello All please ignore my last post, I have find out how to correctly enter information into menu.lst and have one last questions on this. Looking at the list below from "geometry (hdx)" I thought that (hd2,0) was the windows particition however when I entered the information into menu.lst I see the listed on reboot and when I select it I get a the words "starting up" but nothing happens.

could someone please help on advising what I have done wrong?

Code:
grub> geometry (hd0)
drive 0x80: C/H/S = 2434/255/63, The number of sectors = 39102336, /dev/sda
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 5,  Filesystem type unknown, partition type 0x82

grub> geometry (hd1)
drive 0x81: C/H/S = 9729/255/63, The number of sectors = 156301488, /dev/sdb
   Partition num: 0,  Filesystem type unknown, partition type 0x42

grub> geometry (hd2)
drive 0x82: C/H/S = 9729/255/63, The number of sectors = 156301488, /dev/sdc
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 4,  Filesystem type unknown, partition type 0x7

grub> geometry (hd3)
drive 0x83: C/H/S = 60801/255/63, The number of sectors = 976773168, /dev/sdd
   Partition num: 4,  Filesystem type unknown, partition type 0x7

grub>
 
Old 05-31-2008, 07:46 AM   #18
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Your Grub has reported the same partition layout as Ubuntu Linix. As I predicted (hd0,0) and (hd2,0) are the most likely partitions with XP or its boot loader NTLDR because these two partitions have been marked "active" and bootable by any MS MBR, which is the first sector of a boot loader from Dos to Vista.

When a MS Windows is installed its installer tends to install the boot loader into the first partition, that it recognises (or supports) in the detection queue. Thus if (hd0,0) existed when you installed XP then its boot loader would be in (hd0,0) and the XP proper in the next free unallocated space likely to be (hd2,0).

Unless you have altered the disk booting sequence therefore your XP should boot by these commands
Code:
title XP installed in (hd2,0) with boot loader in (hd0,0)
root (hd0,0)
chainloader +1
I have omitted the command "makeactive" here because (hd0,0) is already active and there is no other system compteing with the bootable flag with it.

If you still have a problem then post here the file /boot/grub/menu.lst

You can edit /boot/grub/menu.lst as an ordinary user by command
Code:
sudo gedit /boot/grub/menu.lst

Last edited by saikee; 05-31-2008 at 07:51 AM.
 
Old 05-31-2008, 05:40 PM   #19
Kiwi944
Member
 
Registered: Jan 2008
Location: Auckland
Distribution: Ubuntu
Posts: 31

Original Poster
Rep: Reputation: 15
Saikee & Larry Webb Thank you for your help here I will make these changes to the Grub as suggested.

Regards
Al
 
Old 05-31-2008, 08:58 PM   #20
james2b
Member
 
Registered: Feb 2007
Location: Washington state, USA
Distribution: Fedora 13, SUSE 11, Ubuntu 10.04, Mandriva 2010, Mint 8
Posts: 338

Rep: Reputation: 34
Smile

sudo gedit /boot/grub/menu.lst (typed in a terminal window) You need to have root edit privillages, so this will allow you to edit it in Ubuntu. And be sure to click the save button too before exit the file.
 
  


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
Dual boot wih Win98 and suse ekips_zbuhc Linux - Newbie 9 10-21-2006 05:11 PM
SuSe 10, Win XP - dual boot, 2 seperate HDD's, GRUB question Thanh-BKK Linux - Newbie 6 12-06-2005 08:21 PM
Dual boot windows xp on seperate HDD Gaz25 Linux - Newbie 24 07-22-2005 03:46 PM
Dual Boot Win XP and FC2 w/ NTLDR on Seperate Drives? manstretch Linux - Newbie 3 05-21-2004 04:31 AM
Dual Boot Linux and XP on two seperate HD's jimippa Linux - Software 6 02-28-2002 03:53 AM


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