How to see where is my DVD mounted?

Ed Greshko Ed.Greshko at greshko.com
Wed Jan 16 00:13:38 UTC 2013


On 01/16/2013 08:08 AM, Paul Smith wrote:
> On Tue, Jan 15, 2013 at 10:41 PM, Rick Stevens <ricks at alldigital.com> wrote:
>>> to the growisofs command. How could one determine that the media was
>>> placed at
>>>
>>> /dev/sr1
>>
>> Your CD/DVD drive will appear as /dev/sr[some-number]. Some systems have two
>> drives, so they'll be /dev/sr0 and /dev/sr1. Depending on
>> how your machine was installed, your first drive may be /dev/sr1.
>> I've not sorted out why exactly, but I've seen it.
>>
>> Usually the udev rules also set up appropriate symlinks in /dev to
>> point at the devices. For example, /dev/cdrom will generally point to
>> the appropriate device:
>>
>>         root at prophead ~]# ls -l /dev/cdrom
>>         lrwxrwxrwx 1 root root 3 Jan 15 11:23 /dev/cdrom -> sr0
>>
>> It should also create a /dev/dvd symlink which will also point at the
>> correct device, but none of my F17 systems seem to set up /dev/dvd*
>> links anymore (boo!).
>>
>> Also note that if you have two drives, you'll still have some questions
>> as to which drive is what. The system will have /dev/sr0 and /dev/sr1,
>> and quite possibly symlinks like /dev/cdrom (pointed at /dev/sr0) and
>> /dev/cdrom1 (pointed at /dev/sr1).
>>
>> After installing blank media, you can look at /var/log/messages or the
>> output of dmesg to see which drive saw the new media.
>>
>> My recommendation is to feed "/dev/cdrom=/path/to/iso/image" to
>> growisofs and see if that'll get you anywhere or stick with brasero
>> to burn your disks.
>>
>> Yes, it's confusing if you've not dealt with it before.
>
> Thanks, Rick, for your very useful clarification!
>
> Paul

I take an easier way out.....   I simply type "df"

The end of the output shows....

/dev/sr0                        4465312   4465312         0 100% /run/media/egreshko/Fedora 18-TC3 x86_64



-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled


More information about the users mailing list