Recover label, wrong magic number


 
Thread Tools Search this Thread
Operating Systems Solaris Recover label, wrong magic number
# 1  
Old 10-19-2011
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.
# 2  
Old 10-19-2011
Hi, try this:

newfs -N /dev/cX... (this will provide you all the superblock copies)

and then:

fsck -b "one of the numbers" /dev/cX...
This User Gave Thanks to hombreopaco For This Post:
# 3  
Old 10-19-2011
well I've tried all of them and each time got same error
"BAD SUPER BLOCK: MAGIC NUMBER WRONG"

Last edited by orange47; 10-19-2011 at 10:25 AM..
# 4  
Old 10-19-2011
I figure that you did the process with the correct command (it was an error from my side). The correct one is:

fsck -o b="one of the numbers" /dev/cX...

If the affected filesystem is not / or /var or /usr, you can try to rebuild it with newfs and restore from backup, if the problem is located in one of them, well, I'm afraid that you must to reinstall and restore.
# 5  
Old 10-19-2011
I see. well there is some progress. the problem was bad 'partition table'

I don't understand why the 'format' command and Solaris install process use different default slice layout?

so I have restored the old 'partition table', but now fsck complains about unreadable sectors and such.

system tries to boot and then reboots.

probably my last attempts with fdisk,format and fsck damaged the slice.
# 6  
Old 10-19-2011
Hi again, the restore of the slice layout has deleted the data, this is because the partitions have changed. Due the new / partition start now in the same block the system can start to boot but no more than this. At this point there is no more to try, except a reinstallation, so I hope that you have a correct restore data.
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

Magic number error

hi . my " /usr " was full ,so i went into the failsafe mode in solaris 10 and used format utilily to adjust space for it and labeled it. But after that whenever i try to boot solaris normally ,it is giving "magic number error" I tried fsck -o b=32 /dev/dsk/c0d0s6 (for /usr) newfs -N... (6 Replies)
Discussion started by: tushardul
6 Replies

3. 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

4. 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

5. Filesystems, Disks and Memory

Bad super block: Magic number wrong

Whenever i run, # fsck -F ufs /dev/dsk/c0t0d0s7 The following error prompt out:- ** /dev/dsk/c0t0d0s7 BAD SUPER BLOCK: MAGIC NUMBER WRONG USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; eg. fsck -o b=# where # is the alternate super block. SEE fsck_ufs(1M). ... (3 Replies)
Discussion started by: beginningDBA
3 Replies

6. Solaris

wrong magic number

/pci@if,0/pci@1,1/ide@3/dad@0,0 corrupt label wrong magic number can u plz suggustion me (6 Replies)
Discussion started by: tirupathi
6 Replies

7. UNIX for Advanced & Expert Users

How to set a label/number for a function in a shells script

Can any one let me know like how cn i set an label or number for each function whihc are there in an shells script: for example cd /opt/qcom/test/ function1() function2() function3() ------- i ahe a script like this .now i want to count each of this function like 1, 2, 3,............... (3 Replies)
Discussion started by: lalitka
3 Replies

8. Filesystems, Disks and Memory

Bad Super Block: Magic Number Wrong

I had a power outage a day ago and when the power came back on my FreeBSD 4.6 webserver had problems. It said it was unable to mount /var and made me start in single user mode and said to run fsck MANUALY. So i did and this is now what i get. www# fsck /dev/ad0s1e ** /dev/ad0s1e BAD SUPER... (4 Replies)
Discussion started by: matthewbane
4 Replies

9. Shell Programming and Scripting

shell magic number with a -

In one of our internal scripts (unix.run), I have noticed that the following shebang. #!/bin/sh - for i in test1 test2 test3 ; do . . . Any idea what the - in the magic number stands for ? And what impact does it have on the script ? Continuing on the same script, I have the... (3 Replies)
Discussion started by: vino
3 Replies

10. Solaris

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... (6 Replies)
Discussion started by: deckard
6 Replies
Login or Register to Ask a Question