Jump to content











Photo
- - - - -

boot grub


  • Please log in to reply
58 replies to this topic

#26 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 August 2009 - 09:19 PM

Do you have a command to view it ?


Just boot from your system normally (with the USB disconnected) what do you see?

Something like "GRUB"?
Something like "LILO"?
Something like "SYSLINUX"?
The screenshot you posted before was of a GRUB booting.

jaclaz

#27 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 25 August 2009 - 09:43 PM

On the normal boot (without usb key) I boot to the GRUB.

quickly message before the menu : loading grub stage 1.5

Do you want to view the menu.lst ?

( on the video, you can watch the same menu as my hard drive boot )

I don't known which version of grub I have (hard drive).

thanks for reply :)

#28 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 25 August 2009 - 09:51 PM

See you tomorrow, it's 23h41 on my clock, so good night ! Posted Image

#29 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 25 August 2009 - 09:52 PM

Do you want to view the menu.lst ?

NO.

I do not care :) about WHAT your menu.lst contains, I want to know WHERE it is on your hard disk (so that I can make you use it as configfile from grub4dos).

jaclaz

#30 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 07:35 AM

It is on
/boot/grub/menu.lst


#31 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 26 August 2009 - 08:25 AM

im sorry cartman29 , i went off my computer early last night due to some personal reasons thats why couldn't post back .

bt it seems my teacher has taken over it which is good for both me and u . since i have no idea about legacy grub working .

since u have found ur menu.lst on ur hdd , so it ll be rather easy to chainload it from usb drive .

may be setting the root ll be necessery ,but anyhow i ll wait for jaclaz to reply..

#32 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 09:17 AM

It is on

/boot/grub/menu.lst


Then this should work allright :D:
title boot primary hdd

map (hd1) (hd0)

map (hd0) (hd1)

map --hook

root (hd0,0)

configfile /boot/grub/menu.lst

The only possible exceptions being that you have a gfxmenu in the /boot/grub/menu.lst AND you are using a non-recent grub4dos version (but the screenshot you posted has not a graphical gfxmenu interface).

You should be using version 2009-06-20, get it from here:
http://nufans.net/grub4dos/
http://nufans.net/gr...-2009-06-20.zip

OR that the "legacy" GRUB is a "modified" version by some distro that uses some non-standard command in it's menu.lst. :)

I mean, you should at least be able to see, when booted from USB the same choices you see when booting on hard disk.

So, if it does not work, now is the right time to see what's in there :): please post the contents of that /boot/grub/menu.lst.

@maanu
actually root is already established by the line root (hd0,0), so that shouldn't be the problem. :cheers:

:cheers:

jaclaz

#33 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 10:23 AM

title boot primary hdd

map (hd1) (hd0)

map (hd0) (hd1)

map --hook

root (hd0,0)

configfile /boot/grub/menu.lst

->Filesystem type is ext2s, partition type 0x03
Starting cmain() ... (hd0,0)/message.kde42blue : file not found

*the "/message.kde42blue" is my gfx menu interface*

The only possible exceptions being that you have a gfxmenu in the /boot/grub/menu.lst AND you are using a non-recent grub4dos version (but the screenshot you posted has not a graphical gfxmenu interface).


I don't have or install a gfxmenu on my hard drive, it is just installed on my usbkey.

HERE MY : /boot/grub/menu.lst


The grub version of my usb key is the -> last grub4dos + message
The grub version of my HD is the -> original grub of ubuntu

But when i have installed seven, no grub appears on the boot. Next i have download and burn supergrubdisk and i restore the old grub. hence the name "windows xp" instead of seven.

I hope you understand me :) :D

#34 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 10:47 AM

->Filesystem type is ext2s, partition type 0x03
Starting cmain() ... (hd0,0)/message.kde42blue : file not found

*the "/message.kde42blue" is my gfx menu interface*




I don't have or install a gfxmenu on my hard drive, it is just installed on my usbkey.

HERE MY : /boot/grub/menu.lst


The grub version of my usb key is the -> last grub4dos + message
The grub version of my HD is the -> original grub of ubuntu

But when i have installed seven, no grub appears on the boot. Next i have download and burn supergrubdisk and i restore the old grub. hence the name "windows xp" instead of seven.

I hope you understand me :) :D


NO I don't. :)

There is NO reference to any gfx directive in the menu.lst you posted. :cheers:

Post also the COMPLETE menu.lst you have on the USB stick.

In any case DISABLE for the moment the gfxmenu entry that you have on your USB stick's menu.lst (if any).

However, the mistery should now be solved by the fact that you use of an explicit "root" command in the entries in your menu.lst.
This means that you have TWO internal hard disks, and the Ubuntu is on your second one (hd 1,0) when booted normally. (which becomes (hd2,0) when booted from USB stick)

Try this on the USB stick:
title boot primary hdd

map (hd2) (hd1)

map (hd1) (hd0)

map (hd0) (hd31)

map --hook

root (hd1,0)

configfile /boot/grub/menu.lst

jaclaz

#35 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 11:25 AM

HERE the usb menu.lst

title boot primary hdd

map (hd2) (hd1)

map (hd1) (hd0)

