我也在寻找此信息。我took了一下,然后尝试:
$ fdisk -l /dev/cdrom
它似乎起作用:
Disk /dev/cdrom: 4.4 GiB, 4700372992 bytes, 2295104 sectors
Units: sectors of 1 * 2048 = 2048 bytes
Sector size (logical/physical): 2048 bytes / 2048 bytes
I/O size (minimum/optimal): 2048 bytes / 2048 bytes
同意dvd+rw-mediainfo
:
Track Size: 2295104*2KB
READ CAPACITY: 2295104*2048=4700372992
我尝试了一张CD(不适用于dvd+rw-mediainfo
):
Disk /dev/cdrom: 560.7 MiB, 587880448 bytes, 287051 sectors
Units: sectors of 1 * 2048 = 2048 bytes
Sector size (logical/physical): 2048 bytes / 2048 bytes
I/O size (minimum/optimal): 2048 bytes / 2048 bytes
这是预先录制的DVD:
Disk /dev/cdrom: 7.8 GiB, 8393883648 bytes, 4098576 sectors
Units: sectors of 1 * 2048 = 2048 bytes
Sector size (logical/physical): 2048 bytes / 2048 bytes
I/O size (minimum/optimal): 2048 bytes / 2048 bytes
它不适用于尚未刻录的光盘或audo CD。
但是,我仍然想找到一种适用于所有光盘的解决方案。