Attach cd-rom block device to Fedora Template VM (where does it show up?)

39 views
Skip to first unread message

Greg Strong

unread,
Jul 2, 2017, 10:10:26 PM7/2/17
to qubes-users
Hello,

I think I'm doing something pretty basic and coming up empty. I'm putting a CD Rom in an internal SATA cd-rom device and then using the "Attach block device" to attach it to a (running) Fedora template VM. Where is this supposed to appear? I can't find it anywhere. /mnt/removable seems like a likely place but there's nothing there (although the Qubes VM Manager shows a device attached successfully.)

Doubt this matters, but this template is Fedora 2 - I followed the instructions to update the provided Fedora 23 template since Fedora 23 is end-of-life.

Any help greatly appreciated.

Thanks,
Greg

Andrew Morgan

unread,
Jul 3, 2017, 11:57:08 AM7/3/17
to qubes...@googlegroups.com
Does the `lsblk` command show anything different when the device is
attached versus not attached in the fedora vm?

Andrew Morgan

signature.asc

Greg Strong

unread,
Jul 4, 2017, 11:12:31 AM7/4/17
to qubes-users, an...@openmailbox.org
Thanks, Andrew, I'm in business now.

The lsblk showed a new entry (xvdi) when the cd-rom was attached, but showed no mount point. I didn't realize I needed to manually enter a command to mount it because I haven't had to do that with USB hard drives, but I guess this should have been obvious.

Anyway, in case anyone else has the question in the future and finds this thread, here's what you do to get a cd or dvd-rom to show up:

1. In a command prompt for the VM you wish to attach to, (before attaching the device), run 'lsblk' to list your block devices.

2. In the Qubes VM Manager, right-click on the vm you wish to attach to, select attach block devices, and pick your drive.

3. run the 'lsblk' command again and see what new device has appeared.

4. run the following command, substituting your device name for xvdi:

sudo mount -t iso9660 -o ro /dev/xvdi /mnt/removable/

Thanks again,
Greg

Noor Christensen

unread,
Jul 6, 2017, 6:26:46 AM7/6/17
to qubes-users
On Tue, Jul 04, 2017 at 08:12:31AM -0700, Greg Strong wrote:
> 4. run the following command, substituting your device name for xvdi:
>
> sudo mount -t iso9660 -o ro /dev/xvdi /mnt/removable/

Glad you got it working!

As a side note, most of the time you don't need to specify options when
mounting common filesystems, like iso9660. It will figure out the
filesystem and whether or not it is ro/rw.

You can also define a mount point in /etc/fstab allowing you to just do:

# mount /mnt/removable

If you actually want auto mounting maybe a udev rule would suffice.

However, personally I feel auto mounting is a bit scary... :-)

-- noor

|_|O|_|
|_|_|O| Noor Christensen
|O|O|O| no...@fripost.org ~ 0x401DA1E0
signature.asc
Reply all
Reply to author
Forward
0 new messages