Changeset 197 in MondoRescue for trunk/mindi/aux-tools


Ignore:
Timestamp:
Dec 14, 2005, 12:12:15 AM (18 years ago)
Author:
bcornec
Message:

merge -r193:196 $SVN_M/branches/2.05

Location:
trunk/mindi/aux-tools/sbin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/aux-tools/sbin/calc-disk-size

    r30 r197  
    66CalcDiskSize() {
    77    local res cylinders sectorsize disksize i curr stub out
    8     res=`fdisk -l $1 2> /dev/null | grep -i "cylinders of"`
     8    res=`parted2fdisk -l $1 2> /dev/null | grep -i "cylinders of"`
    99    cylinders=`echo "$res" | cut -d' ' -f5`
    1010    sectorsize=`echo "$res" | cut -d' ' -f7`
    11     cylindermod=`fdisk -l $1 2> /dev/null | grep -i $1:`; # note colon at end to make sure it's not the /dev/sda# partition info
     11    cylindermod=`parted2fdisk -l $1 2> /dev/null | grep -i $1:`; # note colon at end to make sure it's not the /dev/sda# partition info
    1212    cylnum=`echo "$cylindermod" | cut -d' ' -f7`
    1313    predisksize=$(($cylinders*$sectorsize/1024))
  • trunk/mindi/aux-tools/sbin/format-and-kludge-vfat

    r86 r197  
    2828    device=$1
    2929    drive=$2
    30     ftype=`fdisk -l $drive | grep $device | tr '*' ' ' | tr -s '\t' ' ' | cut -d' ' -f5`
     30    ftype=`parted2fdisk -l $drive | grep $device | tr '*' ' ' | tr -s '\t' ' ' | cut -d' ' -f5`
    3131    case $ftype in
    3232#   "b" | "c")
Note: See TracChangeset for help on using the changeset viewer.