<html>
<body>
At 11:26 AM 3/21/2006, Matt Hyclak wrote:<br>
<blockquote type=cite class=cite cite="">On Tue, Mar 21, 2006 at
09:29:53AM -0600, Robert Moskowitz enlightened us:<br>
> At 10:43 PM 3/20/2006, Matt Hyclak wrote:<br>
> >On Mon, Mar 20, 2006 at 08:40:26PM -0600, Robert Moskowitz
enlightened us:<br>
> >> So I want the suspend to disk option.<br>
> >><br>
> >> I have found lphdisk
<a href="http://www.procyon.com/~pda/lphdisk/" eudora="autourl">
http://www.procyon.com/~pda/lphdisk/</a><br>
> >><br>
> >> It says to create a primary partition of type a0<br>
> >><br>
> >> How do I do this in kickstart?  Will it let me do a
type?<br>
> >><br>
> >><br>
> >> part /??? --fstype a0 --size 1058<br>
> >><br>
> >> size is 1024 + 32 + 2<br>
> >><br>
> >> What do I put in for the mount point?<br>
> >><br>
> >> Where do I go for help?  I have exhausted
google...<br>
> ><br>
> >I would suggest reading the documentation about kickstart, not
just<br>
> >guessing.<br>
>
><a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-kickstart2-options.html" eudora="autourl">
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-kickstart2-options.html</a>
<br>
> <br>
> I have spent hours reading this and trying to read 'between the
<br>
> lines' already, before I asked here...<br>
><br><br>
There's nothing between the lines to read.</blockquote><br>
And not enough is there to really be effective in using the
technology.  Just the basics.<br><br>
<blockquote type=cite class=cite cite="">> >You'll notice the
listing of valid fstype options, none of which are a0.<br>
> <br>
> yes.  that is why I turned to asking.<br>
> <br><br>
It's plainly stated what the options to fstype are. I'm not sure what
there<br>
was to ask.</blockquote><br>
And how do you set other types? I could boot with a ghost 9 rescue CD
(which I did not bring with me) and edit the partition table.  But
is there a Linux tool to do this?<br><br>
<blockquote type=cite class=cite cite="">> >I would recommend
looking to %pre or %post sections to format the right<br>
> >partition type for you with the native tools.<br>
> <br>
> Fine. I am even willing to run it completely after the
install.  But <br>
> what do I do for creating the partition?   Do I just do a
dummy mount <br>
> point like /suspend  ?  An fstype of ext3?  And how
do I specify a <br>
> primary partition (and do primaries have to come before ext3 <br>
> partitions?  Have not found text on this.)<br>
> <br>
> And then use some other tool ????  that will remove the mount
point <br>
> and change the fstype to a0 before running lphdisk?<br>
> <br>
> Or do I leave part of the disk not in a partition and use some other
<br>
> tool to prepare the partition for lphdisk?<br><br>
Either way would work. Don't confuse partition types and filesystem
types.<br>
Primary partitions are one thing, ext3 filesystem on a partition is
another.</blockquote><br>
oh, so a0 is a partition type.  What IS the partition type that
Linux makes for its boot, swap, and EXT3 filesystems?  How do I see
this without something like Ghost recovery?<br><br>
<blockquote type=cite class=cite cite="">You get 4 primary partitions, if
you want more partitions than that, then<br>
one primary partition has to be an extended partition in which you
create<br>
the other 12 logical partitions. You can put ext3 on any of these. This
is<br>
basic DOS stuff.</blockquote><br>
I have seen this, and it looks like I will have to use LVM:<br><br>
/boot<br>
/<br>
/home<br>
Suspend<br>
Swap<br><br>
So I would have to put / and /home into the LVM partition...<br><br>
<blockquote type=cite class=cite cite="">I'd have to check to make sure,
but I'm willing to bet that parted is<br>
available during the kickstart. </blockquote><br>
Well the kickstart command is part:<br><br>
<br>
<pre>part /boot --fstype ext3 --size 100 
part / --fstype ext3 --size 10240 --grow 
part /home --fstype ext3 --size 25600 
part swap --size 2048 


</pre><blockquote type=cite class=cite cite="">I would probably use that
to take care of<br>
creating your partition in the %pre section of kickstart, then let
the<br>
kickstart disk management stuff use the rest of the disk. There are
other<br>
ways to skin the cat, a couple of which you have mentioned.
</blockquote><br>
<a href="http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-preinstallconfig.html" eudora="autourl">
http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-preinstallconfig.html</a>
<br><br>
<br>
<pre>if [ $numhd == "2" ] ; then
  #2 drives
  echo "#partitioning scheme generated in %pre for 2
drives" > /tmp/part-include
  echo "clearpart --all" >> /tmp/part-include
  echo "part /boot --fstype ext3 --size 75 --ondisk hda"
>> /tmp/part-include
  echo "part / --fstype ext3 --size 1 --grow --ondisk hda"
>> /tmp/part-include
  echo "part swap --recommended --ondisk $drive1" >>
/tmp/part-include
  echo "part /home --fstype ext3 --size 1 --grow --ondisk
hdb" >> /tmp/part-include
else
  #1 drive
  echo "#partitioning scheme generated in %pre for 1
drive" > /tmp/part-include
  echo "clearpart --all" >> /tmp/part-include
  echo "part /boot --fstype ext3 --size 75" >>
/tmp/part-includ
  echo "part swap --recommended" >>
/tmp/part-include
  echo "part / --fstype ext3 --size 2048" >>
/tmp/part-include
  echo "part /home --fstype ext3 --size 2048 --grow"
>> /tmp/part-include
fi

</pre>Does not look any different in terms of part commands than you can
put into kickstart.  Just the logic to take advantage of it
all.<br>
I **AM** reading as much as I can find, but I am not finding enough of
what I need....<br><br>
<x-sigsep><p></x-sigsep>
Barrs Law of Recursive futility<br>
        If you're smart enough to use
one of these....<br>
               
.....you can probably manage without one!<br>
</body>
</html>