setup-disk fails when C/H/S isn't 15/255/63
I don’t know if it’s really because of this.But I tried to install alpine on my usb dongle (128mb) and the setup-disk tool fails like this:
WARNING: Erase the above disk(s) and continue? [y/N]: y
Initializing partitions on /dev/sda…
The partition table looks like it was made
for C/H/S=*/174/30 (instead of 15/255/63)
For this listing I’ll assume that geometry.
sfdisk: bad input
>
Anyway it can’t seem to read the partition table correct.
What I used for debugging and at the same time fixed my problem was the
patch I added as attachment (this is NOT a fix I wanted to use it for
debugging and because it “cleaned” the process of creating a partition
where alpine didn’t need to create one because I created one manually so
it did a clean install afterwards)
After executing the so patched file I got this output (see attachment
two).
(from redmine: issue id 732, created on 2011-08-20, closed on 2011-10-28)
- Changesets:
- Revision ea514130cd49220ccc77a91eb5a9604bf5d846e7 by Natanael Copa on 2011-10-26T15:23:46Z:
setup-disk: fix swap size calculation
use 2 * total ram or maximum 1/4 of the smallest disk.
don't use more than 4G swap
if swap is smaller than 64MB then don't bother create swap at all.
ref #732