>[оверквотинг удален]
>EOF
>
>или так
>
>sfdisk /dev/hdc << EOF
>0,,,
>EOF
>
>Если не сработает все же почитайте man, а лучше поgooglите на эту
>тему. Вот к сведению, чтоб долго не искали.
How to use Sfdisk to create or repartition your hard drive.
Well, one powerful feature of sfdisk is to repartition your hard drive or create new partitions. Create a file called "Test.data" which has entries in the following format, one per line, and the fields are comma delimited:
Start, Size, ID, Bootable
Start = cylinder to start at (first available cylinder if left blank), Size = number of cylinders (all if left blank), ID = type of partition (Linux, Swap, MSDOS, or other), and Bootable = if this partition is bootable. There are other options, but we won't get into them in this article.
To make it so you have 1 partition of 136 cylinders, a second partition with 254 cylinders of the SWAP ID (82), and a third Linux partition bootable that grabs the rest of the space (ID = 83), make a file list this,
1,136
101,254,82
201,,83,*
and then issue this command to take this configuration and execute it on your slave hard drive on your secondary controller
/sbin/sfdisk /dev/hdd << Test.data
and then issue this command to see what you did
/sbin/sfdisk /dev/hdd
Again, it is highly recommended you read the manpage to figure out how to format this data file. Any fields you leave blank have default values described above.