daily pastebin goal
45%
SHARE
TWEET

Untitled

szabozoltan69 Sep 17th, 2013 254 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Join 4 devices together
  3. size1=`blockdev --getsize $1`
  4. size2=`blockdev --getsize $2`
  5. size3=`blockdev --getsize $3`
  6. size4=`blockdev --getsize $4`
  7. echo "0 $size1 linear $1 0
  8. $size1  $size2 linear $2 0
  9. $[$size1+$size2]        $size3 linear $3 0
  10. $[$size1+$size2+$size3] $size4 linear $4 0" | dmsetup create joined
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top