• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Backing up USB drive - blockdev --getsize64 then what?

    Scheduled Pinned Locked Moved
    General
    2
    8
    877
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fog_Newb
      last edited by Fog_Newb

      Hi,

      When backing up different drives, I’ve been changing the Host Primary Disk settings to specify the drive. I use the disk size. I have to do this for systems with NVME systems (assuming the nvme drive size is different). Today I need to back up and external USB drive. I wasn’t sure how to get the size of that using the blockdev command.

      The scenario is;

      Backing up external Wii U drive, an external 1TB SSD using a laptop with 2 internal 250GB SSDs. What steps should I take to get the correct Host Primary Disk settings for backing up the external drive?

      Thank you

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Fog_Newb Well, what’s the output of blockdev --getsize64 ... for the external drive?

        Not sure I understand your question? You’d simply put that number into the Host Primary Disk field.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        F 1 Reply Last reply Reply Quote 0
        • F
          Fog_Newb @Sebastian Roth
          last edited by

          @Sebastian-Roth This is going to sound really dumb but I don’t know how to query FOS to figure out how the USB drive will be listed. Like to find out what /dev/???

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Fog_Newb To get a list of the so called block devices you can use the command lsblk. If you are not sure which one is which you can get the partition table and also disk name/vendor by running fdisk -l /dev/... for each of the devices.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            F 2 Replies Last reply Reply Quote 0
            • F
              Fog_Newb @Sebastian Roth
              last edited by

              @Sebastian-Roth Thank you so much.

              Have there been any updates in dealing with dual NVMe drives that are the same size?

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @Fog_Newb said in Backing up USB drive - blockdev --getsize64 then what?:

                Have there been any updates in dealing with dual NVMe drives that are the same size?

                Yes, you can use disk serial as well.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                F 1 Reply Last reply Reply Quote 0
                • F
                  Fog_Newb @Sebastian Roth
                  last edited by Fog_Newb

                  @Sebastian-Roth

                  That is awesome. I tried using a power-shell command to get the drive serial number.

                   Get-PhysicalDisk | FT FriendlyName,AdapterSerialNumber,serialnumber 
                  

                  Just to confirm, what this command lists as the Adapter Serial Number matches what Crystal Disk Info shows as the NVMe serial numbers as well as the serial number listed on the box the NVMe came in. Just to note, the SSD’s do not have an Adapter serial number

                  Thanks again for all you help.

                  1 Reply Last reply Reply Quote 0
                  • F
                    Fog_Newb @Sebastian Roth
                    last edited by Fog_Newb

                    @Sebastian-Roth Unfortunately the USB external drive wasn’t see by FOG, I tried the serial number listed in Windows but it backed up an NVMe drive Please disregard

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    247

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project