View previous topic :: View next topic |
Author |
Message |
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sat Nov 16, 2013 10:16 pm Post subject: Copy all to bigger disk (All RESOLVED) |
|
|
I have copied my old disk to a new (bigger) one. But all is not quite right. The old is in sda, and the new in sdc.
From fdisk Quote: | Device Boot Start End Blocks Id System
/dev/sda1 * 2048 104447 51200 83 Linux
/dev/sda2 104448 8493055 4194304 82 Linux swap / Solaris
/dev/sda3 8493056 250069679 120788312 83 Linux
/dev/sdc1 * 2048 104447 51200 83 Linux
/dev/sdc2 104448 8493055 4194304 82 Linux swap / Solaris
/dev/sdc3 8493056 468862127 230184536 83 Linux | So this looks good. But df gives Quote: | Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 118761068 98399148 14306124 88% /
...
/dev/sdc3 118761068 98394320 14310952 88% /mnt/spare | I did the copies using dd to get
sda copied to sdc, then parted didn't want to reisze the /dev/sdc3 paritiion. I deleted it used fdisk to delete the sdc3 parition, made the new one bigger, and then used dd to copy sda3 to sdc3. Evidiently that was not the right approach. Any suggestions? Thanks,
Fred
Last edited by Fred Krogh on Sun Nov 17, 2013 4:58 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Nov 17, 2013 12:21 am Post subject: |
|
|
I use ->cp -ap<- (so permissions stay the same) _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
|
Back to top |
|
|
Fred Krogh Veteran
Joined: 07 Feb 2005 Posts: 1036 Location: Tujunga, CA
|
Posted: Sun Nov 17, 2013 4:58 am Post subject: |
|
|
Thanks for the responses. I used cp -a, and if I had kept my head on straight it would have worked just fine. With rsync, I might not have made those blunders. Anyway I now have more space and all appears to be working. |
|
Back to top |
|
|
|