Hi jlightner, before posting the message I had already read the man pages and I knew that by giving -q option I can suppress those error messages. but my main concerned is that when I check the command status after giving the sfdisk command I do not get '0' i.e. successful execution code which I am chgecking in my script to constantly check for errors.
if [[ $TEST_PS_VALUE != 0 ]]
echo "An error has occured while executing the script.Please see the file $LOG_FILE."
echo "Partitioning your IDE Device"
| sfdisk -L -D -V /dev/hdc -N1 1>/dev/null 2>$ERROR_LOG_FILE || TEST_PS_VALUE=$? echo -n Line $LINENO >> $ERROR_LOG_FILE
echo "Partitioning Completed!"
By giving -q option I can suppress warning message but I can;'t do anythng about the status code? can I?
To make things simpler, all I am looking is for a command which will create a single partiion(of the entire device space) on the given device and make the primary partition as bootable.
Remeber I would like to run this command from a script so the command should not be interactive.
To make things simple