/[smeserver]/cdrom.image/updates/raidconvert
ViewVC logotype

Diff of /cdrom.image/updates/raidconvert

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.6.2.1 by slords, Sat Mar 15 18:11:42 2008 UTC Revision 1.7 by slords, Sat Jun 6 23:51:55 2009 UTC
# Line 10  then Line 10  then
10      sfdisk -d /dev/$device > /tmp/oldparts      sfdisk -d /dev/$device > /tmp/oldparts
11      sed 's/Id=8[32]/Id=fd/' /tmp/oldparts > /tmp/newparts      sed 's/Id=8[32]/Id=fd/' /tmp/oldparts > /tmp/newparts
12    
13      mkdir -p /mnt/tmp      mkdir /mnt/tmp
14      for part in $(awk '/^\/dev\/.*Id=8[23]/{ print $1 }' /tmp/oldparts)      for part in $(awk '/^\/dev\/.*Id=8[23]/{ print $1 }' /tmp/oldparts)
15      do      do
16          md=/dev/md$(echo $part | sed 's|^.*[^0-9]||')          md=/dev/md$(echo $part | sed 's|^.*[^0-9]||')


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed