[ale] EOF thrice

James P. Kinney III jkinney at localnetsolutions.com
Fri Aug 16 13:18:55 EDT 2002


You need a different flag than -p. use:

su -c '/sbin/fdisk -l /dev/hda' > /tmp/fdisk.txt

will get a nice output into a file /tmp/fdisk.txt

On Fri, 2002-08-16 at 13:05, Geoffrey wrote:
> Okay this is too wierd for me.  What happens if you do in interactively?
> 
> That is, execute fdisk and at the prompt type 'p'.
> 
> If you get different output, cut/paste it to an email and post it.
> 
> ChangingLINKS.com wrote:
> > DOH! What to do now? Same exact response: 
> > 
> > t]# echo -e 'p\\nq' |fdisk /dev/hda > /data/fdisk.txt
> > 
> > The number of cylinders for this disk is set to 1244.
> > There is nothing wrong with that, but this is larger than 1024,
> > and could in certain setups cause problems with:
> > 1) software that runs at boot time (e.g., old versions of LILO)
> > 2) booting and partitioning software from other OSs
> >    (e.g., DOS FDISK, OS/2 FDISK)
> > 
> > got EOF thrice - exiting..
> > 
> > 
> > 
> > On Friday 16 August 2002 08:18, Geoffrey wrote:
> > 
> >>ChangingLINKS.com wrote:
> >>
> >>>]# echo p\\nq |fdisk /dev/hda > /data/fdisk.txt
> >>
> >>My bad on this one, I'm a ksh'er not a bash'er.  In bash try this:
> >>
> >>echo -e 'p\\nq' |fdisk /dev/hda > /data/fdisk.txt
> >>
> >>and post that...
> > 
> > 
> 
> 
> -- 
> Until later: Geoffrey		esoteric at 3times25.net
> 
> I didn't have to buy my radio from a specific company to listen
> to FM, why doesn't that apply to the Internet (anymore...)?
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
-- 
James P. Kinney III   \Changing the mobile computing world/
President and CEO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list