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

Re: [Xen-users] Questions on qcow, qcow2 versus LVM



On Wed, December 30, 2009 4:08 am, Jorge Armando Medina wrote:
> You can use fdisk and play with unix standar input, for example:
>
> echo "d
> n
> p
> 1
>
> +10000M
> n
> p
> 2
>
>
> a
> 1
> w
> " | fdisk /dev/sdx
>
> :) consider the blank lines to accept fdisk defaults for fist and last
> cilinder.
>
> of course you can use a onliner:
>
> printf 'n\np\n1\n\n+100M\nt\nfd\na\nn\np\n2\n\n\nt\n2\nfd\np\nw\n' | fdisk
> /dev/sdx
> fdisk /dev/sda

Seems like getting a newer version of parted on CentOS is not so
straightforward - it has dependencies on a few libs and although they are
all installed they are waay too old for the version of parted with the fix
in it.  This  method, or perhaps an expect script to do the same might be
the best option in the short term.

Thanks,

Matt.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.