04-12-2010
Solaris magic number problem
Hello,
When I boot up my ancient SUNOS 5 system. it stops at the OK prompt and complains about a bad magic number. I have told that I need run fsck but I cannot seem to do so from the OK prompt. How can I get into a diagnostic mode so I can run fsck?
Thanks,
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
Hi guys,
First I have to say that I'm not Unix expert, I just have medium level experince in Unix scripting and some knowledge with a little of hands on experience of unix administration (Solaris only). I have my plans to move ahead in that field but this is a different story.
I have a client... (0 Replies)
Discussion started by: SolarisProToBe
0 Replies
4. Filesystems, Disks and Memory
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
5. Filesystems, Disks and Memory
LVM partition(8e type) begins with a magic number(0x4D48) - HM,
At this sector, I get the name of volume group plus two three more structures, which I am unable to decipher. So, if anyone can let me know the details of these structures.
In my case, I had made two logical volumes in my LVM... (2 Replies)
Discussion started by: ghimanshu
2 Replies
6. Solaris
/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. AIX
Hello everybody:
I have a trouble running an application which connects to an Oracle server, I got this message:
Dependent module /opt/oracle/product/10.2/lib/libclntsh.so could not be loaded.
The module has an invalid magic number.
Running ldd MyApp doesn't report missing symbols, I've... (1 Reply)
Discussion started by: edgarvm
1 Replies
8. Solaris
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
9. Solaris
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
10. Solaris
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
fileutil::magic::cgen(3tcl) file utilities fileutil::magic::cgen(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
fileutil::magic::cgen - Generator core for compiler of magic(5) files
SYNOPSIS
package require Tcl 8.4
package require fileutil::magic::cgen ?1.0?
package require fileutil::magic::rt ?1.0?
package require struct::tree
package require struct::list
::fileutil::magic::cgen::2tree script
::fileutil::magic::cgen::treedump tree
::fileutil::magic::cgen::treegen tree node
_________________________________________________________________
DESCRIPTION
This package provides the generator backend for a compiler of magic(5) files into recognizers based on the fileutil::magic::rt recognizer
runtime package. For the compiler frontend using this generator see the package fileutil::magic::cfront.
COMMANDS
::fileutil::magic::cgen::2tree script
This command converts the recognizer specified by the script into a tree and returns the object command of that tree as its result.
It uses the package struct::tree for the tree.
The script is in the format specified by magic(5).
::fileutil::magic::cgen::treedump tree
This command takes a tree as generated by ::fileutil::magic::cgen::2tree and returns a string encoding the tree for human consump-
tion, to aid in debugging.
::fileutil::magic::cgen::treegen tree node
This command takes a tree as generated by ::fileutil::magic::cgen::2tree and returns a Tcl script, the recognizer for the file types
represented by the sub-tree rooted at the node. The generated script makes extensive use of the commands provided by the recognizer
runtime package fileutil::magic::rt to perform its duties.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category fileutil
:: magic of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may
have for either package and/or documentation.
SEE ALSO
file(1), fileutil, magic(5)
KEYWORDS
file recognition, file type, file utilities, mime, type
CATEGORY
Programming tools
fumagic 1.0 fileutil::magic::cgen(3tcl)