niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris
GRUB multiboot problem
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Hank Zoeller
*nix forums beginner


Joined: 02 Mar 2005
Posts: 22

PostPosted: Wed Jun 07, 2006 1:14 am    Post subject: Re: GRUB multiboot problem Reply with quote

Paul Floyd wrote:
Quote:

sudo dd if=/dev/rdsk/c0t1d0p2 of=/tmp/bootsec count=1
(change c0t1d0p2 to suit your disk, it should still end with p2 though).

then open /tmp/bootsec with a hex editor (e.g., /opt/sfw/kde/bin/khexedit).
The last two bytes should be 55 aa. If they aren't then things are
seriously wrong - the start if the partition isn't a boot sector.

Well, Sir, it looks like I am well and truly HOSED. All 512 bytes of
that sector are 0x00. So, I guess I get to start over. Sigh...

Still, I can't help but wonder how I ended up in this little mess..

Thanks for all your help, Paul.
--
HZ
Back to top
Mike T.
*nix forums Guru Wannabe


Joined: 20 Feb 2005
Posts: 245

PostPosted: Tue Jun 06, 2006 8:01 pm    Post subject: Re: GRUB multiboot problem Reply with quote

On Mon, 05 Jun 2006 17:42:13 -0600, Hank Zoeller
<bogusaddress@dontbothernotvalid.com> wrote:
Quote:

MBR 0 36991 MB Type BFh/191
MBR 1 39284 MB Solaris Boot
MBR 3 39 MB FAT-16

Which does not seem to agree with what the Solaris fdisk told me (above).


If you know your way around the partition table, you could give this a
go: http://paulf.free.fr/pfdisk.html

Nice job! Here's what I see using pfdisk:

----Start---- -----End----- -------LBA---------
Part State Cyl Hd Sect Type Cyl Hd Sect Start Length
1 128 0 64 1 191 1022 254 63 4032 75757248
2 0 1022 254 63 190 1022 254 63 75761280 80454528
3 0 1022 254 63 14 1022 254 63 156219840 80640

Your 'Solaris Boot' partition (type 190) should probably be either NTFS
IFS (type 7) or FDISK_EXT_WIN (type 12).

It's possible that the Solaris partition overlapped the 2nd partition.
As a quick check, you can do something like

sudo dd if=/dev/rdsk/c0t1d0p2 of=/tmp/bootsec count=1

(change c0t1d0p2 to suit your disk, it should still end with p2 though).

then open /tmp/bootsec with a hex editor (e.g., /opt/sfw/kde/bin/khexedit).
The last two bytes should be 55 aa. If they aren't then things are
seriously wrong - the start if the partition isn't a boot sector.

A bientot
Paul
--
Paul Floyd http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
Back to top
Hank Zoeller
*nix forums beginner


Joined: 02 Mar 2005
Posts: 22

PostPosted: Mon Jun 05, 2006 11:42 pm    Post subject: Re: GRUB multiboot problem Reply with quote

Paul Floyd wrote:
Quote:
On Mon, 05 Jun 2006 12:23:49 -0600, Hank Zoeller wrote:
fdisk shows me:
Partition Type Cyl
1 Solaris2 1 - 18789
2 x86boot 18790 - 38743
3 BIG-DOS 38745 - 38764


This looks wrong. I'd expect the x86boot partition to be small, and the
Windows partition to be large. You seem to have about 20K cylinders for
x86boot and 19 cylinders for Windows. I'd expect those sizes to be the
other way around.

Yes, it is the other way around. The Windows XP install is in partition
2 which is marked as "x86boot". Partition 3 is a little 40 MB partition
that is formatted as FAT-16 and not yet in use. I created it thinking
I'd be able to use it to transfer data between the Solaris and Windows
intallations. It's empty.

Now, looking at the MBR from a DOS based utility it shows:

MBR 0 36991 MB Type BFh/191
MBR 1 39284 MB Solaris Boot
MBR 3 39 MB FAT-16

Which does not seem to agree with what the Solaris fdisk told me (above).


Quote:
If you know your way around the partition table, you could give this a
go: http://paulf.free.fr/pfdisk.html

Nice job! Here's what I see using pfdisk:

----Start---- -----End----- -------LBA---------
Part State Cyl Hd Sect Type Cyl Hd Sect Start Length
1 128 0 64 1 191 1022 254 63 4032 75757248
2 0 1022 254 63 190 1022 254 63 75761280 80454528
3 0 1022 254 63 14 1022 254 63 156219840 80640

BTW, when I run 'Diagnosis' everything looks OK except the "CHS Matches
LBA" screen which reports a mismatch and offers to correct it by writing
the LBA data into the CHS.


Quote:
Otherwise, is the Windows partition readable from Solaris (or from a
bootable DOS/Windows/Linux/etc ployy/CD/DVD)?

Booting from a repair disk I find that all the Windows based tools no
longer like the MBR. They offer to fix the problem for me..

It appears to me that the existing (and formerly working) Windows
installation now has a different file system type -- 191. Not sure why
or what I did during the Solaris installation that got me to this place.
--
HZ
Back to top
Hank Zoeller
*nix forums beginner


Joined: 02 Mar 2005
Posts: 22

PostPosted: Mon Jun 05, 2006 8:46 pm    Post subject: Re: GRUB multiboot problem Reply with quote

Bruce Porter wrote:
Quote:
Did you explicitly ask for and x86boot partition ? Not needed

No, I didn't ask for that during the install of Solaris -- it is the
existing Windows partition. (That's not to say that I didn't make some
other mistake during the Solaris installation.)


Quote:
3 BIG-DOS 38745 - 38764

