Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pulling hair out. Cannot boot Sunblade 100 with Silo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Thu Apr 29, 2004 10:27 pm    Post subject: Pulling hair out. Cannot boot Sunblade 100 with Silo Reply with quote

Ill start it off with my setup info:

/boot/silo.conf
partition = 1
root = /dev/hda4
timeout = 150
image = /boot/image
label = Gentoo

Code:
Disk /dev/hda (Sun disk label): 16 heads, 63 sectors, 16383 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/hda1             0        62     31248   83  Linux native
/dev/hda2  u         62      2046    999936   82  Linux swap
/dev/hda3             0     16383   8257032    5  Whole disk
/dev/hda4          2046     16383   7225848   83  Linux native



My Drive:
http://www.search4hardware.com/3/p_3_192_Maxtor_91536U2.html

I run the following for Silo:
silo -C /boot/silo.conf -f

What I have tried at the OK prompt:

boot disk0:a-d
boot disk0:1-4
(and a few more variations)

Version of Silo I have tried:
silo-1.3.1-r1 (current silo)
silo-1.4.4

Number of times typing boot cdrom:
:evil: :wink:

If anyone has any clues or advise, please help. Thanks!
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Thu Apr 29, 2004 11:57 pm    Post subject: Reply with quote

What error are you getting?
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Fri Apr 30, 2004 4:14 pm    Post subject: Reply with quote

Bad magic number in disk label
Can't open disk label package
Can't open boot device

Go figure I forget to put the error i got ;)
Back to top
View user's profile Send private message
mbartsch
n00b
n00b


Joined: 30 Apr 2004
Posts: 8

PostPosted: Fri Apr 30, 2004 9:15 pm    Post subject: Re: Pulling hair out. Cannot boot Sunblade 100 with Silo Reply with quote

StealthLlama wrote:
Ill start it off with my setup info:

I run the following for Silo:
silo -C /boot/silo.conf -f

What I have tried at the OK prompt:

boot disk0:a-d
boot disk0:1-4



can you try just to run:
silo
and tell
boot disk0

(At least that help me when i try to boot my U2 this morning , {note i'm also a new on gentoo sparc :) )

i just configure silo.conf as follows:
Code:

default = linux
root = /dev/sdb1
timeout = 10
image = 2/kernel-2.4.26-sparc
        append="root=/dev/ram0 real_root=/dev/sdb1 init=/linuxrc"
        initrd=2/initrd-2.4.26-sparc
        root=/dev/sdb1
        label = linux

my boot disk is the second machine disk, so in you case you should use something like:
Code:

partition = 1
root = /dev/hda4
default = Gentoo
timeout = 150
              image = 1/image
              label = Gentoo


assuming
hda4 = /
hda1 = /boot
also i assume that image is under /boot/image when booting linux

also, the hda disk used to have solaris or is a new disk pulled from a X86 machine?
those disk label error i had seen them with solaris after do:
Code:

dd if=/dev/zero of=/dev/dsk/c0t0d0s2
(Don't try this at home :) )
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Fri Apr 30, 2004 9:39 pm    Post subject: Reply with quote

It IS a harddrive pulled from an X86 machine, and the strange thing is that when I do:

dd if=/dev/hda1 count=10 | strings

I see SILO99! so I assume that silo has been written to the disk.

I keep wondering if its the sun disk label that is causing me all these problems.

thanks for the responses!
Back to top
View user's profile Send private message
mbartsch
n00b
n00b


Joined: 30 Apr 2004
Posts: 8

PostPosted: Fri Apr 30, 2004 10:01 pm    Post subject: Reply with quote

if you had a solaris installed try to use format to "label" the disk. when i install the disk was first partitioned with solaris format. sun openboot expect a "solaris label" on the disk it is booting from, is like pc bios expecting a valid mbr.
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Fri Apr 30, 2004 10:10 pm    Post subject: Reply with quote

In fdisk there is a sundisklabel option which i used to create the label by specifying Sectors, Cylinders, and Heads. These were not a problem to configure. The only problem is that it asked questions like Interleave factor, alternate cylinders, and number of extra sectors per cylinders which i didnt know and selected the default values. i could not even find the answer to those questions when looking up the disk specs online. Im wondering if this is the root of my problem.
Back to top
View user's profile Send private message
mbartsch
n00b
n00b


Joined: 30 Apr 2004
Posts: 8

PostPosted: Fri Apr 30, 2004 10:20 pm    Post subject: Reply with quote

try solaris format, i check the custom and default values are far away for what my hard disk has configured on. look:

Code:

 # fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb (Sun disk label): 20 heads, 168 sectors, 5271 cylinders
Units = cylinders of 3360 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdb1             0       298    500640   83  Linux native
/dev/sdb2  u        298       372    124320   83  Linux native
/dev/sdb3  u          0      5271   8855280    5  Whole disk
/dev/sdb4           744      1623   1476720   83  Linux native
/dev/sdb5          1623      3948   3906000   83  Linux native
/dev/sdb6          3948      5271   2222640   83  Linux native
/dev/sdb7  u        372       744    624960   82  Linux swap

and when i use fdisk option s (Look at the valus after (Sun disk label) they didn't match, as an advice, try download the Solaris 1of2 Cdrom and use format from there :) it might help, but you will loose all you installed system, but you might be able to boot, maybe some one else with more expereince can give tell us how to guess those parameters...

Code:

Select type (? for auto, 0 for custom): 0
Heads (1-1024, default 64):
Using default value 64
Sectors/track (1-1024, default 32):
Using default value 32
Cylinders (1-65535, default 8676):
Using default value 8676
Alternate cylinders (0-65535, default 2):
Using default value 2
Physical cylinders (0-65535, default 8678):
Using default value 8678
Rotation speed (rpm) (1-100000, default 5400):
Using default value 5400
Interleave factor (1-32, default 1):
Using default value 1
Extra sectors per cylinder (0-32, default 0):
Using default value 0
Command (m for help): p

Disk /dev/sdb (Sun disk label): 64 heads, 32 sectors, 8676 cylinders
Units = cylinders of 2048 * 512 bytes
[/b]
[/code]
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Fri Apr 30, 2004 10:26 pm    Post subject: Reply with quote

Thank you very much for your help, I believe this could be my next step to try the sun format. I have my whole system tarred so i wouldnt have to reinstall which is good :) From what you have shown me it definitely looks like the fdisk label is completely different from the sun format disklabel. This is great info :)

I truly believe that the disklabel is my problem.

Thanks again! Ill post my results here :)
Back to top
View user's profile Send private message
mbartsch
n00b
n00b


Joined: 30 Apr 2004
Posts: 8

PostPosted: Sat May 01, 2004 2:01 am    Post subject: Reply with quote

Ok let me know, in theory, you could use format with out installing solaris on your disk, just

ok? boot cdrom -s
and when you get to the # prompt use format.

let me know how it goes
Back to top
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Sun May 02, 2004 2:37 pm    Post subject: making linux friendly sun disk label Reply with quote

You dont need to use the solaris format tool

when you run fdisk off the gentoo boot cd, what you need to do is this

1) verify you have the correct c/h/s info for your drive
2) delete ALL your partitions (sorry!)
3) tell fdisk to make a sun disk label, the command in fdisk is "s"
4) plug in the info
5) recreate your partitions, leaving partition3 (the "whole disk") alone

and your good to go. The key here is using the s command in fdisk, otherwise you get a dos x86 "disk label" which aint gonna jive in a sunblade
_________________
-Tim Smith
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Mon May 03, 2004 6:02 pm    Post subject: Reply with quote

Thanks for your advice, all is well now :)

I used the sun format on the disk and it is seeing my silo now. You were right, the fdisk sundisklabel maker and the sun format created 2 completely different labels. Thanks again for your help!

StealthLlama


mbartsch wrote:
Ok let me know, in theory, you could use format with out installing solaris on your disk, just

ok? boot cdrom -s
and when you get to the # prompt use format.

let me know how it goes
Back to top
View user's profile Send private message
mbartsch
n00b
n00b


Joined: 30 Apr 2004
Posts: 8

PostPosted: Wed May 05, 2004 1:55 pm    Post subject: Reply with quote

StealthLlama wrote:
Thanks for your advice, all is well now :)


Great, at least my time reading solaris docs finally pays off :)

what silo version are you using? just for curiosity.
Back to top
View user's profile Send private message
StealthLlama
n00b
n00b


Joined: 21 Apr 2004
Posts: 11

PostPosted: Tue May 11, 2004 11:31 pm    Post subject: Reply with quote

Sorry for the delay, i was away on vacation.

My silo version is 1.4.4 i believe.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum