Sponsored Content
Operating Systems Solaris Bad magic number in disk label. Post 302947442 by SHuKoSuGi on Thursday 18th of June 2015 04:32:50 AM
Old 06-18-2015
Quote:
Originally Posted by hicksd8
Hmmmmm!!!!!

This shows that it cannot retrieve alternate superblock locations and, indeed, the filesystem shows a different disk geometry to the whole disk.

Somehow, the geometry is screwed which would explain the "bad magic number" error.

I need to think how we could straighten out the disk geometry.


Hello hicksd8...thanks a lot for your continual support...We are willing to wait for your further advice...thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

bad magic number

Hi, when installing a piece of third part software I get the error "Bad magic number" at one point when it tries to use libraries from the bea tuxedo server. Am I correct that this means that the software is expecting 32bit while I'm on 64bit? Is there a way around it or can it only be solved... (5 Replies)
Discussion started by: rein
5 Replies

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

3. Filesystems, Disks and Memory

Bad Magic Number

Dear All, i have a SCSI hard disk drive i'm installing on it solaris 5 and the workstation is sun sparc, i made an image of this H.D using Norton Ghost 6, so i took off the SCSI H.D from the sun workstation and put it on a Compaq server then i booted the server from the Norton Ghost floppy disk... (0 Replies)
Discussion started by: wesweshahaha
0 Replies

4. UNIX for Advanced & Expert Users

Bad magic number on /dev/md0

Hello All, (RHEL4) Few weeks ago I had posted a message in this forum about the problem I had when I replaced my two scsi disks and tried rebuild raid1 array. I somehow managed to up the system with working raid1 array. But the main problem persisted.. i.e when I reboot the system, mounting... (0 Replies)
Discussion started by: ravinandan
0 Replies

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

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

7. Solaris

Solaris 8.2 Bad magic number

I'll keep it fairly straight forward. I work with a Solaris server and magically today it decided to take a dump on me. At first it give a long list of files that couldn't be acessed before terminating the boot process and returning to the 'ok' prompt. Booting in single-user mode allowed me to run... (4 Replies)
Discussion started by: Aon
4 Replies

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

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

10. Solaris

Bad magic number error

So we have a new to us v240 server with no OS installed. It has an outdated version of OB and ALOM so before we install the OS we want to update both. We have a DVD with the latest OB patch burned on it. We do the boot cdrom command but receive the Bad Magic Number Error. Does an OS need to... (2 Replies)
Discussion started by: dunkpancakes
2 Replies
INSTALLBOOT(8)						      System Manager's Manual						    INSTALLBOOT(8)

