niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX
Understanding the volume header on IRIX CD images...
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Thomas Jahns
*nix forums beginner


Joined: 20 Apr 2005
Posts: 44

PostPosted: Wed Feb 16, 2005 9:53 am    Post subject: Re: Understanding the volume header on IRIX CD images... Reply with quote

"Steven J. Hill" <sjhill@realitydiluted.com> writes:
Quote:
1) If I look at an IRIX CD image under Linux, fdisk gives me
a message of "Note: sector size is 2048 (not 512)". Yet the
sectors displayed for the volhdr and volume are actually 512
byte blocks. What gives? Is the CD image itself written in
2048 byte sectors and not 512 byte sectors?

The structures on an IRIX CD (EFS format) are built for 512 byte
sectors, but the actual size depends on the device read from. SCSI
CD-ROM devices usually can be switched from 2048 byte blocks to 512 byte
and back (which is what IRIX or the PROM does for EFS vs. ISO9660
CDs). This is just a representation of the data on the CD which is
physically much more complicated (lots of error-correction and other
information only the CD-ROM device cares about). From a higher level
point of view the content on a CD-ROM is just a stream of bits and the
chunks you divide said stream into is entirely up to the hardware and
software involved.

Quote:
2) Partition 8 which is the filesystem also displays an Id of
5 which is 'SysV'. However, it is actually an EFS filesystem.
Why is that? I would have thought the disk would have an Id
of 7 which is 'EFS'. Can someone give some information on
this discrepancy? Did images get written in both formats, or
does IRIX simply ignore the Id of the partition?

IRIX 6.5 at least doesn't care too much (found this when I accidentally
wrote a CD with an EFS partition tagged as XFS), hickups a little but
reads an EFS partition with incorrect Id just fine.

Quote:
3) Here is sample output from one of my IRIX disks:

----- partitions -----
Pt# Device Info Start End Sectors Id System
8: /dev/hdc1 4 74 1148232 5 SGI sysv
9: /dev/hdc2 0 3 48736 0 SGI volhdr
11: /dev/hdc3 0 74 1196992 6 SGI volume

Why does the sum of Partitions 8 and 9 not equal the entire volume
value in Partition 11? Also, when I do a 'dd' of the disk image
the actual size of of Partition 8 is 587784192 bytes which is
1148016 sectors of 512 bytes. That doesn't match the 1148232 value
shown above. I am beginning to doubt the validity of the 'fdisk'
command under Linux when dealing with SGI disk labels. Does anyone
have some comments on this?

The size difference is because the volhdr partition does also contain
the volume directory (into which one cannot put files like the rest of
the volhdr) which uses a few blocks. Also you might find that rounding
prevents EFS from using all blocks in the partition. But since you are
using dd, what exactly are you seeing in your shell window? Giving some
more verbose printouts and telling what you are trying to achieve could
be helpful here.

Linux fdisk certainly isn't the best program to deal with SGI partition
layout. That's for sure. It's been some time since I mastered my own
installation CDs for IRIX so unfortunately I don't remember all the details.

Thomas Jahns
--
"Computers are good at following instructions,
but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9
Back to top
Steven J. Hill
*nix forums beginner


Joined: 27 Jun 2005
Posts: 18

PostPosted: Tue Feb 15, 2005 10:03 pm    Post subject: Understanding the volume header on IRIX CD images... Reply with quote

Greetings.

Please forgive the cross-posting. I am trying to understand a few
things about the IRIX CD images.

1) If I look at an IRIX CD image under Linux, fdisk gives me
a message of "Note: sector size is 2048 (not 512)". Yet the
sectors displayed for the volhdr and volume are actually 512
byte blocks. What gives? Is the CD image itself written in
2048 byte sectors and not 512 byte sectors?

2) Partition 8 which is the filesystem also displays an Id of
5 which is 'SysV'. However, it is actually an EFS filesystem.
Why is that? I would have thought the disk would have an Id
of 7 which is 'EFS'. Can someone give some information on
this discrepancy? Did images get written in both formats, or
does IRIX simply ignore the Id of the partition?

3) Here is sample output from one of my IRIX disks:

----- partitions -----
Pt# Device Info Start End Sectors Id System
8: /dev/hdc1 4 74 1148232 5 SGI sysv
9: /dev/hdc2 0 3 48736 0 SGI volhdr
11: /dev/hdc3 0 74 1196992 6 SGI volume

Why does the sum of Partitions 8 and 9 not equal the entire volume
value in Partition 11? Also, when I do a 'dd' of the disk image
the actual size of of Partition 8 is 587784192 bytes which is
1148016 sectors of 512 bytes. That doesn't match the 1148232 value
shown above. I am beginning to doubt the validity of the 'fdisk'
command under Linux when dealing with SGI disk labels. Does anyone
have some comments on this?

Thanks in advance.

-Steve
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 2:03 am | All times are GMT
navigation Forum index » *nix » SGI/IRIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts Insert header and footer in every page served by proxy ehmedk Apache 0 Tue Apr 22, 2008 6:27 pm
No new posts Insert header and footer in every page served by squid ehmedk Squid 0 Tue Apr 22, 2008 6:16 pm
No new posts Need help getting Sony DAT tape drive to work on Irix 6.5 trebor SGI/IRIX 1 Sun Apr 13, 2008 3:19 am
No new posts Trouble Declaring 3D Array in Header File free2klim C++ 1 Fri Jul 21, 2006 4:07 am

Best Credit Card Deals | Debt Consolidation | Auto Loan | Ringtones | Credit Card
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1744s ][ Queries: 20 (0.0904s) ][ GZIP on - Debug on ]