No /dev/cdrom present?

65 views
Skip to first unread message

gaikokuji...@gmail.com

unread,
Jun 2, 2016, 6:40:27 PM6/2/16
to qubes-users
Hi I wanted to create a win7 HVM and was going to start off by making an iso from the CD I have but then I tried the simple dd if=/dev/cdrom of=~/win7_image.iso and I get an error:
dd: failed to open '/dev/cdrom': No such file or directory

I tried this from the term in the personal dom, but then opened up the term from the various doms (including dom0) to see if maybe the cdrom would show up then? (I am still wrapping my head around how Qubes works in terms of isolation, like would it perhaps isolate certain doms from seeing certain devices?)

Thoughts?

Chris Laprise

unread,
Jun 2, 2016, 8:38:12 PM6/2/16
to gaikokuji...@gmail.com, qubes-users
Try /dev/sr0 instead (in dom0). You can also try assigning it to a vm
with 'qvm-block -a -ro vmname dom0:sr0'

...but you have to put the disc in first and it doesn't always work.

Chris

Gaiko

unread,
Jun 2, 2016, 9:16:16 PM6/2/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org

Hi, thanks for the reply. I looked for sr0 as well, it doesn't seem to be there either. Below is a list of the devs I have in dom0

Thoughts? (thanks in advance!)

