Can I mount more then one ext2 block device?
yhw2003 opened this issue · comments
I create a new empty ext2 image file, and mount it as
CheerpXApp.create({devices:[{type:"bytes",url:"static/debian_mini_20230519_5022088024.ext2",name:"block1"},{type:"bytes",url:"static/extra.ext2",name:"block2"}],mounts:[{type:"ext2",dev:"block1",path:"/"},{type:"ext2",dev:"block2",path:"/extra"},{type:"cheerpOS",dev:"/app",path:"/app"},{type:"cheerpOS",dev:"/str",path:"/data"},{type:"devs",dev:"",path:"/dev"}], networkInterface: networkInterface, activityInterface: {cpu: cpuCallback, dev: devCallback}}).then(runTest, failCallback);
Can you try to mount it on an existing directory such as /mnt/
?
Can you try to mount it on an existing directory such as
/mnt/
?
I can mount the device block1 to multiple place, But i can't mount the block2.
Can you try to mount it on an existing directory such as
/mnt/
?
That's not work. And got a same result.
How is the new ext2 image generated? Please try again with the following command:
mkfs.ext2 -r 0 static/extra.ext2
How is the new ext2 image generated? Please try again with the following command:
mkfs.ext2 -r 0 static/extra.ext2
That worked,thanks,i didn't use the args"-r 0" maybe is this caused the error.
CheerpX currently only supports revision 0 of the Ext2 filesystem, hence the need for -r 0
option.
This is visible in the GitHub Action steps as well: https://github.com/leaningtech/webvm/blob/main/.github/workflows/deploy.yml#L154
I am closing this issue. For further support please join our Discord: https://discord.gg/yTNZgySKGa