Suggestion for Newbies [Was: Curt Tone]

Jeff Vian jvian10 at charter.net
Fri Jul 16 13:53:50 UTC 2004


On Fri, 2004-07-16 at 00:16, Shawn Mahon wrote:
> On Fri, 16 Jul 2004 01:06:24 -0400, Mathew Brown
> <mbrown0420 at sympatico.ca> wrote:
> > 
> > > Regretably you will come across the odd smartarse that just say's RTFM in a
> > > reply to a question you've asked. (Some peoples ego's get the better of
> > > them) but if it's all spelled out clearly in the original post then it's
> > > there in black and white then nobody can 'get out of their tree' about the
> > > question and the responses!
> > >
> > > Anyways that all said, welcome to linux land we hope you enjoy your stay :-)
> > >
> > > Bry <- from Geordieland where everyone is friendly and approachable.
> > >
> > 
> > Ok, Here's where i am at, I boot using the rescue CD, I get to the
> > shell, I type these in this order....
> > 
> > sfdisk -d /dev/hda > MyPartitionTable.txt
> > i then type ls to make sure it's there, and it is
> > i then type cat MyPartitionTable.txt
> > it then spit up the information about my partition table.
> > after this, I *THINK* I am suppose to type
> > sfdisk --no-reread -H255 /dev/hda
> > 
> > but when i type that, it just spits out the command help page.
> > i even tried, sfdisk --no-reread --force -H255 /dev/hda
> > and still spits up the command options page.
> > 
> > Thanks
> > Mathew
> > 
> > 
> > 
> > 
> > --
> > fedora-list mailing list
> > fedora-list at redhat.com
> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> > 
> 
> 
> I could be wrong, but I believe the fix is all supposed to be on one line
> 
>  sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda
> 

OR "cat MyPartitionTable.txt | sfdisk --no-reread -H255 /dev/hda

The reason for putting it into the file is to be able to edit out the
(possible) error lines that do not get read correctly as input to the
second sfdisk command.

> thus the output from the first command is piped into the second
> command.  You can think of it as the output of the first command is
> used as the input to the second.
> 
> Apologies in advance if I'm mistaken.
> 





More information about the users mailing list