LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2014, 11:47 AM   #1
hnasr2001
Member
 
Registered: Nov 2012
Posts: 89

Rep: Reputation: Disabled
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!

Last edited by hnasr2001; 05-04-2014 at 11:50 AM.
 
Old 05-05-2014, 02:38 PM   #2
cin_
Member
 
Registered: Dec 2010
Posts: 281

Rep: Reputation: 24
found a solution yet?

have you tried removing the partition number from the device?

using /dev/sda stead /dev/sda1

Last edited by cin_; 05-05-2014 at 02:38 PM. Reason: gramm`err
 
Old 05-05-2014, 02:43 PM   #3
hnasr2001
Member
 
Registered: Nov 2012
Posts: 89

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-05-2014, 03:19 PM   #4
cin_
Member
 
Registered: Dec 2010
Posts: 281

Rep: Reputation: 24
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

Last edited by cin_; 05-05-2014 at 03:20 PM. Reason: gramm`err
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Create a Bootable Live USB Thumb Drive or Rescue Drive Using UNetbootin LXer Syndicated Linux News 0 08-06-2012 04:10 AM
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 01:09 PM
Install Linux to SATA drive but GRUB2 on to USB thumb drive Quija Linux - General 2 11-22-2011 07:40 PM
Saving a file to a USB thumb drive from the command line dbough Linux - Newbie 7 04-17-2007 08:21 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration