Reply to this topic
 Code for Ubuntu 8.04.4
post Jan 31 2010, 02:41 PM
Post #1
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


What code should I use to boot Ubuntu 8.04.4 LTS (via grub?) in grub4dos? Grub is installed on the linux partition sda6.

Thanks


+Quote Post
post Jan 31 2010, 02:56 PM
Post #2
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


QUOTE (Alexnharvey @ Jan 31 2010, 03:41 PM) *
What code should I use to boot Ubuntu 8.04.4 LTS (via grub?) in grub4dos? Grub is installed on the linux partition sda6.

Thanks


If the grub in sda6 is working, you can directly use it's menu.lst.

Boot to grub4dos command line.

in it type
CODE
find --set-root /menu.lst

[ENTER]
provided that you have in ROOT of the sda6 the menu.lst file (if you have it in, say, /boot/menu.lst change line accodingly)

grub4dos should find the file allright (of course if you have several partitions with file menu.lst you may want to temporary rename the "other" ones).

now type:
CODE
root

[ENTER]
grub4dos will reply with the partition in grub4dos notation, probably (hd0,5) unsure.gif
Now, simply issue the command:
CODE
configfile (hd0,5)/menu.lst

[ENTER]

Wonko


--------------------
1 user(s) said "Thank you!" to Wonko the Sane for this fantastic post:
Alexnharvey
+Quote Post
post Jan 31 2010, 03:25 PM
Post #3
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


QUOTE (Wonko the Sane @ Jan 31 2010, 03:56 PM) *
If the grub in sda6 is working, you can directly use it's menu.lst.

Boot to grub4dos command line.

in it type
CODE
find --set-root /menu.lst

[ENTER]
provided that you have in ROOT of the sda6 the menu.lst file (if you have it in, say, /boot/menu.lst change line accodingly)

grub4dos should find the file allright (of course if you have several partitions with file menu.lst you may want to temporary rename the "other" ones).

now type:
CODE
root

[ENTER]
grub4dos will reply with the partition in grub4dos notation, probably (hd0,5) unsure.gif
Now, simply issue the command:
CODE
configfile (hd0,5)/menu.lst

[ENTER]

Wonko


The find command reports my grub4dos menu.lst, hd0,0, not the linux grub menu.lst.

+Quote Post
post Jan 31 2010, 03:41 PM
Post #4
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


QUOTE (Alexnharvey @ Jan 31 2010, 04:25 PM) *
The find command reports my grub4dos menu.lst, hd0,0, not the linux grub menu.lst.


Really? w00t.gif

QUOTE (Wonko the Sane @ Jan 31 2010, 03:56 PM) *
grub4dos should find the file allright (of course if you have several partitions with file menu.lst you may want to temporary rename the "other" ones).


wink.gif

Wonko


--------------------
+Quote Post
post Jan 31 2010, 05:58 PM
Post #5
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


QUOTE (Wonko the Sane @ Jan 31 2010, 04:41 PM) *
Really? w00t.gif



wink.gif

Wonko


Haha, oops
+Quote Post
post Feb 1 2010, 07:00 PM
Post #6
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


Ok. So if I rename Grub4dos-menu.lst, reboot. Then I try to boot ubuntu8.04.4-menu.lst. If it works, great, but if it didn't how would i restore function to grub4dos, using a livecd to rename menu.lst again?

Thanks
+Quote Post
post Feb 1 2010, 08:38 PM
Post #7
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


If booting of the ubuntu does not work, from grub4dos command line (say that you have renamed menu.lst on (hd0,0) to mymenu.lst) you run:
CODE
configfile (hd0,0)/mymenu.lst

and you boot whatever you were booting before.

But you can leave menu.lst alone and create a file on the same partition where the ubuntu menu.lst is, say mytagfile.tag.

CODE
find --set-root /mytagfile.tag


CODE
root


(take note of the feedback from grub4dos, let's say it is (hd0,5), then

CODE
configfile (hd0,5)/menu.lst


It was just a way to make sure you get the right hard disk and partition.

There are several other ways, I thought this to be an easy one.

Wonko


--------------------
1 user(s) said "Thank you!" to Wonko the Sane for this fantastic post:
Alexnharvey
+Quote Post
post Feb 1 2010, 08:43 PM
Post #8
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


Thanks. So if I were confident of the device, eg hd0,5, i could go ahead and specify it and try to boot.

with
CODE
root (hd0,5)
configfile hd0,5/menu.lst


I have to be cautious because if I am unable to boot XP again, like I was after my ubuntu9.04 install, I will be in trouble with my wife.
+Quote Post
post Feb 2 2010, 09:04 AM
Post #9
Wonko the Sane
Gold Member   *****
Group: Advanced user

  Joined: 8-January 10 From: The Outside of the Asylum

Posts: 2,277
Thank(s): 252


Italy


QUOTE (Alexnharvey @ Feb 1 2010, 09:43 PM) *
Thanks. So if I were confident of the device, eg hd0,5, i could go ahead and specify it and try to boot.


Yep, and NO.
Yes, but you can check the device easily.
In grub4dos command line

CODE
root (hd

[TAB]
will give you the opportunity to see currend hd's

Try
CODE
root (hd0,1)

[ENTER]
then (hd0,2), etc.

then:
CODE
configfile /

[TAB]
will list the files on that partition, so that you can make sure it is the right one....

Once you have established root, you do not need to re-specify the hd partition, you can use a relative path.

And NO, (hd0,5) is ALWAYS between brackets.

Wonko


--------------------
+Quote Post
post Feb 2 2010, 03:36 PM
Post #10
Alexnharvey
Newbie   *
Group: Members

  Joined: 24-January 10
Posts: 12
Thank(s): 0


Thanks a lot, I got it booted. Now have to fix the wireless connection.

+Quote Post

Reply to this topic
1 User(s) are reading this topic ()



Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts Forum Header - LiveXP
2 Galapo 429 30th August 2010 - 05:14 PM
Last post by: Nuno Brito
No New Posts Forum Cleanup
2 Nuno Brito 656 22nd August 2010 - 10:24 AM
Last post by: Wonko the Sane
No New Posts Forum headers
4 Nuno Brito 407 21st August 2010 - 11:33 AM
Last post by: Nuno Brito
No New Posts Forum Post problem
Image attachment & Thread Merge problem
7 Holmes.Sherlock 432 18th August 2010 - 05:55 AM
Last post by: Holmes.Sherlock
No New Posts Ubuntu 10.04 persistent GRUB4DOS
7 victor141516 750 15th August 2010 - 03:24 PM
Last post by: victor141516