21st Century Digital Boy

Mac, Linux, and my so-called life

Lost in a sea of fdisks

leave a comment »

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.

Written by 21cdb

October 13, 2008 at 1:56 pm

Posted in Uncategorized

Tagged with ,

Leave a Reply

You must be logged in to post a comment.