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


 
Thread Tools Search this Thread
Operating Systems Solaris Big UH-OH "Bad magic number in disk label"
# 1  
Old 03-24-2005
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  
Old 03-24-2005
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  
Old 03-24-2005
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
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  
Old 03-24-2005
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  
Old 03-24-2005
Thanks. I'll need to keep that in mind for future reference. Oh well, we live and we learn.
# 7  
Old 03-24-2005
Also see prtvtoc which is completely safe. You can do damage with "format" as well.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Bad magic number in disk label.

This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following: Boot device: disk File args: Bad magic number in disk label Can't open disk label package Evaluating: boot Can't open boot device... (40 Replies)
Discussion started by: SHuKoSuGi
40 Replies

2. Solaris

Recover label, wrong magic number

Is there a way to recover label? I could install (sparc) Solaris again, but it would take a lot of time. (5 Replies)
Discussion started by: orange47
5 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. Solaris

corrupt label - wrong magic number

I have created 1 LUN. 1)LUN 00BB 200GB /dev/rdsk/c1t3d44 /dev/rdsk/c2t28d44 /dev/rdsk/c3t19d44 /dev/rdsk/c4t12d44 2) Already added the new entry into sd.conf and rebooted. 3) Already done these: powercf –q power config 4) power display dev=all I can see the new Symmetrix device.... (1 Reply)
Discussion started by: sirius20d
1 Replies

5. Solaris

Help:"Bad checksum in disk label" and "Can't open disk label package"?

Hello, I'm brand new to Sun/Solaris. I have a Sun Blade 150, with SunOS 5.8. I wanted to make a backup to prevent future data loss, so I put the disk in a normal PC with Windows XP to try to make a backup with Norton Ghost, the disk was detected, but not the file volume, so I place the disk... (6 Replies)
Discussion started by: Resadija
6 Replies

6. Solaris

errors on Netra-440: "IPC Warning: ipc: tcp_protocol: bad magic number"

I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies

7. Solaris

BAD magic number in disc label...

Hello All, I m very new to this forum. i m having SUN NETRA X1 server with 40 GB HDD (Seagate) & 128 MB RAM. i m trying this server for SUN 10 Practise. As i m installing SUN 9 /10 with CD ,its giving me error after OK propmt *************************** #boot cdrom or #boot cdrom... (16 Replies)
Discussion started by: amrut_k
16 Replies

8. AIX

"too big" and "not enough memory" errors in shell script

Hi, This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies

9. Shell Programming and Scripting

read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell

Hallo, i need a Prompting read in my script: read -p "Enter your command: " command But i always get this Error: -p: is not an identifier When I run these in c-shell i get this error /usr/bin/read: read: bad option(s) How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies

10. Shell Programming and Scripting

"bad number" message

Hi, running a script fine , i get twice the following message and whether i put "set -x" , i don't see what's going wrong : /users/notes01/scripts/sad/util/verif_boot_notes.ksh: Ma: bad number any ideas ? regards Christian (4 Replies)
Discussion started by: Nicol
4 Replies
Login or Register to Ask a Question