Best 3 ways on how to find out what device name in /dev directory is your DVD/CD Writer/Burner in the Linux Terminal:
1.) By checking /proc/sys/dev/cdrom/ , issue command in terminal:
$ cat /proc/sys/dev/cdrom/
/or
$ less /proc/sys/dev/cdrom/
/or
$ more /proc/sys/dev/cdrom/
- a sample output in a laptop can look like this (showing other data including other device functions and even the drive speed):
drive name: sr0
drive speed: 24
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 1
Can write DVD-R: 1
Can write DVD-RAM: 1
Can read MRW: 1
Can write MRW: 1
Can write RAM: 1
- The device name is: sr0
- So the device is in /dev/sr0
2.) With lsblk, issue command in terminal:
$ lsblk
- a sample output in a laptop can look like this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 300M 0 part
├─sda2 8:2 0 128M 0 part
├─sda3 8:3 0 110.5G 0 part
└─sda4 8:4 0 900M 0 part
sr0 11:0 1 4.4G 0 rom
loop0 7:0 0 765M 1 loop /lib/live/mount/rootfs/filesystem.squashfs
zram0 254:0 0 1002M 0 disk
zram1 254:1 0 1002M 0 disk
zram2 254:2 0 1002M 0 disk
zram3 254:3 0 1002M 0 disk
zram4 254:4 0 1002M 0 disk
zram5 254:5 0 1002M 0 disk
zram6 254:6 0 1002M 0 disk
zram7 254:7 0 1002M 0 disk
- In the TYPE Column look for ROM, so the device name here is sr0
- So the device is in /dev/sr0
3.) With inxi, issue command in terminal, make sure to type is as you see it, that O in Optical has to be capitalized, or just copy and paste it:
$ inxi -d | grep Optical
- a sample output in a laptop can look like this:
Optical: /dev/sr0 model: HL-DT-ST DVDRAM GUD0N dev-links: N/A
- The device name is sr0, in /dev as /dev/sr0
0 comments:
Post a Comment