LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-21-2014, 11:27 PM   #1
pogoALARM
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 07-22-2014, 02:09 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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.
 
Old 07-23-2014, 08:58 PM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
dd works, but something like clonezilla might be easier for you.
 
Old 07-30-2014, 05:22 PM   #4
pogoALARM
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-30-2014, 07:21 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Clones don't always work with different hardware. It could be that you need to fix some naming issues.
 
Old 07-30-2014, 08:58 PM   #6
pogoALARM
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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.
 
Old 07-31-2014, 12:46 AM   #7
pogoALARM
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-31-2014, 03:13 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
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.
 
Old 07-31-2014, 07:31 PM   #9
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Do you get anything when you try to boot from the new drive?
 
Old 07-31-2014, 10:51 PM   #10
pogoALARM
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 08-01-2014, 04:31 PM   #11
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,991

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
" 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning bootable USB flash drive onto larger flash drive - best method? cilbuper Linux - General 5 02-26-2014 09:51 AM
How to clone USB Drive px87 Linux - Software 3 12-09-2013 01:12 PM
[SOLVED] dd'ing a usb drive image to a larger usb drive? Abscissa256 Linux - General 3 01-03-2012 02:44 AM
Clone 8 GB USB DOS boot disk to 4 GB USB drive agntsgotnosecret Linux - General 2 03-22-2010 09:40 AM
How to make bootable partion on USB drive to install GRUB... psmurthy Linux From Scratch 7 03-14-2010 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration