There are various pieces of info we would need to accomplish it.. size of file.. purpose.. etc...
I'm trying to fill a hard drive with all ones. I know how to fill it with all zeros:
dd if=/dev/zero of=/dev/hdb bs=1024 count=58615704
I don't know how to fill it with all ones.
I'm working within pretty low functionality on this system (RHL 9 installation CD rescue mode)
Thanks, William