LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2012, 05:51 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Rep: Reputation: 256Reputation: 256Reputation: 256
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
 
Old 08-18-2012, 06:47 AM   #2
ibrahimovic22
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
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

Last edited by ibrahimovic22; 08-18-2012 at 06:51 AM.
 
Old 08-19-2012, 08:47 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,416
Blog Entries: 7

Rep: Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955Reputation: 1955
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
 
Old 08-19-2012, 03:27 PM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Original Poster
Rep: Reputation: 256Reputation: 256Reputation: 256
what about wodim/cdrecord -atip?

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Full of '/tmp/6R96Sk' empty files guarriman Linux - General 2 08-14-2006 05:10 AM
Trashicon shows full but it's empty Boby Fedora 0 07-09-2004 07:35 PM
How to restore the Empty/Full trash Icons? tr4nce Slackware 2 04-13-2003 03:15 PM
/usr almost full, /home empty.. how 2 xsfer? Cephlen Linux - Newbie 2 10-11-2002 02:28 PM
I have a bunch of partitions. If one becomes full, can i take some from an empty one? ForumKid Linux - General 2 01-15-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration