Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copy all to bigger disk (All RESOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Nov 16, 2013 10:16 pm    Post subject: Copy all to bigger disk (All RESOLVED) Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Nov 16, 2013 10:49 pm    Post subject: Reply with quote

dd is not what you want unless you make a bit-copy. Use cp -a instead.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
Location: Dallas area

PostPosted: Sun Nov 17, 2013 12:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Nov 17, 2013 12:45 am    Post subject: Reply with quote

I use 'rsync -av'
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sun Nov 17, 2013 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum