MD drives not bootable

Philip Rowlands phr at doc.ic.ac.uk
Mon Apr 17 12:41:25 UTC 2006


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




More information about the Kickstart-list mailing list