- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- [ Reading CD volume label ]
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-21-2005 07:56 PM
03-21-2005 07:56 PM
[ Reading CD volume label ]
I would like to know the commands/ options to read the volume label of CD.
On solaris we will be able to get this information with fstyp command only.
But on HPUX the commands out put does not contain the volume label.
The requirement is very urgent.
Thanks
Madhava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 11:20 PM
03-21-2005 11:20 PM
Re: [ Reading CD volume label ]
Briefly, the sector 17 in disc contains volume label and other info. Volume label is 32 bytes long and is the second field in that sector.
The structure of 17th sector is:
System ID (32 bytes)
Volume label (32 bytes)
Volume Set ID (128 bytes)
Application ID (128 bytes)
Copyright (37 bytes)
Publisher (128 bytes)
Data preparer (128 bytes)
Abstract Description (37 bytes)
Bibliography (37 bytes).
As sector size varies you must run "diskinfo -v" command to get sector size
Then get 17th sector:
dd if=/dev/rdsk/c0t0d0 of=/sector17 ibs=2048 skip=16 count=1
Now you can display the contents of "volume label":
dd if=/sector17 bs=32 skip=1 count=1
Try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 05:06 PM
03-29-2005 05:06 PM
Re: [ Reading CD volume label ]
This is really a best way. But this solution i want to have more clarity.
I am able to copy the contents of 17th sector. But the file is incomplete and also i am not able to get the volume label from there.
Can you tell me how i should make use of fstyp along with this to get exactly what i want.
Thanks,
Madhava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 06:53 PM
03-29-2005 06:53 PM
Re: [ Reading CD volume label ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 01:54 AM
03-30-2005 01:54 AM
Re: [ Reading CD volume label ]
I know fstyp will not provide the volume label.
my Concern was, the dd command is not returning the volume label on HP for CD ( where as i get volume label with fstyp -v on Solaris for same CD).
( i am talking about same volume label String not command. I am not able to find the volume label that is returned on Solaris in copied contents by dd command on HP ).
That is my concern.
I copied all sectors contents to find the volume label it is not present in copied file.
Please treat this as urgent and provide the solution if any.
Thanks,
Madhava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:09 AM
03-30-2005 02:09 AM
Re: [ Reading CD volume label ]
second, You said You got incomplete data, out of sector 17, did You use a 2048byte block size with dd?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 02:16 AM
03-30-2005 02:16 AM
Re: [ Reading CD volume label ]
fstyp -v /dev/dsk/cxtxdx
Also diskinfo -v /dev/dsk/cxtxdx
Does that help??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 07:19 PM
03-31-2005 07:19 PM
Re: [ Reading CD volume label ]
Sorry for not giving logs.
Following will be full detail:
===================================
dd if=/dev/rdsk/c0t0d0 of=/tmp/sector17 ibs=2048 obs=2048 skip=16 count=1
o/p
vi /tmp/sector17
^ACD001^ALINUX Personal Data, Feb 15, 2005 /Ã ^B^BÃ
/^A^A^A^A^H^H¸îî¸^T2"¨¨^H^HF^A^A^E^^^V^B^A^A^A
MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD
CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
2005021518554800^V2005021518554800^V000000000000000
02005021518554800^V^A
============================================
# dd if=/tmp/sector17 bs=32 skip=1 count=1
Personal Data, Feb 15, 21+0 records in
1+0 records out
============================================
SOLARIS
fstyp -v
Volume id