Answered

Linux > change the Lima path (directory) from ~/Lima/ to something else

I'd like to change the Lima path on my Lima machine. Is this possible and how can I do this?

Comments (5)

photo
1

Hello Jelle,

you can change the default mountpoint by passing the path to the `lima start` command like `lima start mountpoint=/path/to/lima`.

Hope that helps.

photo
1

Thanks. It worked partly.

If I mount to my external HDD Lima hangs as soon as I cd or ls into the mounted Lima directory. Also nautilus hangs and the terminal. All pretty serious. I have to reboot my system.

But if I mount to /home/jelle/[whateveriwant]/

everything works fine.

Is this a know limitation, or should mounting an external HHD work?

photo
1

Hello Jelle,

just to be clear the `mountpoint` is not the path where `lima` stores data. It's just a viewpoint at the Lima FS. Why would you like to have mountpoint on the external drive?

Anyhow, the problem might be in the way the underlying FS of your external HDD is mounted.

I may expect some issues (not verified though) if it's mounted via `autofs`.

photo
1

Ah. It's wise to point out that the 'mountpoint' is not what I thought it was.

I would like to have mountpoint on the external drive so I could move all my movies in that location and pin them. So I have the movies on my linux device and on the Lima.

I don't think it would work if I put my terrabyte of movies on my Lima drive if the Lima is mounted on a 125 GB SSD. Would it?

And even then, I would still like to pin all my movies so they are stored locally on my Linux machine.

I would like that because with the movies on my external HDD it's (I think) easier for my Emby server on the same linux machine to stream the content all over my house;

photo
1

Hello Jelle,

what you need to change is not the mounpoint then, it's the directory where the Lima application stores its own data, which is a subdirectory of `~/.local/share/lima`.

What you could do is:

  • stop Lima ;
  • move that directory to your external drive ;
  • create a symlink from the old location to the new one ;
  • restart Lima.

For instance, if your external drive is mounted at `/my/external/drive`:

  1. lima stop
  2. mv ~/.local/share/lima /my/external/drive
  3. ln -s /my/external/drive ~/.local/share/lima
  4. lima start

photo