TransWikia.com

Installing system on file?

Ask Ubuntu Asked by ctm-8400 on December 29, 2021

I’m trying to install Ubunutu 20.04 LTS on a file. What I mean by this, is that I created a file with

truncate -s 10G file.bin

and now I want to write to it the same data that would have been written to /dev/sda have I tried to install ubuntu on it. I tried to use ubiquity, but nothing worked. Has anyone done something like this?

I tried running following commands:

mknod /dev/sdd b 7 200 
losetup /dev/sdd ./file.bin

As per this link: Install Ubuntu on a loop device?, but I get an unspecified error.

I don’t know what I did different but now I got this error message:
"failed to make ext4 partition /dev/sdd1"

If I manually mkfs.ext4 file.bin I get this error "The efi file system creation in partition #1 of /dev/sdd failed."

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP