Bug 54038 - 'Could not allocate partitions' error or crash from kickstart
Summary: 'Could not allocate partitions' error or crash from kickstart
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: anaconda
Version: roswell
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Brent Fox
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2001-09-26 11:26 UTC by Jure Pecar
Modified: 2007-04-18 16:37 UTC (History)
0 users

Clone Of:
Last Closed: 2001-09-26 11:26:11 UTC

Attachments (Terms of Use)

Description Jure Pecar 2001-09-26 11:26:07 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
I'm trying to install roswell (7.1.94) with kickstart on a test machine. It
always bombs out on creating partitions.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
No special steps needed ... just a normal kickstart setup & install.
happens every time on this box. Haven't managed to make it install yet ...
RedHat 7.0 kickstart works ok.

Actual Results:  There are several variations of what i tried:
1. Empty disk (no partitions), zerombr yes and clearpart --all --initlabel
in ks.cfg: i get the 'Could not allocate requested partitions: Partitioning
failed: Could not allocate partitions. Press OK to reboot your system.'
2. Hand made partitions, zerombr and clearpart commented out in ks.cfg:
anaconda crashes with 'TypeError: number coercion failed.'

Expected Results:  Well, it should work, no? :)

Additional info:

I sent a mail to kickstart list with attached anaconda dump output. See
http://www.redhat.com/mailing-lists/kickstart-list/msg00947.html .

I tried various options for partitioning in ks.cfg with no success. Is the
order of statements important in ks.cfg?

Manual instalation of roswell on this box works ok. So I ran ksconfig and
used its output for my ks.cfg. Got the same error.

HW info: p3 800, intel 815eea board, 256mb ram, one seagate ATA100 10gb ide
disk on hda, ide cdrom on hdc.

Full ks.cfg:
lang en_US

network --bootproto dhcp

nfs --server my.nfs.server --dir /data/roswell

bootloader --location=mbr --md5pass=mymd5passstring
zerombr yes
clearpart --linux
part /boot --size 64
part swap --size 512
part / --grow

mouse generic3ps/2
timezone Europe/Ljubljana
langsupport --default en_US sl_SI
keyboard us
firewall --disabled

xconfig --card --monitor --defaultdesktop=KDE --startxonboot --resolution
1280x1024 --depth 16

rootpw --iscrypted mycryptpassstring

auth --useshadow --enablemd5 --enableldap --enableldapauth
--ldapserver=my.ldap.server --ldapbasedn="mybasedn" --enablecache


@ X Window System
@ DOS/Windows Connectivity
@ Graphics Manipulation
@ Games
@ Multimedia Support
@ Networked Workstation
@ Utilities
@ Development

Comment 1 Jeremy Katz 2001-09-26 16:30:30 UTC
You're missing an initial size specification for the root partition... use
something like

part / --size 500 --grow

and it will work.  CVS has a better check for this and gives a somewhat better

Note You need to log in before you can comment on or make changes to this bug.