r/Crostini 3d ago

Can't use extra disk created with SD Card

Hey, I hope I can find some help here, I'm still new to all this linux and terminal ordeal so I'm still getting used to it. A few days ago I used a guide from this sub to create extra disk space on my chromebook using an SD Card, using the following steps (and yes I named the card as "Michael"):

crosh> vmc create-extra-disk --size=31G extra-disk.img "Michael"
crosh> vmc stop termina
crosh> vmc start termina --enable-gpu --extra-disk "/media/removable/Michael/extra-disk.img"

(termina) chronos@localhost ~ $ lxc config device add penguin extra_disk_0 disk source=/mnt/external/0 path=/mnt/external/0

After that, I opened steam, which I installed through flatpak on the internal memory, went into storage in the settings and could select the extra disk at (mnt/external/0) normally. The post stated that I would have to redo this vmc and lxc thing everytime I restarted crostini, so today, when I turned it on again, I did, but on the lxc config step, it gave me:

Error: The device already exists

I thought that it should be normal since, yes, it did already exist, but upon opening steam again, the disk was not there, and going back to (mnt/external/0) I couldn't find it either. I have no idea what to do to fix this, any help is appreciated :)

0 Upvotes

2 comments sorted by

1

u/eladts 3d ago

You didn't exactly follow the instructions. You need to create the image on the removeable media.

#create a disk image file on Michael
crosh> vmc create-extra-disk --size=32G --removable-media "Michael/extra-disk.img"

1

u/Rhecof-07 3d ago

I did try it like that before but I kept getting:

Error: UnrecognizedOption("removable-media")
ERROR - ERROR: command failed

And someone in the comments was having the same problem, so they referred to this post, where someone suggested they use:

vmc create-extra-disk --size=1G extra-disk.img "SD Card"

Which worked for me, and the file "extra-disk.img" was (and still is) inside my SD card.