Thomas Olenio wrote:
>
> Hello,
>
> I would like some help with determining the correct numbers
> for my primary and swap partition.
>
> Running 'fdisk' from the root installation disk with the p
> command, I am told;
>
> disk /dev/hda: 16 heads, 17 sectors, 873 cylinders
> units = cylinders of 272 * 512
>
> Device Boot Begin Start End Blocks System
> /dev/hda1 1 1 873 118719+ Linux native
>
> Now if I am doing the math right, this indicates a hard
> drive of 120 meg. I want a swap partition of 8 meg, to
> double my RAM from 8 meg to 16 meg. This means that the
> primary Linux partition will be 112 meg.
You can use the ending cylinder or +sizeK or +sizeM !
Delete the existing partition(s).
iNsert a new primary partition 1
start at cylinder 1
+8M
change Type of partition 1 to 82 (linux swap)
disPlay partition data and get ending cylinder
iNsert primary partition 2
start at next cylinder (default?)
last cylinder = 873
it should default to type 83 (linux native)
Write partition data
HTH, Chuck
>
> That said, I have to calculate the Begin, Start and End of
> the two new partitions so that I can add them, after
> deleting the single partition. This is where my head starts
> to swim.
>
> What is the math to calculate the numbers for my new
> partitions properly, based on my hard drive specifications?
> I want to understand this.
>
> Please keep it simple, as both "Linux System
> Administration", by M&T Books, and "Slackware Unleashed" 3rd
> edition, haven't got me any closer to an answer.
>
> This is making me feel real stupid.
>
> Thanks,
> Tom
--
Researching GELM