The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
Slackware's "magic package maker" iBot UNIX and Linux RSS News 0 12-01-2007 11:05 AM
How to make a script run for a maximum of "x" number of hours only ScriptDummy Shell Programming and Scripting 7 10-23-2007 09:51 AM
How do "if [ $variable -eq "a number" ] ? earnstaf Shell Programming and Scripting 4 06-21-2007 12:55 PM
How to count number of occurrences of a "|" from a variable? jingi1234 UNIX for Dummies Questions & Answers 4 05-06-2005 04:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-24-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Big UH-OH "Bad magic number in disk label"

I tried rebooting my Sun server just a few minutes ago and I got the following at boot:
--
Sun Fire 280R (UltraSPARC-III+) , No Keyboard
Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.5, 1024 MB memory installed, Serial #xxxxxxxxx
Ethernet address xx:xx:xx:xx:xx:xx, Host ID: 8323nnnn.

Rebooting with command: boot
Bad magic number in disk label
Can't open disk label package
Boot device: net File and args:
Timeout waiting for ARP/RARP packet
--
Now I know that this was probably my fault because I was trying to get a look at the partition table with fdisk and I think I hosed something when trying to view slice 2. The big question is... can this be fixed without having to reinstall the OS and restore data from tape? This box is running Sun Solaris 8 02/02 with no patches. (I know, I know... my job just keeps me too busy to keep up) I have a spare system with Solaris on it and I could restore from the last backup, but I really want to avoid this if there is a way to fix the disklabel without losing data on the drive. Not to mention the last time I restored from tape, it took 18 hours.

I already have a call into Sun support, but our contract only allows calls in starting at 8:00M EST. I'm just hoping that someone here might give me some ideas of things to try before I talk to Sun. Man I feel foolish...
  #2 (permalink)  
Old 03-24-2005
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
it is for sure that it is not the best idea to play with the partition layout on a life system, if you don't have a backup of your VTOC and you don't know on which cylinders the slices were set up, there will be no change to get the system back.

for future use have a look at the following commands: prtvtoc & fmthard & installboot

do you have a mirror? if yes, have you done these changes on both disks?

please post the answere of your sun-systems-engineer. could be interessting what my colleagues say ;-)
  #3 (permalink)  
Old 03-24-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Yeah... I think I'm hosed

We'll see what Sun support says, but I have a feeling it's going to be re-install the OS and restore the data from tape. Restoring 14 gigs from tape always takes me about 18 hours. Loads of fun ahead of me...
  #4 (permalink)  
Old 03-24-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Yeah. Looks like it's re-install the OS and restore from tape time. That'll learn me to never use the fdisk command to see the partition table. I'm so used to that in other OSes. Nothing like learning something the hard way...
  #5 (permalink)  
Old 03-24-2005
pressy's Avatar
pressy pressy is offline Forum Staff  
solaris cultist
  
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 726
i would advice you too take the original formattool: format
the fdisk command is only included to script automatic format, label, repair and analyze progresses.
the format tool is a menu based commandline tool which should fit your requirements.
to see your partitiontable type format, choose your disk, type partition for the partition menu and print to see the table.... quit, quit to exit ;-)

greetings pressy
  #6 (permalink)  
Old 03-24-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Thanks. I'll need to keep that in mind for future reference. Oh well, we live and we learn.
  #7 (permalink)  
Old 03-24-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Also see prtvtoc which is completely safe. You can do damage with "format" as well.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0