Easiest way to clone multi partion USB drive to larger USB drive
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Easiest way to clone multi partion USB drive to larger USB drive
My searches didn't quite find what I think I need to do.
Here is my situation, I installed Arch linux ARM onto a NAS unit with a USB external drive connected to it. I currently have the OS booting from a 4Gb partition on the drive and the rest is a second primary partition for storage of my media. The Drive is about full and I have purchased a larger drive to use.
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 12658687 6328320 83 Linux
/dev/sda2 12658688 1250263726 618802519+ 83 Linux
The NAS only has one USB port so I would use a PC booted with a live disk and both USB drives connected to copy from one to the other. I've had issues trying to do a similar operation before where it copied the partition to be the same size and then broke when I tried to resize after. I would like a method that will copy the first partition for boot/OS exactly the same, then do the second to fit the rest of the drive while. That way I can easily take the new drive and plug it into the NAS and have it boot right up without having to reconfigure anything.
I'd use dd to start with.
You only need to run it to just after the start of sda2, so it gets the bootloader and all of sda1.
Then delete the (partial) sda2, create a new partition filling the drive, then format & rsync.
Although there's really no reason you can't dd the lot then resize sda2 after.
Last edited by descendant_command; 07-22-2014 at 02:10 AM.
Clones don't always work with different hardware. It could be that you need to fix some naming issues.
I am trying to use the copied drive on the same hardware. The copy is on a larger capacity drive, I am trying to make the boot (sda1) partition exactly the same with the second partition filling the rest of the space for storage.
I believe my issue is actually that the new drive does not initialize fast enough for the bootloader on my pogoplug to find it.
old drive was a usb2.0 640Gb seagate and new one is usb 3.0 1tb WD
The reason I believe it to be the drive is I have read others who had issues with certain 3.0 drives with this device, also if I use a powered USB hub between the pogoplug and the drive so the disk is already spinning it will boot.
" if I use a powered USB hub between the pogoplug and the drive so the disk is already spinning it will boot."
Then we can say that it won't work and no way to fix it with this drive without a powered hub. It may be possible that a laptop portable usb drive might work.
It could be that a usb 2x drive might work also or different brand usb 3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.