LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Detect if the cdrom/dvd is empty or full? (https://www.linuxquestions.org/questions/linux-newbie-8/detect-if-the-cdrom-dvd-is-empty-or-full-4175422743/)

Xeratul 08-18-2012 05:51 AM

Detect if the cdrom/dvd is empty or full?
 
Hi,

With wodim or other, can one detect if the cdrom/dvd is empty or full?

Thanks

ibrahimovic22 08-18-2012 06:47 AM

open the shell then type this command:

[root@localhost root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 77G 2.8G 71G 4% /
/dev/sda1 99M 15M 79M 16% /boot
none 504M 0 504M 0% /dev/shm
/dev/cdrom 4.1G 4.1G 0 100% /mnt/cdrom <--- HERE

teckk 08-19-2012 08:47 AM

Code:

eject && sleep 5 && eject -t
Code:

lsdvd /dev/sr0
Code:

sudo mount /dev/sr0 ~/dvdburner && df /dev/sr0
or
Code:

sudo mount /dev/sr0 ~/dvdburner
mount: no medium found on /dev/sr0


Xeratul 08-19-2012 03:27 PM

what about wodim/cdrecord -atip?

it displays also quit some info. but not all what one could dream about


All times are GMT -5. The time now is 06:39 PM.