Anantino Linux wrote:
Hi,
I'm trying to do an automated install RHEL 5 on a HP server keeping the sources
on the hardrive.
Total size of the disk is 70GB.
I do the following steps:
a) create a single partition (say, /dev/sssd1, type ext2, )
b) copy the mbr,
c) copy the diskboot.img contents (basically loopmount the diskboot.img present in the RHEL DVD to a tmp directory & then copy the contents) onto it,
d) install the "extlinux" bootloader on it,
e) copy the RHEL dvd iso on it.
f) store a ks.cfg that has the following line:
part / --size 4096 --grow --onpart=/dev/sssd1 --noformat
When I reboot & the RedHat installer starts up, it throws up a message saying:
"Could not allocate the requested partition".
If I exclude the --noformat, it runs into problems while formatting /dev/sssd1.
I presume that this is because I'm trying to install on the same partition that
has the installation sources. That's like cutting the
branch i'm sitting on.
However, the installation succeeds if I make the following changes in steps a)
through f).
a) Create two partitions: /dev/sssd1 (ext2 of size 4 GB) & /dev/sssd2 (ext2 of
size about 66GB)
Steps b) through e) remain the same.
f) ks.cfg has the following lines:
part / --size 4096 --grow --onpart=/dev/sssd2
part /opt --size 4096 --grow --onpart=/dev/sssd1 --noformat
This works. The installation goes through.
But, I'm now left with a system that has two partitions: /dev/sssd2 of size about
65 GB(mounted on /) & /dev/sssd1 of size about 4GB (mounted on /opt).
But, what if the end-user wants just a single partition: /dev/sssd1 (entire
harddisk size) mounted on /?
Is there no way to do that using harddisk installation?
Rather than all this futzing around, I'd follow the documentation more
closely. Use a network or DVD as the install medium. Apparently you've
solved showing Anaconda the ks file, so placing that on a USB stick
should be trivial. Maybe you could install entirely from USB.
btw A two-partition install is pretty standard, I imagine you could
preallocate /boot and hide the ks file there. However, USB is easier,
there is no preliminary mucking around to do.
--
Cheers
John
-- spambait
[email protected] [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list