lvmteam / lvm2

Mirror of upstream LVM2 repository
https://gitlab.com/lvmteam/lvm2
GNU General Public License v2.0
133 stars 72 forks source link

Mounting verity partition results in Can't open blockdev error #41

Open sla89 opened 3 years ago

sla89 commented 3 years ago

Hello together,

when I mount my verity device after creating it using

dmsetup --noudevrules --noudevsync --readonly create vroot 
        --table "0 ${DATA_SECTORS} verity 1 ${root} ${root} 4096 4096 ..."

the mount succeeds but dmesg gives me the error

[    4.754279] 007: /dev/mapper/vroot: Can't open blockdev

The content mounted looks good and everything works and even dmsetup status gives me

....
vroot: 0 203112 verity V

I am a little bit worried about the error message Can't open blockdev even everything is working as expected..

I am currently on v2_02_181 with linux kernel 5.4.77-rt43. I have tried to update to v2_03_10 but the error remains. Maybe I have to add that before I was using kernel 4.19.148-rt64 and there I didn't had that message.

Any suggestion is welcome.

Thank you and with best regards, Stefan

lgela18 commented 3 years ago

Hi, I had similar issue, caused by snap-store, and here is my solution.

Warning:: I do NOT guarantee, that this will work for you as well, so do your own research before proceeding.

Problem:: [ 8.661416] /dev/loop5: Can't open blockdev Solution:: sudo losetup -d /dev/loop5 Sol_Source:: https://github.com/guysoft/CustomPiOS/issues/46