[ale] EOF thrice

ChangingLINKS.com x3 at ChangingLINKS.com
Fri Aug 16 13:32:21 EDT 2002



t]# su -c '/sbin/fdisk -l /dev/hda' > /data/fdisk.txt

Disk /dev/hda: 255 heads, 63 sectors, 1244 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1         6     48163+  83  Linux
/dev/hda2             7       910   7261380   83  Linux
/dev/hda3           911      1114   1638630   83  Linux
/dev/hda4          1115      1244   1044225    f  Win95 Ext'd (LBA)
/dev/hda5          1115      1244   1044193+  82  Linux swap


On Friday 16 August 2002 12:18, 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.

-- 
Wishing you Happiness, Joy and Laughter,
Drew Brown
http://www.ChangingLINKS.com

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