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

Re: Little help with a post call to partition



Jesse Keating wrote:
On Friday 31 October 2003 12:47, Richard Black wrote:

Non-interactive fdisk:

echo "p
q" | fdisk /dev/sda


er, what exactly does that do?

It looks like it prints the partition table and quits. You should be able to use this method in %post--just use the commands that you would normally pass to fdisk:


echo "n    # New partition
p          # Primary partition
1          # first partition
           # Accept defaults for beginning cylinder
           # Accept defaults for ending cylinder
w" | fdisk /dev/sdb          # Save and write to the drive

Forrest
--






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