Skip to contentSkip to conversation

Dual Boot

DISCUSSION William Bradley 4 participants 4 messages Apr 1, 1999 – Apr 3, 1999

lore
Share & tools
lore
#0 lore raw

Is it possible to setup dual boot for Solaris and Linux with two drives? The Sun page gives instructions but only mentions partitioning one drive.
Has anyone messed with this?

#1 lore raw
Quoted 4 lines · William Bradley

Is it possible to setup dual boot for Solaris and Linux with two drives? The Sun page gives instructions but only mentions partitioning one drive.
Has anyone messed with this?

It works fine for me

ok boot disk3 2.2.5^M
Boot device: /pci@1f,4000/scsi@3/disk@3,0 File and args: 2.2.5^M SILO ^M
Uncompressing image...^M \^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^ H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H| ^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H \^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^ H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H| ^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H \^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^ H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H^M Booting Linux...^M
PROMLIB: Sun IEEE Boot Prom 3.9.5 1997/04/11 10:03^M
Linux version 2.2.5 ([email protected]) (gcc version egcs-2.92.11 19980921
(gcc2 ss-980609 experimental)) #8 Wed Mar 31 10:56:26 PST 1999^M
ARCH: SUN4U^M
Ethernet address: 08:00:20:82:62:f3^M
Calibrating delay loop... 591.46 BogoMIPS^M
Memory: 191528k available (1240k kernel code, 2888k data, 112k init) [fffff80000
000000,fffff80023f32000]^M
POSIX conformance testing by UNIFIX^M
PCI: Probing for controllers.^M
PCI: Found PSYCHO version 0x3, main regs at fffff9fe00000000^M
PSYCHO: PCI config space at fffff9fe01000000^M

....

k boot disk0 /platform/sun4u/kadb -v^M
Boot device: disk0:a File and args: /platform/sun4u/kadb -v^M |^HSize: 158838+/^H-^H\^H|^H/^H240295+-^H\^H|^H/^H-^H\^H|^H184857 Bytes^M
kadb: kernel/sparcv9/unix^M
/^HSize:
-^H\^H|^H/^H-^H\^H|^H446164+/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H1 15040+\^H|^H/^H-^H159224 Bytes^M \^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H/platform/sun4u/kernel/sparcv9/unix loaded - 0x
f8000 bytes used^M -^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^ H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\
^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^Hcpu0:
SUNW,UltraSPARC
-II (upaid 0 impl 0x11 ver 0x11 clock 296 MHz)^M
^MSunOS Release 5.7 Version Generic 64-bit [UNIX(R) System V Release 4.0]^M
Copyright (c) 1983-1998, Sun Microsystems, Inc.^M
DEBUG enabled^M \^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^Hobpsym:
symbolic
debugging is available.^M

|^H/^H-^H\^H|^HRead 141852 bytes from misc/forthdebug^M
/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^
H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-
^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^H
/^H-^H\^H|^H/^H-^H\^H|^H/^H-^H\^H|^Hmem = 195616K (0xbf08000)^M

avail mem = 172449792^M
Ethernet address = 8:0:20:82:62:f3^M
root nexus = Sun Ultra 30 UPA/PCI (UltraSPARC-II 296MHz)^M pci0 at root: UPA 0x1f 0x4000^M
pci0 is /pci@1f,4000^M
pci1 at root: UPA 0x1f 0x2000^M
pci1 is /pci@1f,2000^M
/pci@1f,4000/scsi@3 (glm0):^M^M

        Rev. 3 Symbios 53c875 found.^M^M^M
#2 lore raw
In reply to William Bradley

William,

The dual boot instructions are on that site because it is a little more complicated to set up a single disk for dual boot. It is primarily directed to the Ultra5 which only has one disk. In fact, the disk druid provided in UltraPenguin shows you all the disks and existing partitions and gives you the flexibility to put bootable OS's wherever you want to. The dual boot instructions discuss how to specify which partition you want to boot from; using separate disks has generally been the easiest way to provide multiple boot options.

David
------

Quoted 10 lines

Date: Thu, 01 Apr 1999 18:12:28 +0000
From: William Bradley <[email protected]>
X-Accept-Language: en
MIME-Version: 1.0
To: Ultalinux <[email protected]>
Subject: Dual Boot
Content-Transfer-Encoding: 7bit
X-Loop: [email protected]
X-Orcpt: rfc822;ultralinux-outgoing

Quoted 4 lines

