Linux Find Out Name Of DVD / CD-ROM / Blu-ray Writer Device
You can find out the name of the DVD/CD-ROM/Blu-ray writer device in Linux by using the lsblk command.
Here's an example:
lsblk | grep -i "cdrom"Explanation:
lsblkis the command that lists all the block devices and their properties.grep -i "cdrom"filters the output oflsblkto show only the lines that contain the word "cdrom". The-ioption makes the search case-insensitive.
sr0 or sr1.Note: If your system has multiple optical drives, you'll see multiple lines in the output, one for each drive. You can identify the correct drive based on the size, vendor, and model information displayed by the lsblk command.