NAME
installboot - make a device bootable SYNOPSIS
installboot -i(mage) image [label:]kernel mm fs ... init installboot -(e)x(tract) image installboot -d(evice) device bootblock boot [[label:]image ...] installboot -b(oot) device bootblock boot [label:]image ... installboot -m(aster) [fix] device masterboot DESCRIPTION
Installboot may be used to make a device bootable by constructing a kernel image and installing bootstrap code into the boot block of a Minix file system. To understand how this can be done one first has to know what happens when a PC is booted. When the power is turned on the typical PC will try to read the first sector from the first floppy disk or from the first hard disk into memory and execute it. The code obtained from the hard disk (from the so-called master boot sector) will immediately replace itself by the code found in the first sector of the active partition. Thus the PC is now executing the bootstrap code found in the first sector of /dev/fd0, /dev/hd1, /dev/hd2, /dev/hd3, or /dev/hd4. The bootstrap will locate the operating system on the device it itself was loaded from, load it, and execute it. To make a Minix file system /dev/fd0 mounted on /mnt bootable, enter the following: cp /usr/mdec/boot /mnt/boot installboot -i /mnt/minix kernel mm fs init installboot -d /dev/fd0 /usr/mdec/bootblock boot The "boot" program in the example is named the "boot monitor". It is loaded by the bootblock code placed in the boot sector of /dev/fd0 and it will take care of loading the kernel image "minix" from the root directory of the file system. See monitor(8) for a description of the boot monitor. Note that boot is a name in the file system on /dev/fd0 in this example, the same file as /mnt/boot. Making /mnt/minix is normally not necessary, there is usually a kernel image in the tools directory. OPTIONS
-i(mage) image [label:]kernel mm fs ... init The -image option (or the -i shorthand) combines the executable files needed to run Minix in one file. Only the names and a few zero bytes are inserted into the image. The name is for identification and the zeros are used to pad separate pieces to sector boundaries for fast loading. An executable may be prefixed by a label. The monitor may be instructed to load processes by label. So more than one kernel process may be included in the image, each with a different winchester driver for instance. So if you have compiled two different kernels with an AT or XT driver then installboot -i image AT:at_kernel XT:xt_kernel mm fs init will make an image with two different labeled kernels and one unlabeled set of the other binaries. -(e)x(tract) image Extract the binaries from image under the names stored in the image. (The name includes the optional label.) -d(evice) device bootblock boot [[label:]image ...] Installs bootblock in the boot sector of device together with the disk addresses to boot. These disk addresses are needed to load boot from the file system at boot time. The argument boot is first searched in the file system on device. If it is not found then it is read as a normal file and added at the end of the file system. The file system should be smaller than the device it is on to allow this. Any extra images are also added to the end as described under -boot. (Make sure you understand all this.) The device need not be mounted when installboot is run, nor does it matter if it is. Installboot needs to be run again if boot is rewritten, because it will then occupy a new place on the disk. Old boot parameters are kept if there are no images added. -b(oot) device bootblock boot [label:]image ... This option fills a blank floppy in device with boot code and kernel images. This "boot disk" does not have a root file system, only the boot monitor and Minix kernels. The boot parameters sector is filled with code that enables menu options for selecting an image. After loading an image, the monitor will ask you to insert a root file system diskette before starting Minix. The labels used on the images should match those on the executables used inside the image. You can put a comma separated list of labels on an image for each label used within the image. For the image created earlier one would create a boot floppy like this: installboot -b /dev/fd0 bootblock boot AT,XT:image If a label-list is omitted on an image, then that image will be selected by default. (Like in the normal one image, no labels case.) Note that -device and -boot together allow you to make a boot floppy with or without a root file system. With the boot code in the file system, attached to the end of it, or after the boot block. And with one or more kernel images in the file system or at the end of the device. Somewhat confusing. -m(aster) [fix] device masterboot This option installs the masterboot program into the boot sector of the given device. If another device is given instead of master- boot then its bootstrap code is copied to device. The master bootstrap on a hard disk boots the active partition on that disk at boot time. The MS-DOS fdisk command normally puts a master bootstrap on the hard disk. Minix has two bootstraps that can be used as a master bootstrap. A fairly normal one named masterboot that works as follows: If the ALT key is held down while booting then '/dev/hd?' appears and you are expected to type a number key (0 - 9) to select the device to boot. If fix (a small number) is given then the bootstrap is locked into booting the /dev/hdfix disk or primary partition. This is needed if 'boot *hdN' is used from the monitor to boot an O.S. that needs the active flag set. If installed on a Minix floppy then it will try to boot the next floppy or the first hard disk. Ideal for floppies with just data on it, they will no longer obstruct the boot process if left in the drive. Also a very useful trick to boot from floppy drive 1. If installed on a hard disk then the active partition is selected and booted as usual, unless none of the partitions is marked active, then it will boot the next disk. The latter is useful if you want to boot an operating system from the second disk by default. The second bootstrap is named extboot. It has only one function, to boot the logical partition named by fix. Fix is not optional for extboot and must be a number-letter pair, like 2c for /dev/hd2c. Extboot or masterboot with a fix key need not be installed in the hard disk master bootstrap per se if you don't want to mess with the DOS master bootstrap, or if you want keep the active flag functioning. An extended partition or a non-root Minix partition are better candidates. It seems logical to put extboot in the extended partition boot block. A backup copy of the current master bootstrap (including the partition table) can be made with: dd if=device of=backup-file count=1 A simple 'cat backup-file > device' will put it back. You can also use fdisk /mbr under MS-DOS 5.0 (or newer) to restore the master bootstrap. FILES
/usr/mdec/bootblock Minix bootstrap for the Minix root device. To be placed in the boot sector. /usr/mdec/boot Minix Boot Monitor. Can usually be found in the root directory of a bootable device. /usr/mdec/masterboot Master bootstrap. Can be placed in the first sector of a disk to select the active partition. In a Minix primary partition it selects the active subpartition. /usr/mdec/extboot Extended partition bootstrap. SEE ALSO
part(8), monitor(8). DIAGNOSTICS
Boot doesn't fit on device If there is no space on the device to add the boot code. This usually means that there is no boot code in the file system you use installboot -device on. Image doesn't fit on device If the device is too small for all the images you try to put on it. BUGS
It has four more options than the SunOS installboot program it is modeled after. The bootblock code has been crunched to such ugliness that you can use it to scare little kids out of your garden. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) INSTALLBOOT(8)
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy