Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-21-2014, 11:27 PM
|
#1
|
LQ Newbie
Registered: Jul 2014
Posts: 5
Rep: 
|
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.
|
|
|
07-22-2014, 02:09 AM
|
#2
|
Senior Member
Registered: Mar 2012
Posts: 1,882
|
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.
|
|
|
07-23-2014, 08:58 PM
|
#3
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323
Rep: 
|
dd works, but something like clonezilla might be easier for you.
|
|
|
07-30-2014, 05:22 PM
|
#4
|
LQ Newbie
Registered: Jul 2014
Posts: 5
Original Poster
Rep: 
|
Well I tried to DD the whole drive (took 2 days to complete) but the copy would not boot.
Clonezilla gives errors about not being able to make the partitions and doesn't complete.
|
|
|
07-30-2014, 07:21 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Clones don't always work with different hardware. It could be that you need to fix some naming issues.
|
|
|
07-30-2014, 08:58 PM
|
#6
|
LQ Newbie
Registered: Jul 2014
Posts: 5
Original Poster
Rep: 
|
Quote:
Originally Posted by jefro
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.
|
|
|
07-31-2014, 12:46 AM
|
#7
|
LQ Newbie
Registered: Jul 2014
Posts: 5
Original Poster
Rep: 
|
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
|
|
|
07-31-2014, 03:13 PM
|
#8
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
It is not the same. The cloned hard drive is different by many reasons.
I'd think it unlikely it is not initializing fast enough.
|
|
|
07-31-2014, 07:31 PM
|
#9
|
Senior Member
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323
Rep: 
|
Do you get anything when you try to boot from the new drive?
|
|
|
07-31-2014, 10:51 PM
|
#10
|
LQ Newbie
Registered: Jul 2014
Posts: 5
Original Poster
Rep: 
|
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.
|
|
|
08-01-2014, 04:31 PM
|
#11
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
" 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.
Last edited by jefro; 08-01-2014 at 04:33 PM.
|
|
|
All times are GMT -5. The time now is 05:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|