total 4
drwxr-xr-x 22 root root 3820 Jun 2 21:13 .
dr-xr-xr-x. 18 root root 4096 Jun 2 14:49 ..
crw------- 1 root root 10, 235 Jun 2 20:23 autofs
drwxr-xr-x 2 root root 480 Jun 2 21:13 block
drwxr-xr-x 2 root root 80 Jun 2 21:13 bsg
crw------- 1 root root 10, 234 Jun 2 20:23 btrfs-control
drwxr-xr-x 3 root root 60 Jun 2 16:21 bus
drwxr-xr-x 2 root root 3940 Jun 2 21:13 char
crw------- 1 root root 5, 1 Jun 2 20:23 console
lrwxrwxrwx 1 root root 11 Jun 2 16:21 core -> /proc/kcore
drwxr-xr-x 6 root root 120 Jun 2 16:21 cpu
crw------- 1 root root 10, 57 Jun 2 20:23 cpu_dma_latency
crw------- 1 root root 10, 203 Jun 2 20:23 cuse
drwxr-xr-x 6 root root 120 Jun 2 21:13 disk
brw-rw---- 1 root disk 253, 0 Jun 2 20:23 dm-0
brw-rw---- 1 root disk 253, 1 Jun 2 20:23 dm-1
brw-rw---- 1 root disk 253, 2 Jun 2 20:23 dm-2
brw-rw---- 1 root disk 253, 3 Jun 2 20:23 dm-3
drwxr-xr-x 2 root root 100 Jun 2 16:21 dri
crw-rw---- 1 root video 29, 0 Jun 2 20:23 fb0
lrwxrwxrwx 1 root root 13 Jun 2 16:21 fd -> /proc/self/fd
crw------- 1 root root 10, 51 Jun 2 20:23 freefall
crw-rw-rw- 1 root root 1, 7 Jun 2 20:23 full
crw-rw-rw- 1 root root 10, 229 Jun 2 20:23 fuse
crw------- 1 root root 250, 0 Jun 2 20:23 hidraw0
crw------- 1 root root 10, 228 Jun 2 20:23 hpet
drwxr-xr-x 2 root root 0 Jun 2 20:23 hugepages
crw--w---- 1 root tty 229, 0 Jun 2 20:23 hvc0
crw------- 1 root root 229, 1 Jun 2 20:23 hvc1
crw------- 1 root root 229, 2 Jun 2 20:23 hvc2
crw------- 1 root root 229, 3 Jun 2 20:23 hvc3
crw------- 1 root root 229, 4 Jun 2 20:23 hvc4
crw------- 1 root root 229, 5 Jun 2 20:23 hvc5
crw------- 1 root root 229, 6 Jun 2 20:23 hvc6
crw------- 1 root root 229, 7 Jun 2 20:23 hvc7
crw------- 1 root root 10, 183 Jun 2 20:23 hwrng
prw------- 1 root root 0 Jun 2 20:23 initctl
drwxr-xr-x 4 root root 560 Jun 2 20:23 input
crw-r--r-- 1 root root 1, 11 Jun 2 20:23 kmsg
srw-rw-rw- 1 root root 0 Jun 2 16:21 log
brw-rw---- 1 root disk 7, 0 Jun 2 20:23 loop0
brw-rw---- 1 root disk 7, 1 Jun 2 20:23 loop1
brw-rw---- 1 root disk 7, 10 Jun 2 20:38 loop10
brw-rw---- 1 root disk 7, 11 Jun 2 20:48 loop11
brw-rw---- 1 root disk 7, 12 Jun 2 20:48 loop12
brw-rw---- 1 root disk 7, 2 Jun 2 20:23 loop2
brw-rw---- 1 root disk 7, 3 Jun 2 20:23 loop3
brw-rw---- 1 root disk 7, 4 Jun 2 20:23 loop4
brw-rw---- 1 root disk 7, 5 Jun 2 20:23 loop5
brw-rw---- 1 root disk 7, 6 Jun 2 20:23 loop6
brw-rw---- 1 root disk 7, 7 Jun 2 20:48 loop7
brw-rw---- 1 root disk 7, 8 Jun 2 20:48 loop8
brw-rw---- 1 root disk 7, 9 Jun 2 20:38 loop9
crw-rw---- 1 root disk 10, 237 Jun 2 20:23 loop-control
drwxr-xr-x 2 root root 140 Jun 2 20:38 mapper
crw------- 1 root root 10, 227 Jun 2 20:23 mcelog
crw------- 1 root root 245, 0 Jun 2 20:23 media0
crw------- 1 root root 248, 0 Jun 2 20:23 mei0
crw-r----- 1 root kmem 1, 1 Jun 2 20:23 mem
crw------- 1 root root 10, 54 Jun 2 20:23 memory_bandwidth
drwxrwxrwt 2 root root 40 Jun 2 16:21 mqueue
drwxr-xr-x 2 root root 60 Jun 2 20:23 net
crw------- 1 root root 10, 56 Jun 2 20:23 network_latency
crw------- 1 root root 10, 55 Jun 2 20:23 network_throughput
crw-rw-rw- 1 root root 1, 3 Jun 2 20:23 null
crw------- 1 root root 10, 144 Jun 2 20:23 nvram
crw-r----- 1 root kmem 1, 4 Jun 2 20:23 port
crw------- 1 root root 108, 0 Jun 2 20:23 ppp
crw-rw-rw- 1 root tty 5, 2 Jun 2 21:13 ptmx
drwxr-xr-x 2 root root 0 Jun 2 16:21 pts
drwxr-xr-x 2 root root 80 Jun 2 16:23 qubes_dom0
crw-rw-rw- 1 root root 1, 8 Jun 2 20:23 random
drwxr-xr-x 2 root root 60 Jun 2 16:21 raw
crw-rw-r-- 1 root root 10, 52 Jun 2 20:23 rfkill
lrwxrwxrwx 1 root root 4 Jun 2 20:23 rtc -> rtc0
crw------- 1 root root 254, 0 Jun 2 20:23 rtc0
brw-rw---- 1 root disk 8, 0 Jun 2 20:23 sda
brw-rw---- 1 root disk 8, 1 Jun 2 20:23 sda1
brw-rw---- 1 root disk 8, 2 Jun 2 20:23 sda2
brw-rw---- 1 root disk 8, 16 Jun 2 21:13 sdb
brw-rw---- 1 root disk 8, 17 Jun 2 21:13 sdb1
crw-rw---- 1 root disk 21, 0 Jun 2 20:23 sg0
crw-rw---- 1 root disk 21, 1 Jun 2 21:13 sg1
drwxrwxrwt 3 root root 200 Jun 2 20:44 shm
drwxr-xr-x 3 root root 260 Jun 2 20:23 snd
lrwxrwxrwx 1 root root 15 Jun 2 16:21 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jun 2 16:21 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jun 2 16:21 stdout -> /proc/self/fd/1
crw------- 1 root root 10, 224 Jun 2 20:23 tpm0
crw-rw-rw- 1 root tty 5, 0 Jun 2 20:23 tty
crw--w---- 1 root tty 4, 0 Jun 2 20:23 tty0
crw--w---- 1 root tty 4, 1 Jun 2 20:23 tty1
crw--w---- 1 root tty 4, 10 Jun 2 20:23 tty10
crw--w---- 1 root tty 4, 11 Jun 2 20:23 tty11
crw--w---- 1 root tty 4, 12 Jun 2 20:23 tty12
crw--w---- 1 root tty 4, 13 Jun 2 20:23 tty13
crw--w---- 1 root tty 4, 14 Jun 2 20:23 tty14
crw--w---- 1 root tty 4, 15 Jun 2 20:23 tty15
crw--w---- 1 root tty 4, 16 Jun 2 20:23 tty16
crw--w---- 1 root tty 4, 17 Jun 2 20:23 tty17
crw--w---- 1 root tty 4, 18 Jun 2 20:23 tty18
crw--w---- 1 root tty 4, 19 Jun 2 20:23 tty19
crw--w---- 1 root tty 4, 2 Jun 2 20:23 tty2
crw--w---- 1 root tty 4, 20 Jun 2 20:23 tty20
crw--w---- 1 root tty 4, 21 Jun 2 20:23 tty21
crw--w---- 1 root tty 4, 22 Jun 2 20:23 tty22
crw--w---- 1 root tty 4, 23 Jun 2 20:23 tty23
crw--w---- 1 root tty 4, 24 Jun 2 20:23 tty24
crw--w---- 1 root tty 4, 25 Jun 2 20:23 tty25
crw--w---- 1 root tty 4, 26 Jun 2 20:23 tty26
crw--w---- 1 root tty 4, 27 Jun 2 20:23 tty27
crw--w---- 1 root tty 4, 28 Jun 2 20:23 tty28
crw--w---- 1 root tty 4, 29 Jun 2 20:23 tty29
crw--w---- 1 root tty 4, 3 Jun 2 20:23 tty3
crw--w---- 1 root tty 4, 30 Jun 2 20:23 tty30
crw--w---- 1 root tty 4, 31 Jun 2 20:23 tty31
crw--w---- 1 root tty 4, 32 Jun 2 20:23 tty32
crw--w---- 1 root tty 4, 33 Jun 2 20:23 tty33
crw--w---- 1 root tty 4, 34 Jun 2 20:23 tty34
crw--w---- 1 root tty 4, 35 Jun 2 20:23 tty35
crw--w---- 1 root tty 4, 36 Jun 2 20:23 tty36
crw--w---- 1 root tty 4, 37 Jun 2 20:23 tty37
crw--w---- 1 root tty 4, 38 Jun 2 20:23 tty38
crw--w---- 1 root tty 4, 39 Jun 2 20:23 tty39
crw--w---- 1 root tty 4, 4 Jun 2 20:23 tty4
crw--w---- 1 root tty 4, 40 Jun 2 20:23 tty40
crw--w---- 1 root tty 4, 41 Jun 2 20:23 tty41
crw--w---- 1 root tty 4, 42 Jun 2 20:23 tty42
crw--w---- 1 root tty 4, 43 Jun 2 20:23 tty43
crw--w---- 1 root tty 4, 44 Jun 2 20:23 tty44
crw--w---- 1 root tty 4, 45 Jun 2 20:23 tty45
crw--w---- 1 root tty 4, 46 Jun 2 20:23 tty46
crw--w---- 1 root tty 4, 47 Jun 2 20:23 tty47
crw--w---- 1 root tty 4, 48 Jun 2 20:23 tty48
crw--w---- 1 root tty 4, 49 Jun 2 20:23 tty49
crw--w---- 1 root tty 4, 5 Jun 2 20:23 tty5
crw--w---- 1 root tty 4, 50 Jun 2 20:23 tty50
crw--w---- 1 root tty 4, 51 Jun 2 20:23 tty51
crw--w---- 1 root tty 4, 52 Jun 2 20:23 tty52
crw--w---- 1 root tty 4, 53 Jun 2 20:23 tty53
crw--w---- 1 root tty 4, 54 Jun 2 20:23 tty54
crw--w---- 1 root tty 4, 55 Jun 2 20:23 tty55
crw--w---- 1 root tty 4, 56 Jun 2 20:23 tty56
crw--w---- 1 root tty 4, 57 Jun 2 20:23 tty57
crw--w---- 1 root tty 4, 58 Jun 2 20:23 tty58
crw--w---- 1 root tty 4, 59 Jun 2 20:23 tty59
crw--w---- 1 root tty 4, 6 Jun 2 20:23 tty6
crw--w---- 1 root tty 4, 60 Jun 2 20:23 tty60
crw--w---- 1 root tty 4, 61 Jun 2 20:23 tty61
crw--w---- 1 root tty 4, 62 Jun 2 20:23 tty62
crw--w---- 1 root tty 4, 63 Jun 2 20:23 tty63
crw--w---- 1 root tty 4, 7 Jun 2 20:23 tty7
crw--w---- 1 root tty 4, 8 Jun 2 20:23 tty8
crw--w---- 1 root tty 4, 9 Jun 2 20:23 tty9
crw-rw---- 1 root dialout 4, 64 Jun 2 20:23 ttyS0
crw-rw---- 1 root dialout 4, 65 Jun 2 20:23 ttyS1
crw-rw---- 1 root dialout 4, 66 Jun 2 20:23 ttyS2
crw-rw---- 1 root dialout 4, 67 Jun 2 20:23 ttyS3
crw------- 1 root root 10, 239 Jun 2 20:23 uhid
crw------- 1 root root 10, 223 Jun 2 20:23 uinput
crw-rw-rw- 1 root root 1, 9 Jun 2 20:23 urandom
crw------- 1 root root 251, 0 Jun 2 20:23 usbmon0
crw------- 1 root root 251, 1 Jun 2 20:23 usbmon1
crw------- 1 root root 251, 2 Jun 2 20:23 usbmon2
crw------- 1 root root 251, 3 Jun 2 20:23 usbmon3
crw------- 1 root root 251, 4 Jun 2 20:23 usbmon4
drwxr-xr-x 4 root root 80 Jun 2 20:23 v4l
crw-rw---- 1 root tty 7, 0 Jun 2 20:23 vcs
crw-rw---- 1 root tty 7, 1 Jun 2 20:23 vcs1
crw-rw---- 1 root tty 7, 2 Jun 2 20:23 vcs2
crw-rw---- 1 root tty 7, 3 Jun 2 20:23 vcs3
crw-rw---- 1 root tty 7, 4 Jun 2 20:23 vcs4
crw-rw---- 1 root tty 7, 5 Jun 2 20:23 vcs5
crw-rw---- 1 root tty 7, 6 Jun 2 20:23 vcs6
crw-rw---- 1 root tty 7, 128 Jun 2 20:23 vcsa
crw-rw---- 1 root tty 7, 129 Jun 2 20:23 vcsa1
crw-rw---- 1 root tty 7, 130 Jun 2 20:23 vcsa2
crw-rw---- 1 root tty 7, 131 Jun 2 20:23 vcsa3
crw-rw---- 1 root tty 7, 132 Jun 2 20:23 vcsa4
crw-rw---- 1 root tty 7, 133 Jun 2 20:23 vcsa5
crw-rw---- 1 root tty 7, 134 Jun 2 20:23 vcsa6
drwxr-xr-x 2 root root 60 Jun 2 20:23 vfio
crw------- 1 root root 10, 63 Jun 2 20:23 vga_arbiter
crw------- 1 root root 10, 137 Jun 2 20:23 vhci
crw------- 1 root root 10, 238 Jun 2 20:23 vhost-net
crw-rw----+ 1 root video 81, 0 Jun 2 20:23 video0
crw------- 1 root root 10, 130 Jun 2 20:23 watchdog
crw------- 1 root root 253, 0 Jun 2 20:23 watchdog0
crw------- 1 root root 253, 1 Jun 2 20:23 watchdog1
drwxr-xr-x 2 root root 160 Jun 2 20:23 xen
crw-rw-rw- 1 root root 1, 5 Jun 2 20:23 zero

