Re: Little help with a post call to partition

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

 



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
--






[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