×
UNIX.COM Login
Username:
Password:  
Show Password






👤


Solaris

The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Big UH-OH "Bad magic number in disk label"

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-24-2005
deckard's Unix or Linux Image
deckard deckard is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 8 June 2012, 5:12 PM EDT
Location: Ohio
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Sponsored Links
    #2  
Old 03-24-2005
pressy's Unix or Linux Image
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 4 October 2017, 11:02 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 739
Thanks: 1
Thanked 2 Times in 2 Posts
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 ;-)
Sponsored Links
    #3  
Old 03-24-2005
deckard's Unix or Linux Image
deckard deckard is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 8 June 2012, 5:12 PM EDT
Location: Ohio
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 03-24-2005
deckard's Unix or Linux Image
deckard deckard is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 8 June 2012, 5:12 PM EDT
Location: Ohio
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Sponsored Links
    #5  
Old 03-24-2005
pressy's Unix or Linux Image
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 4 October 2017, 11:02 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 739
Thanks: 1
Thanked 2 Times in 2 Posts
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
Sponsored Links
    #6  
Old 03-24-2005
deckard's Unix or Linux Image
deckard deckard is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 8 June 2012, 5:12 PM EDT
Location: Ohio
Posts: 135
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks. I'll need to keep that in mind for future reference. Oh well, we live and we learn.
Sponsored Links
    #7  
Old 03-24-2005
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 63
Thanked 474 Times in 272 Posts
Also see prtvtoc which is completely safe. You can do damage with "format" as well.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Recover label, wrong magic number orange47 Solaris 5 10-19-2011 12:47 PM
Help:"Bad checksum in disk label" and "Can't open disk label package"? Resadija Solaris 6 03-29-2010 12:38 PM
errors on Netra-440: "IPC Warning: ipc: tcp_protocol: bad magic number" Borealis Solaris 0 03-25-2010 07:25 PM
BAD magic number in disc label... amrut_k Solaris 16 01-25-2010 04:17 AM



All times are GMT -4. The time now is 02:26 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.