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!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


    Einmal editiert, zuletzt von 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!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • I dunno. Try rebooting.

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


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • slouma84

    Hat das Label gelöst hinzugefügt.
  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!