Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Copy one SSD content to another?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Wed Feb 27, 2013 4:05 pm    Post subject: Copy one SSD content to another? Reply with quote

Hello,

I'm getting another SSD drive. The thing is I'd like to use the new SSD instead of the old one, which I am using now. There are 2 partitions: windows one and gentoo another. Is there a way to move things smoothly so I'm not going to need anything else? Like dd or something? Wouldn't it harm my SSD drives?

Thank you!
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Thu Feb 28, 2013 2:37 am    Post subject: Reply with quote

I have used dd for that. It works fine.

Quote:
Wouldn't it harm my SSD drives?

No. Modern SSDs are designed to take 10s of GB of writes 7 days a week for 5+ years.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Feb 28, 2013 3:18 am    Post subject: Reply with quote

Although dd may be safe for modern SSDs, using dd to copy filesystems for general use has never been best practice, because it copies all the free space. Make a partition table and filesystems on the new drive, then copy the files over via the filesystem interface, rather than the block interface.
Back to top
View user's profile Send private message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Thu Feb 28, 2013 6:33 pm    Post subject: Reply with quote

The problem is, that my Vertex 4 appears to have:

Erase block size of 2MB
Page size of 8KB


I know that when erase block is 512KB, best values would be 32,32 and stride=128,stripe-width=128, the latter are computed as erase block size / stripe-width (is it a page size?)


Assuming I'm using fdisk, what number of heads, sectors and stride, stripe-width should I use?

Would:
fdisk -S64 -S63
mkfs -t ext4 -b 4096 -E stride=256, stripe-width=256 be ok?
Back to top
View user's profile Send private message
kbzium
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2012
Posts: 146

PostPosted: Thu Feb 28, 2013 10:00 pm    Post subject: Reply with quote

Okay, I've ended up doing:

128,32, 512,512 (cyl, str, stipe, stripe-width) with normal 4kb BS. Partition is positioned at the second 2-megabyte block that is 4096 from a sector perspective (2 times more, cause fdisk usses 512 block). Hope it helps someone
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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