LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-15-2006, 11:45 AM   #1
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Rep: Reputation: 23
Open Solaris Grub Error


I have installed Open Solaris (Belenix) from Linux Format May 2006 magazine. The DVD was a live distribution of Belenix which I installed from a terminal using hdinstaller.

After install the system does not boot and I am left with a grub error message

Grub Loading Stage2R Error

( I have no idea what this means?)
I am multibooting linux, FreeBSD and WinXP, I have set aside primary partition 2 (8G)for Solaris and sliced this up as follows

c0d0s1 / 6G
c0d0s2 /swap 512M
c0d0s3 /home 1.5G

This partioning was performed by the install program.

I wiped the MBR clean and reinstalled linux grub, the following stanza is used to boot Solaris

title Solaris
rootnoverify (hd0,1)
makeactive
chainloader +1

This still gives me the same error as when Solaris Grub was installed on the MBR.
If I try and mount my Solaris partition from lwinthin linux
cat /etc/fstab
/dev/hda2 /media/solaris ufs ufstype=sunx86,ro 0 0

with mount /media/solaris
the following error is craeted in dmesg

ufs_read_super: bad magic number

I'm not sure if I have a corrupted filesystem or just a bad boot loader line, thanks in advance for any help.
 
Old 07-15-2006, 12:39 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Are you sure /dev/hda2 is the ufs root file-system ?

I would expect it to be something like hda5 or more, depending on the actual partitions, extended partitions and slices present on your disk.

Also, Solaris grub recognize UFS, while I believe Linux one doesn't (yet).
 
Old 07-15-2006, 12:57 PM   #3
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by jlliagre
Are you sure /dev/hda2 is the ufs root file-system ?

I would expect it to be something like hda5 or more, depending on the actual partitions, extended partitions and slices present on your disk.

Also, Solaris grub recognize UFS, while I believe Linux one doesn't (yet).

Yes I'm absolutely certain hda2 is my Solaris partition, the slicing and fdisk are different to linux from from linux fdisk

orac:/home/anc # fdisk -l /dev/hda
Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 7649 61440561 7 HPFS/NTFS
/dev/hda2 * 7650 8669 8193150 bf Solaris
/dev/hda3 8670 10194 12249562+ a5 FreeBSD
/dev/hda4 10195 19929 78196387+ 5 Extended
/dev/hda5 10195 10204 80293+ 83 Linux
/dev/hda6 10205 10255 409626 82 Linux swap / Solaris
--snip

partition 2 is type bf. Partition 2 is in 3 slices, /, /swap and /home so I may have incorrectly described the partitions earlier. I think I'll download Solaris 10 from Sun.com
meanwhile. Thanks for your help
 
Old 07-15-2006, 01:44 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by hal8000b
Yes I'm absolutely certain hda2 is my Solaris partition, the slicing and fdisk are different to linux from from linux fdisk

orac:/home/anc # fdisk -l /dev/hda
Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 7649 61440561 7 HPFS/NTFS
/dev/hda2 * 7650 8669 8193150 bf Solaris
/dev/hda3 8670 10194 12249562+ a5 FreeBSD
/dev/hda4 10195 19929 78196387+ 5 Extended
/dev/hda5 10195 10204 80293+ 83 Linux
/dev/hda6 10205 10255 409626 82 Linux swap / Solaris
--snip

partition 2 is type bf. Partition 2 is in 3 slices, /, /swap and /home so I may have incorrectly described the partitions earlier. I think I'll download Solaris 10 from Sun.com
meanwhile. Thanks for your help
You are confusing the Solaris2 partition (0xbf) which doesn't hold a filesystem and its slices, which may or may not do it.

Is ufs support set in your Linux kernel ?

What reports your system at boot time when exploring the disks (dmesg) ?
 
Old 07-17-2006, 12:00 PM   #5
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by jlliagre
You are confusing the Solaris2 partition (0xbf) which doesn't hold a filesystem and its slices, which may or may not do it.

Is ufs support set in your Linux kernel ?

What reports your system at boot time when exploring the disks (dmesg) ?


Hi Thanks for your help :

anc@orac:~> dmesg | grep hda
Kernel command line: root=/dev/hda7 vga=0x31a resume=/dev/hda6 splash=silent
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hdaMA, hdbMA
hda: Maxtor 6Y160P0, ATA DISK drive
hda: max request size: 512KiB
hda: 320173056 sectors (163928 MB) w/7936KiB Cache, CHS=19929/255/63, UDMA(100)
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 hda16 hda17 hda18 hda19 hda20 hda21 hda22 hda23 >
hda2: <solaris: [s0] hda24 [s1] hda25 [s2] hda26 [s3] hda27 >
hda3: <bsd: hda28 hda29 hda30 >
ReiserFS: hda7: found reiserfs format "3.6" with standard journal
--snip--

You are correct, slices are new to me, I am thinking of slices as (part of a partition).
Thanks again if you can help, my linux boot partition is /dev/hda5 (type ext2), as a footnote,
I can mount and read a freebsd partition from linux, but I know its not the same as solaris,
I am using Suse10.1 with the stock kernel and ufs support is compiled as a kernel module.

orac:/home/anc # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/hda7 reiserfs 6.1G 3.7G 2.5G 60% /
udev tmpfs 252M 276K 252M 1% /dev
/dev/hda5 ext2 76M 6.8M 66M 10% /boot
/dev/hda8 reiserfs 2.1G 1.5G 612M 71% /home
/dev/hda3 ufs 6.8G 2.7G 3.7G 42% /media/freebsd

Last edited by hal8000b; 07-17-2006 at 12:03 PM.
 
Old 07-17-2006, 12:43 PM   #6
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 194

Original Poster
Rep: Reputation: 23
I can mount Solaris from Linux bit not boot:

Ok thanks again for your help, I now realise my Solaris partitions are mapped differently in
linux:

hda2: <solaris: [s0] hda24 [s1] hda25 [s2] hda26 [s3] hda27 >

To recap primary partition 2 is Solaris (type bf)
I set slice 1 / (6G) slice2 /home and slice 3 as swap


The following line in my linux fstab allows me to mount my Solaris / partition mapped to hda24:

/dev/hda24 /media/solaris ufs ufstype=sunx86,ro 0 0

orac:/media/solaris/boot # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/hda24 ufs 5.8G 4.8G 1011M 83% /media/solaris

If I now browse to solaris boot I have the following files:
orac:/media/solaris/boot # ls -lh
total 7.5M
dr-xr-xr-x 3 root root 512 2006-03-06 14:18 acpi
-r--r--r-- 1 root root 1.7M 2006-03-03 14:49 gentoo
-r--r--r-- 1 root root 3.9M 2006-03-03 14:49 gentoo.igz
dr-xr-xr-x 2 root root 512 2006-03-07 09:37 grub
-r--r--r-- 1 root root 135K 2006-03-03 14:08 initrd.gz
-r--r--r-- 1 root root 93K 2006-03-03 14:08 memtest86
dr-xr-xr-x 4 root root 512 2006-07-15 11:36 solaris
-r--r--r-- 1 root root 1.8M 2006-03-03 14:08 vmlinuz2

I have a feeling that my grub men.lst is wrong which is why I cant boot solaris. The solaris
menu.lst file is empty 0 bytes


Currently this line is in my linux menu.lst file for booting solaris
title Solaris
rootnoverify (hd0,1)
makeactive
chainloader +1

and results in error message: Grub Loading Stage2R Error

Which is my Solaris kernel, is it vmlinuz2? and can I use an alternate line to boot Solaris?
Thanks in advance
 
Old 07-17-2006, 02:17 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,784

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The problem is not that much your menu.lst, but the solaris /boot directory, which looks having been corrupted by some gentoo grub installation.

Here is its content on my laptop:

Code:
pcjll:/boot $ ls -l
total 100166
drwxr-xr-x   3 root     sys          512 Dec  3  2005 acpi
drwxr-xr-x   3 root     sys          512 Dec 11  2005 grub
-r-xr-xr-x   1 root     root      104728 Dec  3  2005 multiboot
drwxr-xr-x   4 root     sys          512 Jun  1 09:30 solaris
-rw-r--r--   1 root     sys       309405 Nov  9  2005 solaris.xpm
-r--r--r--   1 root     root    50804369 Dec  3  2005 x86.miniroot-safe
and the corresponding menu.lst
Code:
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris Nevada snv_27a X86
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------
 
  


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
Linux GRUB and Solaris 10 1/06 GRUB zillah Linux - Newbie 8 03-29-2006 03:29 AM
where to get different builds of open solaris ?? alred Solaris / OpenSolaris 8 03-19-2006 04:41 PM
How to open a port number in solaris UltraSoul Solaris / OpenSolaris 3 07-25-2005 04:58 PM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM
solaris 10 is going open-source!! name_in_use450 Solaris / OpenSolaris 14 03-03-2005 10:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:17 AM.

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
Open Source Consulting | Domain Registration