1832878 Members
2368 Online
110048 Solutions
New Discussion

wrong capacity of CD-ROM

 
CAS_2
Valued Contributor

wrong capacity of CD-ROM

Hi people

I mounted the "Support Plus 11i" CD-ROM of June 2004 and realized that its size is nead 2.5 GB meanwhile the diskinfo command shows media size is 500 MB:

# mount /dev/dsk/c0t2d0 /cdrom
# bdf /cdrom
Filesystem kbytes used avail %used Mounted on
/dev/dsk/c0t2d0 2457600 2457600 0 100% /cdrom

# diskinfo -v /dev/rdsk/c0t2d0
SCSI describe of /dev/rdsk/c0t2d0:
vendor: HP
product id: DVD-ROM 305
type: CD-ROM
size: 504836 Kbytes
bytes per sector: 2048
rev level: 1.01
blocks per disk: 252418
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: yes
response format: 2
(Additional inquiry bytes: (32)32 (33)30
[ I trimed this last line ]

I copied the entire CD-ROM to a regular file by means of dd command. The file is near 500 MB. Then I mounted using pfs_mount command... the size of mounted filesystem shown by bdf command is near 2.5 GB too.

Why ?
Is it due to any ISO feature ?
1 REPLY 1
Robert-Jan Goossens
Honored Contributor

Re: wrong capacity of CD-ROM

Hi Cas,

I think it is because you mounted a cdrom in a dvd drive.

# ioscan -fnkCdisk
disk 0 0/0/1/0.1.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0

# mount /dev/dsk/c0t1d0 /SD_CDROM
# cd /SD_CDROM
/SD_CDROM# du -ks .
497754 .
# bdf .
/dev/dsk/c0t1d0 2457600 2457600 0 100% /SD_CDROM

HTH,
Robert-Jan