- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CG 3: Bad Magic Number
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:03 PM
03-16-2004 06:03 PM
I got complain below after I fsck the hard disk of HP-UX 10.20.
# fsck /dev/c0t6d0
.
.
.
CG 3: Bad Magic Number
Anybody can tell me what it means?
Thanks in advance!
Regards!
Yu Ting
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:11 PM
03-16-2004 06:11 PM
Re: CG 3: Bad Magic Number
Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=85615
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=293397
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:23 PM
03-16-2004 06:23 PM
Re: CG 3: Bad Magic Number
fsck is for file checking, here you are trying to check the device hence the error.
#fsck /dev/vgxx/lvolx
file system must be unmounted before fsck'ing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:30 PM
03-16-2004 06:30 PM
Re: CG 3: Bad Magic Number
Try giving
#fsck /dev/rdsk/c0t6d0
OR
#fsck -F vxfs
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:33 PM
03-16-2004 06:33 PM
Re: CG 3: Bad Magic Number
Regards!
Yu Ting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:42 PM
03-16-2004 06:42 PM
Re: CG 3: Bad Magic Number
OK !
Just search for the file sbtab most probably it will be in /etc directory.
just exceute
#cat sbtab
You will have different superblock numbers there. e.g. 8,16,32 etc.., and so on
Don't Worry if you are not able to locate the sbtab You can use the following Numbers as a trial which works 80% of time.
# fsck -b 16 /dev/rdsk/c0t6d0
or
# fsck -b 32 /dev/rdsk/c0t6d0
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2004 06:47 PM
03-16-2004 06:47 PM
Re: CG 3: Bad Magic Number
If you dont't specify -F option to fsck,It is most likely to take the file system type from /etc/default/fs.check whether HFS or JFS is specified in this file.
My guess is your /etc/default/fs contains jfs and your command fsck /dev/c#t#d# without -F option was assuming jfs instead of HFS.Hence you get bad magic number.
please try fsck -F hfs /dev/...
If the /etc/default/fs indeed contain HFS,probably your superblock may be inconsitent,You can try alternate superblock by cecking the /var/adm/sbtab.
you can try fsck -F hfs -b 16 /dev/...
or
fsck -F hfs -b (any other number you find in /var/adm/sbtab) /dev/....
best of luck
senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2004 01:50 PM
03-21-2004 01:50 PM
Re: CG 3: Bad Magic Number
Thank you all!
My hard disk /dev/dsk/c0t6d0 is a dd backup hard disk. So will it crash if I do
fsck -b 32 /dev/rdsk/c0t6d0
Thanks again!
Regards!
Yu Ting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 05:50 PM
04-19-2004 05:50 PM
Re: CG 3: Bad Magic Number
fsck with any option can not remove this complain.
I searched on this forum and got what "Bad Magic Number" is. It indicates that we have installed and attempted to run a binary compiled on an uncompatible platfrom / or compiled for different hardware or in this case maybe we have an existing library for an older application that is not compatible with the new one.
My operating system is dd copy from another HP workstation and that might be the reason.
Now anybody knows what "CG 3" means for the fsck command?
Thanks & Regards!
Yu Ting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 06:28 PM
04-19-2004 06:28 PM
SolutionCG 3 is nothing but the error code for series 700 machine.
The description of this error code is
Bad Magic Number.
Same way for series 800 machines the error code for Bad Magic Number is CE18
The description of this error code is
Utility file header inconsistent: Bad magic number.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 06:54 PM
04-19-2004 06:54 PM
Re: CG 3: Bad Magic Number
Regards!
Yu Ting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 07:28 PM
04-19-2004 07:28 PM
Re: CG 3: Bad Magic Number
Thanks!
Regards!
Yu Ting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:33 PM
04-19-2004 10:33 PM
Re: CG 3: Bad Magic Number
The mkfs command constructs an HFS file system by writing on the special file special. The mkfs command builds the file system with a root directory and a lost+found directory.
The FS_CLEAN magic number for the file system is stored in the superblock.
And for your info fsck for HFS checks for the following inconsistencies:
· Blocks claimed by more than one inode or the free list.
· Blocks claimed by an inode or the free list outside the range of the file system.
· Incorrect link counts.
· Size checks:
. Directory size not of proper format.
· Bad inode format.
· Blocks not accounted for anywhere.
· Directory checks:
. File pointing to unallocated inode.
. Inode number out of range.
--- Superblock checks:
. More blocks for inodes than there are in the file system.
· Bad free block list format.
· Total free block and/or free inode count incorrect.
· Invalid continuation inode number in a primary inode
So if the FS_CLEAN FLAG IN the superblock is set to 1 then it reports bad Magic Number.
This has nothing to do with the sys