Results 1 to 5 of 5

Thread: External USB Device Constantly Changing Destination After Reboot

  1. #1
    Join Date
    Mar 2021
    Beans
    2

    External USB Device Constantly Changing Destination After Reboot

    So I have six disks internally, /dev/sda is my SSD for boot, /dev/sdb and /dev/sdc are in a zpool, and /dev/sdd, /dev/sde, and dev/sdf are in another zpool. Those are all fine and dandy.

    I plugged in a large external for backups. It mounted the first time to /dev/sdg and I used that to point when setting up Deja Dup to do my backups. All good until I apply updates and a reboot is needed. The external USB will show up at /dev/sdc or somewhere else.

    What can I do to remedy this? I'm not the smartest at this but with a lot of trial and error in virtual machines, I've got pretty much everything I want configured the way I need for my use case. The only thing I can't figure out is this. I have to unplug the device, reboot, wait, then plug back in and it automounts to /dev/sdg and Deja Dup stops complaining.

    I appreciate the help!

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: External USB Device Constantly Changing Destination After Reboot

    Those device identifiers aren't remotely permanent; they're just the order that they got round to notifying that they exist. Use UUIDs instead.

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: External USB Device Constantly Changing Destination After Reboot

    As CatKiller says you are doing things wrongly as the device names are not static.

    I'm not sure how deja-dup works as I have never used it but if you either use its UUID which you can find with command
    Code:
    sudo blkid
    or give the partition on your external hard drive a label it will automatically mount to /media/<username>/label and it will not matter if the /dev/sdx nomenclature changes as that is not the way it will now work.

    As this is an external drive I suggest the label is the better way to go with this; if it is mounted with an entry in /etc/fstab then the UUID is probably better but both will work better than /dev/sdx.

    See
    Code:
    Indicating the device and filesystem
           Most  devices  are  indicated by a filename (of a block special device), like /dev/sda1, but there are other possibili‐
           ties.  For example, in the case of an NFS mount, device may look like knuth.cwi.nl:/dir.  It is also possible to  indi‐
           cate  a block special device using its filesystem label or UUID (see the -L and -U options below), or its partition la‐
           bel or UUID.  Partition identifiers are supported for example for GUID Partition Tables (GPT).
    which is from man mount.

    Format the external disk partition as ext4 if it's not already ext4 to ensure permissions are retained for the backup files, label it as something meaningful to you, and all should then be good to go once you edit your current deja-dup destination configuration.
    Last edited by ajgreeny; March 8th, 2021 at 08:19 PM.

  4. #4
    Join Date
    Mar 2021
    Beans
    2

    Re: External USB Device Constantly Changing Destination After Reboot

    Thank you. I swear I tried that but for some reason it didn't work and thought maybe I stumbled upon some outdated info. Worked this time with no issues.

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: External USB Device Constantly Changing Destination After Reboot

    Great news!

    Please mark as SOLVED from the Thread Tools menu up-top if this is now solved to your satisfaction. It is a great help to other users searching the forum.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •