Changeset 1857


Ignore:
Timestamp:
Jan 11, 2008, 3:28:40 PM (12 years ago)
Author:
bruno
Message:

remove fdisk error messages on ia64 that end up on screen during restore - such as GPT not supported ...

Location:
branches/2.2.5/mindi
Files:
3 edited

Legend:

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

    r911 r1857  
    66CalcDiskSize() {
    77    local res cylinders sectorsize disksize i curr stub out
    8     res=`parted2fdisk -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=`parted2fdisk -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))
  • branches/2.2.5/mindi/mindi

    r1854 r1857  
    17451745    echo "Transforming $USBDEVICE in a Bootable device"  >> $LOGFILE
    17461746    echo "Checking $USBDEVICE" >> $LOGFILE
    1747     $FDISK -l $USBDEVICE 2>&1 >> $LOGFILE
     1747    $FDISK -l $USBDEVICE 2>> $LOGFILE 1>> $LOGFILE
    17481748    if [ $? -ne 0 ]; then
    17491749        echo "Unable to access $USBDEVICE" | tee -a $LOGFILE
  • branches/2.2.5/mindi/parted2fdisk.pl

    r1837 r1857  
    277277if ($args =~ /^-/) {
    278278    # -l or -s
    279     open (FDISK, "$fdisk $fargs |") || die "Unable to read from $fdisk";
     279    open (FDISK, "$fdisk $fargs 2>/dev/null |") || die "Unable to read from $fdisk";
    280280    while (<FDISK>) {
    281281        print;
     
    284284} else {
    285285    # Modification mode
    286     open (FDISK, "| $fdisk $fargs") || die "Unable to modify through $fdisk";
     286    open (FDISK, "| $fdisk $fargs 2>/dev/null") || die "Unable to modify through $fdisk";
    287287    while (<STDIN>) {
    288288        print FDISK;
     
    444444my $foo;
    445445
    446 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     446open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    447447while (<FDISK>) {
    448448    if ($_ =~ /heads/) {
     
    468468my $foo;
    469469
    470 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     470open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    471471while (<FDISK>) {
    472472    print if (($_ !~ /^\/dev\//) and (not (defined $wpart)) and ($verbose == 1));
     
    606606my $type = "";
    607607
    608 open (FDISK, "$fdisk -l $device |") || die "Unable to read from $fdisk";
     608open (FDISK, "$fdisk -l $device 2>/dev/null |") || die "Unable to read from $fdisk";
    609609while (<FDISK>) {
    610610    if ($_ =~ /EFI GPT/) {
Note: See TracChangeset for help on using the changeset viewer.