Menu

Mount drive based on label

Help
Sam L
2017-09-05
2017-10-15
  • Sam L

    Sam L - 2017-09-05

    Hi All,

    I'm looking to make an external backup HDD that can be used to backup multiple machines.

    I'd like both Clonezilla and the images to be on the same HDD, it looks like this can be done by booting to RAM then mounting it.

    I want it to image everything except the clonezilla drive automatically but from what I understand, depending on how many HDDs are on the PC the mountpoint (I.E. SDx) can change meaning mounting it as a specific SDx could mean it trying to mount the wrong drive on some systems.

    The command:
    lsblk -o mountpoint,label

    Returns the drives label and mountpoint, is there a way I can use this result in a shell script, label the backup drive "backupdrive" and write some code to say something like:

    Where label = a,'backupdrive'
    mount a /home/partimag

    TLDR:
    Only input is selecting take backup or restore backup
    Boot to ram then use same drive as image repository
    Find the image drive based on its label

    I would appreciate any advice on this,
    Sam

     
  • Steven Shiau

    Steven Shiau - 2017-09-12

    Thanks for this idea. Will try to have this feature in the future release. We will keep you posted when it's ready for you to test. Thanks.

    Steven

     
  • Steven Shiau

    Steven Shiau - 2017-09-19

    Please give Clonezilla live 2.5.3-1 a try:
    http://clonezilla.org/downloads.php
    You can use the boot parameter ocs_repository to do that, like:
    ocs_repository="dev:///LABEL='clonezilla img repo'"
    Please make sure there is only one such label existing on your machine. Otherwise it might go wrong.
    For more details, please check the changelog for 2.5.3-1:
    http://clonezilla.org/downloads/testing/changelog.php

    Steven

     

    Last edit: Steven Shiau 2017-09-19
  • Sam L

    Sam L - 2017-10-12

    Hi Steven,

    Great work! This works just as I want to, I can now use this function in combination with savedisk autoname all and restoredisk ask_user ask_user meaning the backup is taken by simply restarting on any system with the singular USB plugged in!

    Many thanks,
    Sam

     
  • Steven Shiau

    Steven Shiau - 2017-10-15

    Cool! Thanks for your feedback.

    Steven

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.