Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vDisk] failed to open 'dev/nvme0n11' in read-only mode ... #714

Closed
matfeb opened this issue Jan 22, 2021 · 9 comments
Closed

[vDisk] failed to open 'dev/nvme0n11' in read-only mode ... #714

matfeb opened this issue Jan 22, 2021 · 9 comments

Comments

@matfeb
Copy link

matfeb commented Jan 22, 2021

Hi,

I'm trying to use a Ubuntu 20.10 vdi file but I have an error message.

[      0.469404] Initramfs unpacking failed : Decoding failed
[      1.779512] psmouse serio1 : synaptics : Unable to query device : -5
ERROR: failed to open '/dev/nvme0n11' in read-only mode: No such file or directory
Failed to mount exfat fs -5
Failed to find image location

I have installed ubuntu 20.10 64 bits in Virtual Box on a Windows 10 64 bits system with the help of your documentation, then launched the ventoy script to transform the vdi.

Regards,

@ventoy
Copy link
Owner

ventoy commented Jan 22, 2021

Initramfs unpacking failed
Is the vdi file corrupted? Did you copy the vdi file to USB stick and boot from Ventoy or you boot the vdi file in your hdd and boot with Ventoy?

Please check that whether the vdi file still boot ok in the virtualbox?

@matfeb
Copy link
Author

matfeb commented Jan 22, 2021

Ok, well I have a particular configuration.

Is the vdi file corrupted? Did you copy the vdi file to USB stick and boot from Ventoy or you boot the vdi file in your hdd and boot with Ventoy?

I'm not booting from an USB key, I have a Thunderbolt 3 case with an nvme inside. But it's the same as an USB key.
ISO are working great by the way.

Image is working in VirtualBox, I've just tried. Linking the vdi file to the VM from the NVMe external disk.
I have tried to change the controler device from SATA to NVMe but it's not working.
Now I have a black screen instead of error messages.

@matfeb
Copy link
Author

matfeb commented Jan 22, 2021

I have booted in rescue mode and I have one more error message :

Lockdown: vtoydump: /dev/mem,kmem,port is restricted; see man kernel_lockdown.7
ERROR: failed to open '/dev/nvme0n11' in read-only mode: No such file or directory
Failed to mount exfat fs -5
Failed to find image location

https://www.mankier.com/7/kernel_lockdown

I'm booting with secure boot but I authorized the bios as written in your documentation.

@matfeb
Copy link
Author

matfeb commented Jan 22, 2021

Ok, I have disabled the secure boot and the system is booting.

It seems that vdi is not compatible with secure boot ?

@ventoy
Copy link
Owner

ventoy commented Jan 22, 2021

Maybe something about kernel_lockdown feature. It is automatically turned on when secure boot in enabled.
I'm not very sure and will test it later.

@matfeb
Copy link
Author

matfeb commented Jan 22, 2021

Ok thanks.
Anyway if I disable secure boot, it's working.

ventoy added a commit that referenced this issue Jan 23, 2021
@ventoy
Copy link
Owner

ventoy commented Jan 23, 2021

OK. I have fixed it. It will be ok in the next Ventoy release.
If you want you can also try it as follows:

  1. Boot the vdi file in VirtualBox. Download and run the latest vtoyboot-1.0.8 https://github.com/ventoy/vtoyboot/releases/tag/v1.0.8

  2. You need to update grub.cfg file in the VTOYEFI partition on the disk which Ventoy installed.
    The grub.cfg file is in grub\grub.cfg and the latest is in https://github.com/ventoy/Ventoy/blob/master/INSTALL/grub/grub.cfg

fengjixuchui added a commit to fengjixuchui/Ventoy that referenced this issue Jan 23, 2021
@matfeb
Copy link
Author

matfeb commented Jan 24, 2021

Ok thanks, let me try tomorrow I will give you a feedback and close the issue.

@matfeb
Copy link
Author

matfeb commented Jan 25, 2021

Ok it's working with secure boot.
Many thanks !

@matfeb matfeb closed this as completed Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants