[ale] re: running fdisk automatically

Dan Newcombe newcombe at mordor.clayton.edu
Wed Jul 23 11:51:56 EDT 1997


Yes it does

I hope you didn't just put ^ M, you have to press Cntrl-V then Cntrl-M

root at mordor~/cdindex$ echo p^Mo^M | fdisk
Using /dev/hda as default device!

Command (m for help): 
Disk /dev/hda: 128 heads, 63 sectors, 620 cylinders
Units = cylinders of 8064 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1            1        1      511  2060320+   6  DOS 16-bit >=32M
/dev/hda2   *      512      512      613   411264   83  Linux native
/dev/hda3          614      614      620    28224   82  Linux swap

Command (m for help): You have some generic new mail
root at mordor~/cdindex$ 



On Wed, 23 Jul 1997, Michael Ivey wrote:

> On Wednesday, July 23, 1997 11:33 AM, Dan Newcombe 
> <newcombe at mordor.clayton.edu> wrote:
> > Just put together a list of commands and use it as standard input.
> > echo p^Mq^M |fdisk
> > will work to print a partition table and quit.
> 
> Nope.  Doesn't work.
> 
> --
> Michael Ivey, Senior Technical Manager
> Realm Information Technologies
> <mivey at realminfo.com>
> (770) 446-1332 x 114
> 

--
Dan Newcombe                                      newcombe at mordor.clayton.edu
"The fool who escaped from paradise will look over his shoulders and cry...So
I'll hold my peace forever when you wear your bridal gown."   -Marillion






More information about the Ale mailing list