[ale] EOF thrice

Geoffrey esoteric at 3times25.net
Fri Aug 16 13:55:16 EDT 2002


I always learn something new on this list. :)  FYI, I wasn't passing a 
flag to fdisk, but two interactive commands, 'p' to print the current 
partitions and 'q' to exit fdisk. Pretty much the same thing the -l flag 
does, which I was not aware of... :)

James P. Kinney III wrote:
> 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.
> 


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






More information about the Ale mailing list