Presumable the XP partition

No, it's a little partition I intend to format such that both Solaris
and Windows can read/write to it -- I'll use it for transferring data
back and forth between sessions..


Quote:
/boot/grub/menu.lst surely

Yes, quite so.


Quote:
Try

title Windows
rootnoverify (hd0,2)
chainloader +1

Thanks for the idea but no joy. I'm still getting the "Error 13:
Invalid or unsupported executable format" message.
--
HZ
Back to top
Bruce Porter
*nix forums Guru Wannabe


Joined: 21 Oct 2005
Posts: 150

PostPosted: Mon Jun 05, 2006 7:52 pm    Post subject: Re: GRUB multiboot problem Reply with quote

On Mon, 05 Jun 2006 12:23:49 -0600, Hank Zoeller wrote:

Quote:
I have a Ferrari 3400 laptop that I have set up with 3 partitions, two
(roughly) 40 GB and one a few hundred MB. I installed Windows XP into
one partition and got it running OK. Then, I installed Solaris 01/06
into the other.

Solaris runs great but there is no Windows option given at boot time.

fdisk shows me:
Partition Type Cyl
1 Solaris2 1 - 18789
2 x86boot 18790 - 38743

Did you explicitly ask for and x86boot partition ? Not needed

Quote:
3 BIG-DOS 38745 - 38764

Presumable the XP partition

Quote:

/boot/menu.lst looks like this

/boot/grub/menu.lst surely

Quote:
...
title Solaris 10 1/06 s10x_u1wos_19a X86
root (hd0,0,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

title Solaris failsafe
root (hd0,0,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe

# Unknown partition of type 6 found on /dev/rdsk/c1d0p0 partition: 3
# It maps to the GRUB device: (hd0,2) .

Not seeing anything about the second partition, I added:
title WinXP
root (hd0,1)
chainloader +1

Try

title Windows
rootnoverify (hd0,2)
chainloader +1

Quote:

But, when I select that at boot time my reward is an "Error 13: Invalid
or unsupported executable format" message.

Any ideas?

Thank you,

--
Bruce

"The internet is a huge and diverse community and
not every one is friendly"
http://www.ytc1.co.uk
Back to top
Mike T.
*nix forums Guru Wannabe


Joined: 20 Feb 2005
Posts: 245

PostPosted: Mon Jun 05, 2006 7:52 pm    Post subject: Re: GRUB multiboot problem Reply with quote

On Mon, 05 Jun 2006 12:23:49 -0600, Hank Zoeller
<bogusaddress@dontbothernotvalid.com> wrote:
Quote:
I have a Ferrari 3400 laptop that I have set up with 3 partitions, two
(roughly) 40 GB and one a few hundred MB. I installed Windows XP into
one partition and got it running OK. Then, I installed Solaris 01/06
into the other.

Solaris runs great but there is no Windows option given at boot time.

fdisk shows me:
Partition Type Cyl
1 Solaris2 1 - 18789
2 x86boot 18790 - 38743
3 BIG-DOS 38745 - 38764

This looks wrong. I'd expect the x86boot partition to be small, and the
Windows partition to be large. You seem to have about 20K cylinders for
x86boot and 19 cylinders for Windows. I'd expect those sizes to be the
other way around.

Quote:
/boot/menu.lst looks like this
...
title Solaris 10 1/06 s10x_u1wos_19a X86
root (hd0,0,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

title Solaris failsafe
root (hd0,0,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe

# Unknown partition of type 6 found on /dev/rdsk/c1d0p0 partition: 3
# It maps to the GRUB device: (hd0,2) .

Not seeing anything about the second partition, I added:
title WinXP
root (hd0,1)
chainloader +1

But, when I select that at boot time my reward is an "Error 13: Invalid
or unsupported executable format" message.

That would be

root (hd0,2)

if what fdisk prints is true.

If you know your way around the partition table, you could give this a
go: http://paulf.free.fr/pfdisk.html

Otherwise, is the Windows partition readable from Solaris (or from a
bootable DOS/Windows/Linux/etc ployy/CD/DVD)?

A bientot
Paul
--
Paul Floyd http://paulf.free.fr (for what it's worth)
Surgery: ennobled Gerald.
Back to top
Hank Zoeller
*nix forums beginner


Joined: 02 Mar 2005
Posts: 22

PostPosted: Mon Jun 05, 2006 6:23 pm    Post subject: GRUB multiboot problem Reply with quote

I have a Ferrari 3400 laptop that I have set up with 3 partitions, two
(roughly) 40 GB and one a few hundred MB. I installed Windows XP into
one partition and got it running OK. Then, I installed Solaris 01/06
into the other.

Solaris runs great but there is no Windows option given at boot time.

fdisk shows me:
Partition Type Cyl
1 Solaris2 1 - 18789
2 x86boot 18790 - 38743
3 BIG-DOS 38745 - 38764

/boot/menu.lst looks like this
....
title Solaris 10 1/06 s10x_u1wos_19a X86
root (hd0,0,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

title Solaris failsafe
root (hd0,0,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe

# Unknown partition of type 6 found on /dev/rdsk/c1d0p0 partition: 3
# It maps to the GRUB device: (hd0,2) .

Not seeing anything about the second partition, I added:
title WinXP
root (hd0,1)
chainloader +1

But, when I select that at boot time my reward is an "Error 13: Invalid
or unsupported executable format" message.

Any ideas?

Thank you,
--
HZ
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 6:04 am | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Cell Phones | Credit Counseling | Loans | Loans | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2697s ][ Queries: 20 (0.1552s) ][ GZIP on - Debug on ]