Is it possible to setup dual boot for Solaris and Linux with two drives? The Sun page gives instructions but only mentions partitioning one drive.
Has anyone messed with this?

David Andrew Tel: 781-442-2316 Internal: 22316
Market Development Engineer - I/O Technologies FAX: 781-442-1520
Sun Microsystems, 1 Network Drive - M/S UBUR01-203, Burlington, MA 01803
e-mail: [email protected]

#3 lore raw
In reply to William Bradley
Quoted 7 lines

Date: Thu, 01 Apr 1999 18:12:28 +0000
From: William Bradley <[email protected]>
To: Ultralinux <[email protected]>

Is it possible to setup dual boot for Solaris and Linux with two drives? The Sun page gives instructions but only mentions partitioning one drive.

As Matthew and David said, it's no problem. The Sun page will also give you the description for one disk and booting from the monitor mode using aliases. If you want to make a dual boot from a single disk using SILO, you will have to read the following description. It's a hack and it does NOT work using root directories on separate disks. I sent it to Jakub and another guy who was interested in it on the 24.Mar.'99, but haven't heard anything from them yet. So, here we go:

----- Begin Included Message -----

...

it might interest you, that I managed to hack SILO 0.8.5 in such a way, that I can use it for booting Solaris as well as UltraPenguin. The work is based on up-1.1.9.iso CD-ROM from Feb 23 19:20 as found at ftp://sunsite.mff.cuni.cz in the directory OS/Linux/Non-x86/Sparc/ultrapenguin-devel/cdimages/ Following changes were necessary:

.../silo-0.8.5/second/

# diff file.c.orig file.c
643c643
<             if (ufs_namei (fs, root, cwd, "ufsboot", &sinode)) {
---
Quoted 1 line
            if (ufs_namei (fs, root, cwd, "/ufsboot", &sinode)) {

#

# diff main.c.orig main.c
862a863,878
Quoted 8 lines
if (solaris) {
    int i;
    unsigned long sa = (unsigned long)&_start;

    for (i = 0; i < hp.f->e_phnum; i++, p++) {
        if (p->p_vaddr < 0x4000 + image_len || p->p_vaddr + p->p_memsz >= sa) {
            fatal("Unable to handle your Solaris `ufsboot' bootloader.");
            prom_halt ();
Quoted 8 lines
        }
        memcpy ((Elf64_Addr *)(p->p_vaddr), (Elf64_Addr *)(0x4000 + p->p_offset), p->p_filesz);
        if (p->p_filesz < p->p_memsz)
            memset ((Elf64_Addr *)(p->p_vaddr + p->p_filesz), 0, p->p_memsz - p->p_filesz);
    }
    isfile = 1;
    ret_offset = hp.f->e_entry;
} else {

882a899

Quoted 1 line

}

#

Told in a few words: There is a problem with missing/additional "/" at the beginning of a file-path and there is some code missing in the ELF64 area. (I took out some leading blanks to fit the main.c text in, but I still suppose that it will get mangled in the transit. Apart from a few casts it corresponds to the code in ELF32 area.)

The configuration file looks as follows:

# cat /etc/silo.conf
timeoutP
partition=2
root=/dev/sda2
image=/boot/vmlinux-2.2.2.gz
        label=linux
        initrd=/boot/initrd-2.2.2.img
        read-only
image=1//platform/sun4u/kernel/unix
        label=solaris
        solaris
#

Note again the double-slash in Solaris "image" line - NOT necessary if you type at prompt!

The disk is organised so, that the first partition (128MB) is Solaris "/", second partition (128MB) is UltraPenguin "/".

UltraPenguin installation was done after Solaris with "bootloader: MasterBootRecord (/dev/sda)".

Under Solaris the file /platform/sun4u/ufsboot was copied to "/".

The machine is Sun Ultra 60 Creator 3D, 128MB, 2*9GB, 360 MHz. Solaris is Solaris 7.

Hmm. I suppose that's all.

Perhaps once more: It's a hack. I don't really understand the "problem of missing slash" and the compiler is warning me about the casts. But it's working. :-)

...

----- End Included Message -----

Regards, George

------------------------------------------------------------------------------
George M.Sigut, ETH Informatikdienste, Anwenderunterstuetzung, CH-8092 Zurich
Swiss Federal Institute of Technology, Computing Services, User Support
email: [email protected] Phone: +41 1 632 5763 Fax: +41 1 632 1312

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

if my regular address does not work, try "[email protected]" <<<<<<<<

------------------------------------------------------------------------------