21st Century Digital Boy

October 13, 2008

Lost in a sea of fdisks

Filed under: Uncategorized — Tags: , — Gregg @ 1:56 pm

On Solaris, you ‘clone’ a drive by doing this:

prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2

This copies drive A to drive B (partitions, etc) so you can, for example, make a RAID1 set.

I have been unaware of how to do this under Linux until today.

The command is sfdisk, thus:

sfdisk -d /dev/sda | /dev/sdb

See also this for an excellent tutorial on doing RAID-y things.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Blog at WordPress.com.