You are not logged in.

#1 2011-02-06 15:13:38

willy9
Member
Registered: 2009-04-14
Posts: 56

Disk size after copying a disk with dd

Hi all,

I recently bought a new hard drive, larger than my old one. I thought I'd be smart, and copied partitions using dd:

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

I noticed today that there is something wrong with the size remaining on the new drive, and after reading a bit, it looks like I should have used some specific option to prevent it from truncating my new disk.

Does anyone know how I can recover the remaining space on my hard drive ?

Thanks !


Skrooge, a personal finances manager for the Plasma Desktop
http://skrooge.org

Offline

#2 2011-02-06 15:22:56

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Disk size after copying a disk with dd

Using (g)parted from a livecd?

Offline

#3 2011-02-06 16:01:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: Disk size after copying a disk with dd

Can you nuke the new disk, manually partition, then rsync -avxhP /path/to/old/ /path/to/new/


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-02-06 16:23:03

willy9
Member
Registered: 2009-04-14
Posts: 56

Re: Disk size after copying a disk with dd

Ashren wrote:

Using (g)parted from a livecd?

I have tried KDE's partitionmanager before, but could not find something that would do it. Will try with gparted if there is something in there.

graysky wrote:

Can you nuke the new disk, manually partition, then rsync -avxhP /path/to/old/ /path/to/new/

Will try after gparted if it doesn't work

Thanks to both of you smile


Skrooge, a personal finances manager for the Plasma Desktop
http://skrooge.org

Offline

Board footer

Powered by FluxBB