Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on Mac OS X, have a DVD in the DVD-drive and can look at it in the Finder. I'd like to try to create an iso of it by using the dd command. But to do that I need to know what device to use as an input. How can I find what device my DVD-drive is?

share|improve this question
add comment

4 Answers

up vote 14 down vote accepted

Put a disk into the drive, wait until OS X mounts it, and then type the following command in the Terminal:

$ mount
[⋮]
/dev/disk2 on /Volumes/MyDisk (cd9660, local, nodev, nosuid, read-only, noowners)

In my case, the drive is located at /dev/disk2.

You can use drutil as well.

# drutil status
 Vendor   Product           Rev 
 MATSHITA DVD-R   UJ-857D   KBVB

           Type: DVD+RW               Name: /dev/disk2
[⋮]
share|improve this answer
add comment

Finally found a way. Not sure if it is the best, but it works anyways:

df -h

c",)

share|improve this answer
    
It's also a working solution, since df displaying the free disk space on mounted file systems showing their device name as well. –  Török Gábor Feb 28 '10 at 14:03
    
Yeah, that's what I suddenly discovered. My first thinking was that I could try to match it up with the size, but then discovered that it stood right there which was which :p –  Svish Feb 28 '10 at 15:10
add comment

Start Utilites, Disk Util. Click the drive or partition on the left, then the blue i/info icon in the toolbar. The disk identifier is the name to be used after /dev/

share|improve this answer
    
For me, the disk identifier is the volume label (MyDisk), which is the same as the mount point under /mnt, and not the device name under /dev, which is /dev/disk2. –  Török Gábor Feb 28 '10 at 14:01
    
+1 because it solved my problem, which was trying to eject a DVD I'd unmounted. –  David Moles Jul 3 '12 at 14:15
    
this is the best answer because in my case I can't mount my device. –  Felipe Micaroni Lalli Feb 18 '13 at 21:50
add comment

thankfully, OS X has several options. in System Profiler, choose Serial-ATA, then in the device tree frame choose your device. it shows up as BSD Name.

df is fine but it displays with the partition (volume mounted as) info, rather than the device itself. e.g. a drive shows up as /dev/disk0s2 where the device itself is disk0; s2 is the volume mounted on / ..for most applications this is usable

diskutil list displays all devices and partitions

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.