gaikokuji...@gmail.com

unread,
Jun 4, 2016, 12:57:20 PM6/4/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org

Is there perhaps some other information that I could upload/post (a log somewhere that I am unaware of maybe) that could help in figuring out why there is no cdrom or sr0 devs?

gaikokuji...@gmail.com

unread,
Jun 5, 2016, 6:55:35 PM6/5/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org

Hmmmm, alright, I will assume this is as much of a head scratcher for everyone else as for myself. Two more things:

#1. I tried reinstalling Qubes and still no /dev/cdrom or sr0 and I tried booting up with another distro (had tinycore on a usb on hand) and it did see the cdrom but did see sr0 and sr1? but I was unable to mount the disk in my drive so moot I suppose (I had thought maybe qubes didn't see the cdrom during startup so didn't make a dev/cdrom)

#2 I actually almost never need my rom drive, I just thought I needed it so I could install/make a win7 VM. Is there a way to make a win7 VM w/o the /dev/cdrom? (I made a win7 iso using 7z on my win box so I have an iso).

gaikokuji...@gmail.com

unread,
Jun 5, 2016, 7:02:11 PM6/5/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org

For what its worth I found a clonezilla (debian, not sure what tinycore is) and tried boot flash drive and tried it as well, no cdrom, and no sr0 or sr1... I am thinking linux is not recognizing my drive? When windows was installed I believe it did though?

