ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Cloning XenServer on USB or SD

    IT Discussion
    7
    37
    4.2k
    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.
    • scottalanmillerS
      scottalanmiller
      last edited by

      The standard tool for cloning is the dd command. No third party tools needed.

      DustinB3403D 1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403 @scottalanmiller
        last edited by

        @scottalanmiller said in Cloning XenServer on USB or SD:

        The standard tool for cloning is the dd command. No third party tools needed.

        Can you provide a sample step by step, as I've not used DD on linux before and the documentation I've seen has been "sloppy" IMO.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • DanpD
          Danp
          last edited by

          Can you use dd to save it to a file, which can then be pushed to a different USB stick later?

          scottalanmillerS 2 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Danp
            last edited by

            @Danp said in Cloning XenServer on USB or SD:

            Can you use dd to save it to a file, which can then be pushed to a different USB stick later?

            Yes. The "file" would be what you'd call an ISO file in the Windows world.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @DustinB3403
              last edited by

              @DustinB3403 said in Cloning XenServer on USB or SD:

              @scottalanmiller said in Cloning XenServer on USB or SD:

              The standard tool for cloning is the dd command. No third party tools needed.

              Can you provide a sample step by step, as I've not used DD on linux before and the documentation I've seen has been "sloppy" IMO.

              Assuming the devices refer to the two USB devices:

              dd if=dev/sda1 of=/dev/sdb1
              
              DustinB3403D BRRABillB 3 Replies Last reply Reply Quote 2
              • scottalanmillerS
                scottalanmiller @Danp
                last edited by

                @Danp said in Cloning XenServer on USB or SD:

                Can you use dd to save it to a file, which can then be pushed to a different USB stick later?

                dd if=dev/sda1 of=/tmp/mybootusb.iso
                
                1 Reply Last reply Reply Quote 4
                • BRRABillB
                  BRRABill
                  last edited by

                  Where was all this when I was talking about ways to do this remotely??

                  🙂

                  dd makes an exact clone?

                  DashrenderD 1 Reply Last reply Reply Quote 0
                  • DashrenderD
                    Dashrender @BRRABill
                    last edited by

                    @BRRABill said in Cloning XenServer on USB or SD:

                    Where was all this when I was talking about ways to do this remotely??

                    🙂

                    dd makes an exact clone?

                    Yep.

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403 @scottalanmiller
                      last edited by

                      @scottalanmiller said in Cloning XenServer on USB or SD:

                      @DustinB3403 said in Cloning XenServer on USB or SD:

                      @scottalanmiller said in Cloning XenServer on USB or SD:

                      The standard tool for cloning is the dd command. No third party tools needed.

                      Can you provide a sample step by step, as I've not used DD on linux before and the documentation I've seen has been "sloppy" IMO.

                      Assuming the devices refer to the two USB devices:

                      dd if=dev/sda1 of=/dev/sdb1
                      

                      Is sda1 the device being copied from or is sdb1 the device being copied?

                      1 Reply Last reply Reply Quote 0
                      • DanpD
                        Danp
                        last edited by

                        Just guessing, but if = input file and of = output file

                        DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 3
                        • DustinB3403D
                          DustinB3403 @Danp
                          last edited by

                          @Danp said in Cloning XenServer on USB or SD:

                          Just guessing, but if = input file and of = output file

                          That is a rational guess.

                          DanpD 1 Reply Last reply Reply Quote 1
                          • DanpD
                            Danp @DustinB3403
                            last edited by

                            @DustinB3403 That's me... Mr. Rational. 😆

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @Danp
                              last edited by

                              @Danp said in Cloning XenServer on USB or SD:

                              Just guessing, but if = input file and of = output file

                              Yup, that's what they mean.

                              1 Reply Last reply Reply Quote 0
                              • BRRABillB
                                BRRABill
                                last edited by

                                How does dd (and CloneZilla too, I presume) work if the drive you are cloning to is larger.

                                Say I have a 32GB and clone to a 64GB. Can you do that? Does it just leave empty space on the larger drive?

                                I was wondering if you could clone to a larger drive, that I could clone my 32GB boot USB to a 64GB USB, THEN run the upgrade so it will use the larger partition sizes.

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @BRRABill
                                  last edited by

                                  @BRRABill said in Cloning XenServer on USB or SD:

                                  How does dd (and CloneZilla too, I presume) work if the drive you are cloning to is larger.

                                  Say I have a 32GB and clone to a 64GB. Can you do that? Does it just leave empty space on the larger drive?

                                  It's a straight copy, block by block. It doesn't care what size the drive is. It just writes to it identically. It ignores that the device might be larger. It will clone to smaller too and just fails when it fills up too quickly.

                                  BRRABillB 2 Replies Last reply Reply Quote 1
                                  • BRRABillB
                                    BRRABill @scottalanmiller
                                    last edited by

                                    @scottalanmiller said

                                    It's a straight copy, block by block. It doesn't care what size the drive is. It just writes to it identically. It ignores that the device might be larger. It will clone to smaller too and just fails when it fills up too quickly.

                                    So what I want to do should theoretically work?

                                    DustinB3403D 1 Reply Last reply Reply Quote 0
                                    • DustinB3403D
                                      DustinB3403 @BRRABill
                                      last edited by

                                      @BRRABill said in Cloning XenServer on USB or SD:

                                      @scottalanmiller said

                                      It's a straight copy, block by block. It doesn't care what size the drive is. It just writes to it identically. It ignores that the device might be larger. It will clone to smaller too and just fails when it fills up too quickly.

                                      So what I want to do should theoretically work?

                                      You'd be able to write to a larger device, but trying to change the partitions by hand seems like a bad idea.

                                      BRRABillB 1 Reply Last reply Reply Quote 0
                                      • BRRABillB
                                        BRRABill @DustinB3403
                                        last edited by

                                        @DustinB3403 said

                                        You'd be able to write to a larger device, but trying to change the partitions by hand seems like a bad idea.

                                        I wouldn't do it by hand. I am ASSUMING (lol) that the XS upgrade would do that for me, as I think it says it does.

                                        1 Reply Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender
                                          last edited by

                                          Clonezilla has and expert option that allows you to set additional settings to grow the partitions proportionally to fill the larger disk.

                                          You can also restore to a smaller disk, as long as your data portion is smaller than the actual amount of space on the new drive, but it's much more difficult to get to work.

                                          BRRABillB 1 Reply Last reply Reply Quote 0
                                          • BRRABillB
                                            BRRABill @Dashrender
                                            last edited by

                                            @Dashrender said

                                            You can also restore to a smaller disk, as long as your data portion is smaller than the actual amount of space on the new drive, but it's much more difficult to get to work.

                                            And requires a degree in wizardry! LOL.

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