LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kickstart using USB thumb drive give me GRUB command (https://www.linuxquestions.org/questions/linux-software-2/kickstart-using-usb-thumb-drive-give-me-grub-command-4175503892/)

hnasr2001 05-04-2014 11:47 AM

kickstart using USB thumb drive give me GRUB command
 
I am trying to use a USB thumb drive for my kick start.

OS: Centos 6.5

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!

cin_ 05-05-2014 02:38 PM

found a solution yet?
 
have you tried removing the partition number from the device?

using /dev/sda stead /dev/sda1

hnasr2001 05-05-2014 02:43 PM

Cin; If I change from /dev/sda1 to /dev/sda, the system will ask me where is the kickstart file and I have to manually point it to sda1

cin_ 05-05-2014 03:19 PM

kickstart suggestions
 
maybe starting over would help you grok the issues...
often when we try to piecemeal a solution we try more than one change at a time often complicating the issue further

centos suggests this git repository for example kickstart files:
https://nazar.karan.org/tree/bluecain.git

https://nazar.karan.org/blob/bluecai...-minimalC6.cfg


All times are GMT -5. The time now is 07:06 PM.