Re: Cloning hdds of different sizes

2014-05-29 Thread Catalin Soare
On May 29, 2014 10:50 PM, "Ralf Mardorf" wrote: > > On Thu, 2014-05-29 at 22:05 +0300, Catalin Soare wrote: > > dd was running like so: dd if=/dev/sdb of=/dev/sda. > > #!/bin/sh > dd if=/dev/sdb of=/dev/sda > echo "dd exit status: $?" >> dd.log > exit > > Assumed the exit status isn't 0, there was

Re: Cloning hdds of different sizes

2014-05-29 Thread Ralf Mardorf
On Thu, 2014-05-29 at 22:05 +0300, Catalin Soare wrote: > dd was running like so: dd if=/dev/sdb of=/dev/sda. #!/bin/sh dd if=/dev/sdb of=/dev/sda echo "dd exit status: $?" >> dd.log exit Assumed the exit status isn't 0, there was an error. -- To UNSUBSCRIBE, email to debian-user-requ...@lists

Re: Cloning hdds of different sizes

2014-05-29 Thread Catalin Soare
On May 29, 2014 7:50 PM, "Steve Litt" wrote: > > On Wed, 28 May 2014 21:34:12 +0100 > Philip Ashmore wrote: > > > On 28/05/14 21:02, Steve Litt wrote: > > > > If you want to expand a partition to include the unallocated space, > > > I think you have to use whatever partition butts up against the

Re: Cloning hdds of different sizes

2014-05-29 Thread Steve Litt
On Wed, 28 May 2014 21:34:12 +0100 Philip Ashmore wrote: > On 28/05/14 21:02, Steve Litt wrote: > > If you want to expand a partition to include the unallocated space, > > I think you have to use whatever partition butts up against the > > unallocated space to make bigger. If there's a tool to e

Re: Cloning hdds of different sizes

2014-05-29 Thread Marko Randjelovic
On Tue, 27 May 2014 21:15:45 -0700 Patrick Bartek wrote: > 8. Create a new grub.cfg: Use grub-mkconfig. > > 9. Install to MBR of the 300GB drive: Use install-grub. I use LILO, but make sure you install GRUB on your new (300GB) drive, use fdisk -l /dev/sd[a-z] to find what is what. -- http://

Re: Cloning hdds of different sizes

2014-05-28 Thread Philip Ashmore
Hi there. I've commented in-line below. On 28/05/14 21:02, Steve Litt wrote: > On Wed, 28 May 2014 02:03:48 +0300 > Catalin Soare wrote: > >> Hello, >> >> In one of my computers I have 2 HDDs. One of them is a 250 GB drive >> (debian) and the other is a 300 GB (data). >> >> I've decided to giv

Re: Cloning hdds of different sizes

2014-05-28 Thread Steve Litt
On Wed, 28 May 2014 02:03:48 +0300 Catalin Soare wrote: > Hello, > > In one of my computers I have 2 HDDs. One of them is a 250 GB drive > (debian) and the other is a 300 GB (data). > > I've decided to give one of them to my parents because the one they > have right now makes some strange noise

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
Gah no seriously got has nothing to do with your disk size it is just Far far more flexible with partition layouts. Extended partition slices are IMHO a horrible hack. Got hasn't got the 4 primary partitions limits of msdos labels and is just more flexible. I wasn't suggesting uefi which is a slig

Re: Cloning hdds of different sizes

2014-05-27 Thread Patrick Bartek
On Wed, 28 May 2014, Catalin Soare wrote: > In one of my computers I have 2 HDDs. One of them is a 250 GB drive > (debian) and the other is a 300 GB (data). > > I've decided to give one of them to my parents because the one they > have right now makes some strange noises. So I've backed up and >

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
When I say - will only work with an msdos disklabel, I meant will only work for msdos disklabels IF you have free primary parition slots. GPT doesn't have this issue and if you can boot GPT labeled disks you should go with this. On 28 May 2014 12:22, Joel Wirāmu Pauling wrote: > You can do this s

Re: Cloning hdds of different sizes

2014-05-27 Thread Joel Wirāmu Pauling
You can do this several ways. Way 1) Filesystem level copy + grub install. a)Use a rescue or minimal live boot environment, partition your new disk as you like; complete the minimal install. b)Drop to a shell in the live environment, and mount the new root and fstab layout under a tmp target mou

Cloning hdds of different sizes

2014-05-27 Thread Catalin Soare
Hello, In one of my computers I have 2 HDDs. One of them is a 250 GB drive (debian) and the other is a 300 GB (data). I've decided to give one of them to my parents because the one they have right now makes some strange noises. So I've backed up and cleaned up the drive, and as we speak I am clon