MD drives not bootable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please don't post HTML to mailing lists. Please don't start new questions on old threads.

On Mon, 17 Apr 2006, Nauman Yousuf wrote:

#!/bin/bash
echo Please, new Drive for Drive 1 enter /dev/sda and for 2 Drive enter
/dev/sdb
read DRIVE
echo "Drive is  $DRIVE"
if [ $DRIVE = "/dev/sdb" ];then
{/sbin/sfdisk -d /dev/sda > $DRIVE.out
/sbin/sfdisk $DRIVE < $DRIVE.out}

This syntax is wrong; you should be seeing errors from bash. Try this:

if [ $DRIVE = "/dev/sdb" ]; then
{ /sbin/sfdisk ... ;
  /sbin/sfdisk ... ;
}
fi

The whitespace and semicolons are required for a group command using {}.


Cheers,
Phil


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux