kickstart from a USB

Latest response

I am trying to use a USB media for my kick start.

Step 1;
In my system if I connect a USB, it will detect as /dev/sdb1

I add the fllowing lines to my ks.cfg file

Load from USB Stick

harddrive --partition=sdb1 --dir=/
.
.
.
clearpart --all --initlabel --drives=sda

------------------------------------------

Disk partitioning information

------------------------------------------

part /boot --fstype=ext4 --size 100 --ondisk=sda --asprimary
part / --fstype=ext4 --size=2000 --grow --ondisk=sda --asprimary

and I modify the isolinux.cfg file to point to the ks.cfg file

label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img ks=hd:sdb1:/ks.cfg

I boot the computer with kickstart and it couldn't find the kickstart file!

Step 2:
I did the following changes;

In the kc.cfg file I change sdb1 to sda1:

Load from USB Stick

harddrive --partition=sda1 --dir=/

and in the isolinux.cfg file
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img ks=hd:sda1:/ks.cfg
I boot the computer with kick start and the message was" there is no space to make the partitions (I think it was trying to partition the USB)

Step 3:
change the kickstart file where the hard drive partitioning occurs to:
clearpart --all --initlabel --drives=sdb

------------------------------------------

Disk partitioning information

------------------------------------------

part /boot --fstype=ext4 --size 100 --ondisk=sdb --asprimary
part / --fstype=ext4 --size=2000 --grow --ondisk=sdb --asprimary

I boot the computer and it load from USB, it partition the hard drive and after reboot, whithout USB conected, I am getting GRUB prompt ( I think the issue is it does not see the hard drive MRB). If I attache the USB and reboot, the system will boot with redhat?

Result;
If I use USB as /dev/sda1 then make the hard-drive as /dev/sdb there is a problem and somehow the USB becomming hard-drive MBR.
If I use USB as /dev/sdb1 then the system does not see the kickstart file!

Responses