Thoughts? Anyone?

Andrew David Wong

unread,
Jun 6, 2016, 6:01:07 AM6/6/16
to gaikokuji...@gmail.com, qubes-users, tas...@openmailbox.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2016-06-05 16:02, gaikokuji...@gmail.com wrote:
> For what its worth I found a clonezilla (debian, not sure what
> tinycore is) and tried boot flash drive and tried it as well, no
> cdrom, and no sr0 or sr1... I am thinking linux is not recognizing
> my drive? When windows was installed I believe it did though?
>
> Thoughts? Anyone?
>

It's possible that the optical drive is not Linux-compatible. The
closest test would be baremetal Fedora 20, which dom0 is based on. I
don't think many of us use optical drives with Qubes, so there isn't
much advice to give.

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXVUnVAAoJENtN07w5UDAwYQQP/i3Yw/UufQNI5O/LGj6ViQAF
RpxVRqoX/Dp6wT5aasOOfT02mnSuwW3oo+vmQiH2xt/jI4LytbT5HIZToXQLgFDK
OKzpyuudQdQMxblRPJVzNriMmEO/CmRcTUn29ZTuFICZrPZHipK8Yxs4PaWf9QAd
371QI7rZfgq7K5+Jj/Z2IMHE+hYp4h5QV6wvP8iXntbG06R8+xNkOqSjDCzfocOT
0AzaYexsFfNdahYZIVq9OkROjbqG4YdV0KHJWkyJO9f/UZVGW6oSwn7N4L7scN41
32ZsmbXvubZ8p5c7jpoNI3ZWmfDY/gQpYiXOITuIyCQXJ2Hy67iC0kfT+C7BxJCM
RY9QOVKxr5zY9J1O5fTTic1f/18hn9sAkQYWe5keDoayujR1k0PUDoQ0pDmRpIkn
vyROHpl1/Xd3eeyMDDdIa1ydUbB+jLNBWQR5zkLOzKzWGavowdOgA5jvxr49Bm+M
DqTXi95uXLI8hjp1mD2e+eE6x5UCr8p7M3dnDvvAlX6yYyhPXsLRhhsvL1Y/e9Wr
IGdGCUchP/dfGNq+kwBeppv4IR1h2c5vr8IsD4bVrs72eW4f+MB44zcDzpT88sF/
7O9DjeS8fvp9hrIeUh43menwamP6JjcD/1JAZ0lePtvuPwJmSeFR9jk+fMtH6+j8
CVu8TnUGhbcliZ+wZRuB
=Y4bH
-----END PGP SIGNATURE-----

