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

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

Scheduled Pinned Locked Moved
General
2
8
943
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 May 3, 2023, 9:01 AM May 3, 2023, 3:00 PM

    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 May 4, 2023, 3:45 PM

      @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 May 7, 2023, 4:55 AM Reply Quote 0
      • F
        Fog_Newb @Sebastian Roth
        last edited by May 7, 2023, 4:55 AM

        @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 May 7, 2023, 5:46 AM

          @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 May 9, 2023, 5:01 PM Reply Quote 0
          • F
            Fog_Newb @Sebastian Roth
            last edited by May 9, 2023, 5:01 PM

            @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 May 10, 2023, 4:41 PM

              @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 May 11, 2023, 7:59 PM Reply Quote 0
              • F
                Fog_Newb @Sebastian Roth
                last edited by Fog_Newb May 11, 2023, 2:34 PM May 11, 2023, 7:59 PM

                @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 May 13, 2023, 1:12 AM May 12, 2023, 12:41 AM

                  @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
                  1 / 1
                  • First post
                    1/8
                    Last post

                  209

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project