Feeds:
Posts
Comments

Posts Tagged ‘optical’

If you’ve come across some commands that require the actual device name of your CD/DVD drive (eg: /dev/dvd), rather than the mount point (eg: /media/cdrom0), it pays to know what it is, as commands won’t work if they’re looking in the wrong place. There are a couple of ways of doing this, and you’ll probably find they give conflicting outputs, but where one is not useful to you, the other will be; for example, if your drive is both /dev/scd0 and /dev/sr0, you might find /dev/sr0 works for most commands, and where it fails /dev/scd0 won’t.

Method 1:

To find out the name of the block device file representing your optical disc drive, enter the following into a terminal, without a disc in the drive:

wodim --devices

The information will be displayed as follows:

wodim: Overview of accessible drives (1 found) :
————————————————————————-
0 dev=’/dev/scd0‘ rwrw-- : ‘ASUS’ ‘DRW-24B1ST’
————————————————————————-

If there is a disc in the tray, you will see the following error, so just eject the disc and run the command again:

wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try ‘wodim --devices’
or ‘wodim -scanbus’.
For possible transport specifiers try ‘wodim
dev=help’.
For IDE/ATAPI devices configuration,
see the file README.ATAPI.setup from
the wodim documentation.

Method 2:

To find out the name of the block device file representing your optical disc drive, as well as its mount point, enter the following into a terminal:

mount|grep ^'/dev'

The output will look as follows:

/dev/sda3 on / type ext4 (rw)
/dev/sda1 on /media/Windows XP type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,noexec,nosuid,nodev,unhide,user=ozzman)


°ºÒθÓº°¤°ºÒθÓº°¤°ºÒθÓº°

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »

Every now and then, you’re going to need some technical info about your optical disc (CD or DVD) drive. For example, if you’re using a command like that outlined in Fix “Cannot find input plugin for MRL [dvd:/]” Error in Kaffeine, MPlayer & Other Media Players in Ubuntu, being sudo ln -s /media/cdrom0 /dev/dvd, it will be useless if /media/cdrom0 is not the actual mount point. Often I see in forums people complaining a command couldn’t find the disc drive, but the command would work if the correct mount point was specified (they’re not universal, which I think many people expect them to be).

But finding out the mount point of your CD or DVD drive is actually quite easy: insert a disc, wait for it to be mounted, and when a folder window opens to the drive automatically (if it doesn’t, open it manually), simply note the path/address in the Location bar! Yes, it’s that easy, since the location won’t be the disc’s label, but the mount point on your system.

Another way to do it is simply browse through the subfolders in /media (or could even be /mnt on older systems) until you find the one that shows your disc (you’ll need to have one in the drive, of course).

Or if you want to do it via the terminal, you can use mount|grep ^'/dev' which will display info as follows:

/dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sda1 on /media/Windows-XP-x64 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,user=ozzman)

In this case, /dev/sr0 is the device path, and /media/cdrom0 is the mount point, so if you ever come across a command for your disc drive where the mount point is specified as (for example) /media/disk1, you can pretty much expect it not to work, but at least you know that you can replace the incorrect value with /media/cdrom0 (or whatever your mount point actually is).

☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻☻

Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!

Buy Ubuntu Genius a Beer to say Thanks!

Read Full Post »