gaikokuji...@gmail.com

unread,
Jun 6, 2016, 8:34:25 AM6/6/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org

Thanks for the response. Its ok, really I also almost never use a cdrom but in following the instructions to make a windows 7 vm I thought I needed it. I will look if there is a way to make a windows vm w/o /dev/cdrom (or post if i can't find more info).

Cheers

Andrew David Wong

unread,
Jun 6, 2016, 6:22:21 PM6/6/16
to gaikokuji...@gmail.com, qubes-users, tas...@openmailbox.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2016-06-06 05:34, gaikokuji...@gmail.com wrote:
> On Monday, June 6, 2016 at 6:01:07 AM UTC, Andrew David Wong wrote:
> On 2016-06-05 16:02, gaikokuji...@gmail.com wrote:
>>>> For what its worth I found a clonezilla (debian, not sure
>>>> what tinycore is) and tried boot flash drive and tried it as
>>>> well, no cdrom, and no sr0 or sr1... I am thinking linux is
>>>> not recognizing my drive? When windows was installed I
>>>> believe it did though?
>>>>
>>>> Thoughts? Anyone?
>>>>
>
> It's possible that the optical drive is not Linux-compatible. The
> closest test would be baremetal Fedora 20, which dom0 is based on.
> I don't think many of us use optical drives with Qubes, so there
> isn't much advice to give.
>
>
> Thanks for the response. Its ok, really I also almost never use a
> cdrom but in following the instructions to make a windows 7 vm I
> thought I needed it. I will look if there is a way to make a
> windows vm w/o /dev/cdrom (or post if i can't find more info).
>
> Cheers
>

You don't need an optical drive to install Windows. You can just use
an ISO file. They're all legally available for free from Microsoft's
website, though to access some versions you have to edit the page or
use some javascript: https://redd.it/4jwlel

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXVfeCAAoJENtN07w5UDAwZtcQANFTkUeGaGU6Q2nCxzBOeJZ8
2eZWIrzIjKdoAAf9952gVzRHuWJuyz8m5hPx1Ra9/ckfomSHC+jlJdWtSp4RzHdZ
MMkcwpmvNJkgLXL+JH/9NNBxRdtPdObIObmqkmXwBOnXU4T7WUSIdRGVst4Zso59
S2hCZoEbRaARhwBdw01k26upe+jt7e+TIYErQONf0jCN1di+Et0kO4zgYfONy69G
Q4qhRnJZ+yD5koDyT4gMD6UJGsPV3/3UmFIZaGEx25aW+sKpcXh9yvLvkqBQN6Eo
NsW6uThpx3cTkRP3lRNr0dwbHr6Ot1D8F2ZS2OStyERayVE8birQI3twG8R19Dez
/A0Bej7dj5Szj4Fm/TFjiAWDlTC72df5B7sM+H/rDLzaxQOjUIXJdhK98J7iaXNn
/cRg5G5iwLPOaKd0GLoL8LKtAwIeFiIU/dUwgHvZjeW7a+nGZrvzBeOYayl4LeG5
ysCSF9GdF2/7jgS9H9QgQUOCYHrJvaec5RRUoM9Ywuox5wGVGSSwMlbN9ynw9Tca
pOYgPHYbZU6OHkCAO99BZ42SgzgZaogMNEn5apRxJMZctQWfHbKhI7bGgznT+TGv
FqtZGF6F+6+tVOqPdq689ZhvIUDiy1BHzYbgeEahV7YaH3g4N9VlIstBjOvdUgN9
EFKgIh5DGHwyQeRvhiJS
=VDKe
-----END PGP SIGNATURE-----

gaikokuji...@gmail.com

unread,
Jun 6, 2016, 9:26:53 PM6/6/16
to qubes-users, gaikokuji...@gmail.com, tas...@openmailbox.org
Thanks! I managed to get it installed, and thanks to another post got past the bsod that was dogging me (the 512mb default mem setting) now just trying to figure out updating the new winhvm (think that is the right term?)
Reply all
Reply to author
Forward
0 new messages