iDrac6 virtual media CD/DVD/ISO image not work in CentOS 5.4

wg at yarbs.cn wg at yarbs.cn
Wed Apr 14 02:48:20 CDT 2010


>
> I've just booted my T410 with iDRAC6 Enterprise to the o/s installed
> on the hard-drive. Gentoo running 2.6.31, x86_64.
>
> I had the console viewer already open as I booted the system, so I
> could see BIOS messages, GRUB &c. Once the system had booted I logged
> in via ssh.
>
> I cleared the dmesg ring-buffer using `sudo dmesg -c`, then (in
> another `screen` window) ran `tail -f /var/log/syslog`.
>
> In the console viewer I hovered my cursor over the top edge of the
> window and chose "Launch Virtual Media" from the yellow drop-down. As
> soon as the new window opened a bunch of stuff whizzed past in the
> syslog window. It matches this:
>
> $ dmesg
> usb 2-3: USB disconnect, address 3
> usb 2-3: new high speed USB device using ehci_hcd and address 4
> usb 2-3: New USB device found, idVendor=0624, idProduct=0249
> usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> usb 2-3: Product: USB Composite Device-1
> usb 2-3: Manufacturer: Avocent
> usb 2-3: SerialNumber: 20080519
> usb 2-3: configuration #1 chosen from 1 choice
> scsi7 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 4
> usb-storage: waiting for device to settle before scanning
> scsi8 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 4
> usb-storage: waiting for device to settle before scanning
> scsi9 : SCSI emulation for USB Mass Storage devices
> usb-storage: device found at 4
> usb-storage: waiting for device to settle before scanning
> usb-storage: device scan complete
> usb-storage: device scan complete
> usb-storage: device scan complete
> scsi 8:0:0:0: CD-ROM            iDRAC    Virtual CD       0323 PQ: 0
> ANSI: 0
> scsi 8:0:0:1: Direct-Access     iDRAC    Virtual Floppy   0323 PQ: 0
> ANSI: 0 CCS
> scsi 7:0:0:0: Direct-Access     iDRAC    LCDRIVE          0323 PQ: 0
> ANSI: 0 CCS
> scsi 9:0:0:0: Direct-Access     iDRAC    Virtual Flash    0323 PQ: 0
> ANSI: 0 CCS
> sd 7:0:0:0: Attached scsi generic sg3 type 0
> sd 7:0:0:0: [sdb] Attached SCSI removable disk
> sr1: scsi3-mmc drive: 0x/0x cd/rw caddy
> sr 8:0:0:0: Attached scsi CD-ROM sr1
> sr 8:0:0:0: Attached scsi generic sg4 type 5
> sd 8:0:0:1: Attached scsi generic sg5 type 0
> sd 9:0:0:0: Attached scsi generic sg6 type 0
> sd 9:0:0:0: [sdd] Attached SCSI removable disk
> sd 8:0:0:1: [sdc] Attached SCSI removable disk
> $
>
> In the "Virtual Media Session" window that opened on the controlling
> (Windows) PC I then chose "Add Image" and browsed to a copy of
> systemrescuecd-x86-1.3.5.iso that I had lying around on my D: drive,
> and ticked the "mapped" checkbox.
>
> In the ssh session:
>
> $ ls -l /dev/disk/* | grep -i sr1
> lrwxrwxrwx 1 root root  9 Apr 14 06:04 usb-
> iDRAC_Virtual_CD_20080519-0:0 -> ../../sr1
> lrwxrwxrwx 1 root root  9 Apr 14 06:15 sysrcd-1.3.5 -> ../../sr1
> lrwxrwxrwx 1 root root  9 Apr 14 06:04 pci-0000:00:1d.7-usb-0:3:1.1-
> scsi-0:0:0:0 -> ../../sr1
> $ sudo mount -v /dev/sr1 /mnt/cdrom/
> mount: you didn't specify a filesystem type for /dev/sr1
>         I will try type iso9660
> mount: block device /dev/sr1 is write-protected, mounting read-only
> mount: you didn't specify a filesystem type for /dev/sr1
>         I will try type iso9660
> /dev/sr1 on /mnt/cdrom type iso9660 (ro)
> $ ls -l /mnt/cdrom/
> total 200002
> dr-xr-xr-x 1 root root      2048 Jan 25 20:32 bootdisk
> dr-xr-xr-x 1 root root      2048 Dec 20 10:34 bootprog
> dr-xr-xr-x 1 root root      2048 Jan 25 20:32 isolinux
> dr-xr-xr-x 1 root root      2048 Sep  6  2009 ntpasswd
> -r-xr-xr-x 1 root root 204791808 Jan 25 20:31 sysrcd.dat
> -r-xr-xr-x 1 root root        45 Jan 25 20:32 sysrcd.md5
> -r-xr-xr-x 1 root root       876 Sep  6  2009 usbstick.htm
> -r-xr-xr-x 1 root root         6 Jan 25 20:32 version
> $ cp /proc/config.gz .
> $ zcat config.gz | head
> #
> # Automatically generated make config: don't edit
> # Linux kernel version: 2.6.31-gentoo-r6
> # Fri Mar 12 20:01:47 2010
> #
> CONFIG_64BIT=y
> # CONFIG_X86_32 is not set
> CONFIG_X86_64=y
> CONFIG_X86=y
> CONFIG_OUTPUT_FORMAT="elf64-x86-64"
> $ scp config.gz stroller.uk.eu.org:
> config.gz                                     100%   21KB  20.7KB/s
> 00:00
> $
>
> I hope you find this helpful.
>
> Stroller.
>
>
>
Thanks Stroller for your detailed explanation.
I've found the problem here was the wrong cdrom device used. It should be
the /dev/scd1 or just the /dev/cdrom symlink. I was tricked by the syslog
and believed that the Virtual CD was /dev/sdc, as the virtual floppy
device /dev/sdd has always been working as expected.

blkid /dev/sdc
/dev/sdc: SEC_TYPE="msdos" LABEL="scrtch" UUID="4BC4-E724" TYPE="vfat"

"fdisk -l /dev/sdc" returns nothing.

mount -t vfat /dev/sdc /mnt/cdrom/
mount: No medium found

ls /dev/disk/by-id/ -l
total 0
lrwxrwxrwx 1 root root  9 04-13 22:23
scsi-36a4badb0083ed00012ec7e5a0882f342 -> ../../sda
lrwxrwxrwx 1 root root 10 04-13 22:23
scsi-36a4badb0083ed00012ec7e5a0882f342-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 04-14 14:38 usb-iDRAC_LCDRIVE_20080519 -> ../../sdc
lrwxrwxrwx 1 root root 10 04-14 14:38 usb-iDRAC_Virtual_CD_20080519 ->
../../scd1
lrwxrwxrwx 1 root root  9 04-14 14:38 usb-iDRAC_Virtual_Floppy_20080519 ->
../../sdd
lrwxrwxrwx 1 root root  9 04-13 22:23
usb-Kingston_DT_101_II_0019E06B084B5B99050D0126 -> ../../sdb
lrwxrwxrwx 1 root root 10 04-13 22:23
usb-Kingston_DT_101_II_0019E06B084B5B99050D0126-part1 -> ../../sdb1

ls -l /dev/cdrom*
lrwxrwxrwx 1 root root 4 04-14 14:38 /dev/cdrom -> scd1
lrwxrwxrwx 1 root root 4 04-13 22:23 /dev/cdrom-sr0 -> scd0
lrwxrwxrwx 1 root root 4 04-14 14:38 /dev/cdrom-sr1 -> scd1

The virtual cd/dvd/iso image can now be mounted successfully via /dev/scd1
or /dev/cdrom. Just don't get what the usb-iDRAC_LCDRIVE_20080519 /dev/sdc
is.

Thanks again for your help!

Regards,
Frank Wang



More information about the Linux-PowerEdge mailing list