VMware Cloud Community
amishera
Contributor
Contributor

How to gracefully locate mounted CDROM in ESX host

I was wondering this because there is no easy way to locate this in case of ESX (unlike say RHEL).

mount -t

does not show anything

dmesg shows:

[  310.268824] ip_conntrack version 2.4 (1200 buckets, 9600 max) - 304 bytes per conntrack
[  313.731083] i2c /dev entries driver
[  319.863041] ppdev: user-space parallel port driver
[  331.970846] BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
[  845.549435] scsi9 : usb-storage
[  848.153272]   Vendor: HP        Model: Virtual DVD-ROM   Rev:  0.0
[  848.153873]   Type:   CD-ROM                             ANSI SCSI revision: 02
[  848.155758] sr0: scsi3-mmc drive: 0x/0x caddy
[  848.155787] Uniform CD-ROM driver Revision: 3.20
[  848.155834] sr 8:0:1:0: Attached scsi CD-ROM sr0
[  848.155877] sr 8:0:1:0: Attached scsi generic sg2 type 5

ls -l shows:

cdrom
cdrom-sr0
console
core
disk
dvd
dvd-sr0

and

mount /dev/cdrom /mnt

works for cdrom, cdrom-sr0, dvd, dvd-sr0

I was wondering what is going on here and whether there is a graceful way of telling where the device is mapped.

Thanks

0 Kudos
3 Replies
timemachine
Enthusiast
Enthusiast

can u please try the following command:

cat /etc/mtab

mcowger
Immortal
Immortal

Thats because all of those files are symlinks to the same major/minor device tuple.

--Matt VCDX #52 blog.cowger.us
AndreTheGiant
Immortal
Immortal

Have you tried with /dev/sdc0 ?

Sure that you have ESX and not ESXi?

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos