How to move sda1 from a hard drive to a flash disk

  • Well, the source path ended in docker so that's how it went over.


    What I would do is make sure you still have everything in /var/lib/docker as it was.


    Stop the docker service:


    Code
    sudo service docker stop


    Then delete the erroneous copy:


    Code
    sudo rm -r /srv/dev-disk-by-id-ata-ST31000528AS_5VP8RK5N-part3/Docker


    Copy again:


    Code
    sudo cp -r -p /var/lib/docker /srv/dev-disk-by-id-ata-ST31000528AS_5VP8RK5N-part3/

    Then restart docker:


    Code
    sudo service docker start


    Then in OMV WebGUI open System | OMV-Extras | Docker Tab.


    Then set the Docker Storage path as /srv/dev-disk-by-id-ata-ST31000528AS_5VP8RK5N-part3/docker

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

    Edited once, last by gderf ().

  • sudo rm -r var/lib/docker (but make very sure you are happy with your current setup).


    Use the OMV WebGUI to remove that Docker shared folder and its contents if that's where you created it.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380 + Silverstone DS380 DAS Box.

  • slouma84

    Added the Label resolved
  • Hello,


    I tried to remove var/lib/docker with sudo rm -r var/lib/docker but I got the following message :

    Code
    rm: cannot remove 'var/lib/docker': No such file or directory

    Weird as I did used the cp command...I tried navigating on var folder and I did not find the docker folder....


    Any thoughts?


    Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!