map (hd0) (hd31)

map --hook

root (hd1,0)

configfile /boot/grub/menu.lst

->Booting 'boot primary hdd'
Filesystem type is ntfs, partition type 0x07
configfile /boot/grub/menu.lst

Error 15 : File not found

Press any key to continue...

:D :) :) I'm lost :cheers:

#36 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 12:00 PM

I am lost as well.

What you posted does not make much sense to me. :)

The menu.lst you posted (the one on your disk) says that you have TWO hard disks: (hd0) (containing at least one partition, (hd0,0) for Windows XP or Windows 7, most probably formatted with NTFS filesystem) and a second hard disk (hd1) with at least one partition (hd1,0) containing your Ubuntu files.

If the posted menu.lst (on hard disk) works, when you boot from USB all drives should be shifted by one, i.e. from:
(hd0) <- first internal hard disk
(hd1) <-second hard disk
it should become:
(hd0) <- USB device
(hd1) <- first internal hard disk
(hd2) <-second hard disk


The suggested sequence of command should replicate the same situation as when booting without the USB stick. :D

Or you did use those commands AFTER having already run this entry (from the menu.lst on your USB device):

title boot primary hdd
map (hd1) (hd0)
map (hd0) (hd1)
map --hook
root (hd0,0)
configfile /boot/grub/menu.lst


Try booting from the USB key, DO NOT choose ANY of the entries, just press "c" to enter Command line mode.
type in it:
find --set-root /boot/grub/menu.lst
[ENTER]
Post result.

Type:
geometry &#40;hd0&#41;
[ENTER]
Post result.

geometry &#40;hd1&#41;
[ENTER]
Post result.

geometry &#40;hd2&#41;
[ENTER]
Post result.

Some questions:
  • Do you have one or two internal hard disks?
  • Does the menu.lst on your hard disk work (when booting without the USB stick)?
  • DO ALL of it's entries work?

Try this other way:

Add to the menu.lst on your USB devices these entries:

title Ubuntu 8.10, kernel 2.6.27-11-generic
find --set-root /boot/vmlinuz-2.6.27-11-generic
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
find --set-root /boot/vmlinuz-2.6.27-11-generic
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-9-generic
find --set-root /boot/vmlinuz-2.6.27-9-generic
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
find --set-root /boot/vmlinuz-2.6.27-9-generic
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.24-22-generic
find --set-root /boot/vmlinuz-2.6.24-22-generic
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash
initrd /boot/initrd.img-2.6.24-22-generic
quiet

title Ubuntu 8.10, kernel 2.6.24-22-generic (recovery mode)
find --set-root /boot/vmlinuz-2.6.24-22-generic
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single
initrd /boot/initrd.img-2.6.24-22-generic

title Ubuntu 8.10, memtest86+
find --set-root /boot/memtest86+.bin
kernel /boot/memtest86+.bin
quiet

title Microsoft Windows 7
find --set-root /bootmgr
chainloader /bootmgr


jaclaz

#37 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 12:21 PM

1. Do you have one or two internal hard disks?

   2. Does the menu.lst on your hard disk work &#40;when booting without the USB stick&#41;?

   3. DO ALL of it&#39;s entries work?

1-TWO
2-YES, it works perfectly :D
3-YES, when i boot on my internal disk all ubuntu version and windows works


wait a minute.. not enought energy to take a photo ^^

#38 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 12:25 PM

Posted Image

#39 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 12:33 PM

title Ubuntu 8.10, kernel 2.6.27-11-generic

find --set-root /boot/vmlinuz-2.6.27-11-generic

kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash

initrd /boot/initrd.img-2.6.27-11-generic

quiet



title Ubuntu 8.10, kernel 2.6.27-11-generic &#40;recovery mode&#41;

find --set-root /boot/vmlinuz-2.6.27-11-generic

kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single

initrd /boot/initrd.img-2.6.27-11-generic



title Ubuntu 8.10, kernel 2.6.27-9-generic

find --set-root /boot/vmlinuz-2.6.27-9-generic

kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash

initrd /boot/initrd.img-2.6.27-9-generic

quiet



title Ubuntu 8.10, kernel 2.6.27-9-generic &#40;recovery mode&#41;

find --set-root /boot/vmlinuz-2.6.27-9-generic

kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single

initrd /boot/initrd.img-2.6.27-9-generic



title Ubuntu 8.10, kernel 2.6.24-22-generic

find --set-root /boot/vmlinuz-2.6.24-22-generic

kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro quiet splash

initrd /boot/initrd.img-2.6.24-22-generic

quiet



title Ubuntu 8.10, kernel 2.6.24-22-generic &#40;recovery mode&#41;

find --set-root /boot/vmlinuz-2.6.24-22-generic

kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=5368b520-375b-4c92-8bb8-82140cc3e76d ro single

initrd /boot/initrd.img-2.6.24-22-generic



title Ubuntu 8.10, memtest86+

find --set-root /boot/memtest86+.bin

kernel /boot/memtest86+.bin

quiet



title Microsoft Windows 7

find --set-root /bootmgr

chainloader /bootmgr

THIS WORKS BUT I want to "stay" on the grub of the internal disk drive.

#40 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 12:54 PM

Well, I told you to use grub4dos 2009-06-20 and you are using 2009-01-04. :)

However, from the screenshot it seems like grub4dos recognizes the hard disk that grub "sees" as (hd1,0) as (hd0,0) (the one with Ubuntu).
Then the other hard disk (the one with Windows 7) most probably is (hd1,0) and the USB stick is (hd2,0) (or viceversa).
Are you sure that this happens when booting from USB stick and pressing "c", without any previous drive re-mapping in grub4dos?


This is EXTREMELY strange. :D Maybe the particular BIOS of your motherboard does not set like the vast majority of BIOSes the "boot" drive (the USB stick) as "first drive", i.e. 0x80 or (hd0). :)

Since the grub entries you have on the menu.lst are hard coded to (hd1,0), this should work allright:

map (hd0) (hd1)
map (hd1) (hd0)
map --hook
root (hd1,0)
configfile /boot/grub/menu.lst


jaclaz

#41 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 01:07 PM

Well, I told you to use grub4dos 2009-06-20 and you are using 2009-01-04.


->oups ^^ almost the new version :D :)

the USB stick is (hd2,0)


->my usb stick is a fat32 partition, not a ntfs :) (look the photo)

map (hd0) (hd1)
map (hd1) (hd0)
map --hook
root (hd1,0)
configfile /boot/grub/menu.lst


->

Filesystem type is fat, partition type 0x0C
configfile /boot/grub/menu.lst

Error 15 : File not found

Press any key to continue...



#42 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 01:19 PM

There must be a communication problem.

The screenshot that you posted, that you were told to take when booting from USB and pressing "c", says that you have three drives:
  • (hd0) with 4 partitions in it (the one you have Ubuntu on)
  • (hd1) a drive with a partition bigger than 8 Gb NTFS
  • (hd2) a drive with a partition bigger than 8 Gb NTFS

the result of the last set of commands says that you have:
  • (hd0) a FAT32 partition (your USB stick)
  • (hd1) something else
  • (hd2) something else
thus, since the grub commands exchanged (hd0) with (hd1) , the hd1 drive becomes the USB stick, and of course /boot/grub/menu.lst is NOT found.

Let's try again.

Use the exact version of grub4dos I told you to on the USB stick.
Rename the /menu.lst on the USB stick to /menu.lst.old.

You should land "automatically" to grub4dos command line.

In it type:
find --set-root  /boot/grub/menu.lst
[ENTER]

root
[ENTER]

find --set-root  /menu.lst.old
[ENTER]

root
[ENTER]

find --set-root  /bootmgr
[ENTER]

root
[ENTER]


Report the output. of each of the above commands.

jaclaz

#43 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 01:46 PM

Posted Image

on the top of the lcd :

GRUB4DOS 0.4.4 2009-06-20, Memory : 638K / 2045M, MenuEnd : 0x49245

#44 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 04:04 PM

OK. :ermm:

So, without remapping:
(hd0) is the USB stick
(hd1) is the internal hard disk with Ubuntu
(hd2) is the internal hard disk with Windows 7

Thus, you need not to re-map anything.

Simply try, when booting from USB:
configfile &#40;hd1,0&#41;/boot/grub/menu.lst

It is strange that when booted from USB the drive with Ubuntu gets (hd1,0) exactly as it has when booting from hard disk and the drive with Windows 7 becomes (hd2,0) instead of (hd0,0), but this is what appears to be happening.


Hey, wait a minute, a laptop with two hard disks?

How are they connected?

jaclaz

#45 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 04:09 PM

Hey, wait a minute, a laptop with two hard disks?


A200-25b toshiba

#46 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 04:29 PM

both on sata

#47 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 26 August 2009 - 06:06 PM

Still strange, maybe a "queer" behaviour of the particular Toshiba BIOS.

But did the latest commands (without re-mapping) work?

jaclaz

#48 cartman29

cartman29

    Member

  • Members
  • 32 posts
  •  
    France

Posted 26 August 2009 - 07:25 PM

But did the latest commands (without re-mapping) work?


Yes it works fine :ermm:

But this usb key is for me a rescue key, so it isn't be the good solution for me.

-> I go to rescue many computers whith and whithout grub or liloo installed on the internal(s) hard drive(s)...

Your last command works good but just on my computer.

#49 maanu

maanu

    Gold Member

  • Advanced user
  • 1134 posts
  •  
    Pakistan

Posted 26 August 2009 - 08:47 PM

ooh boy ..

did u even try to read the guide i pointed in first page ?

btw the best option is to reboot , change bios settings and then straight to hdd :ermm:

#50 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 27 August 2009 - 08:44 AM

Yes it works fine :frusty:

But this usb key is for me a rescue key, so it isn't be the good solution for me.

-> I go to rescue many computers whith and whithout grub or liloo installed on the internal(s) hard drive(s)...

Your last command works good but just on my computer.


Well, you can use directly:
root &#40;hd1,0&#41;

chainloader +1

the problem was simply to find out which drive the internal hard disk got.

by now you should be familiar on how to find out that in command line.

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users