LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 08-06-2012, 12:49 AM   #1
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Rep: Reputation: 0
Problems with kickstart --initlabel


I know the thread is really old but:

http://www.linuxquestions.org/questi...tended-484378/


I'm having the exact same problem. My specifics are:


- Tyring to install CentOS 6.3
- Doing a netinstall using a FTP site
- The installation is for a guest OS (KVM).

The install is being launched with:

virt-install -n server1.example.com -r 768 -l /media/netinstall -x "ks=ftp://192.168.100.2/pub/ks.cfg"


The install starts and gets to the point where I see "Error processing drive. This device may need to be re-initialized." The relevant part of my KS file:


clearpart --initlabel --all
# Disk partitioning information
part /boot --fstype="ext4" --size=500
part /home --fstype="ext4" --size=2048
part swap --fstype="swap" --size=2048
part / --fstype="ext4" --grow --size=1


When I switch to the 3rd terminal for information, here's what I see:

required disklable type for sda (1) is None
default diskalbel type for sda is msdos
selecting msdos diskalbel for sda based on size


Based on "required diskalbel type for sda (1) is none" I decided to remove the --initlabel parm, however I still face the same problem (prompted to initialize the disk).



TIA


Erik
 
Old 08-06-2012, 06:43 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I've never had any issues but maybe it's sensitive to argument ordering - I've always put --initlabel last:

Code:
clearpart --drives=${disk} --all --initlabel
 
Old 08-06-2012, 04:31 PM   #3
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you for the suggestion, unfortunately it didn't help. I still get the same output on the 3rd console.
 
Old 08-07-2012, 05:58 AM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
clearpart --initlabel should work. If it doesn't this is a bug.

However, if you are installing on virtio disks, /dev/sdX notation is wrong, it should be /dev/vdX
 
Old 08-07-2012, 08:14 AM   #5
wungad
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Issue
The 'clearpart --initlabel' option in a kickstart no longer initializes drives in RHEL 6.3.

Environment
Red Hat Enterprise Linux 6.3
Anaconda (kickstart)

Resolution
Use the 'zerombr' option in the kickstart to initialize disks and create a new partition table.
Use the 'ignoredisk' option in the kickstart to limit which disks are initialized by the 'zerombr' option. The following example will limit initialization to the 'vda' disk only:
zerombr
ignoredisk --only-use=vda
 
1 members found this post helpful.
Old 08-08-2012, 12:19 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
So really we want both kickstart options set as they cover different cases, a previously used disk, a blank disk or a disk with an invalid partition table:

clearpart: Removes partitions from the system
--initlabel: .. if installing to a brand new hard drive
zerombr: any invalid partition tables found on disks are initialized

Ref: http://docs.redhat.com/docs/en-US/Re...2-options.html

Last edited by kbp; 08-08-2012 at 12:21 AM.
 
Old 08-08-2012, 12:51 AM   #7
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks, that's exactly what I was looking for.


Quote:
Originally Posted by wungad View Post
Issue
The 'clearpart --initlabel' option in a kickstart no longer initializes drives in RHEL 6.3.

Environment
Red Hat Enterprise Linux 6.3
Anaconda (kickstart)

Resolution
Use the 'zerombr' option in the kickstart to initialize disks and create a new partition table.
Use the 'ignoredisk' option in the kickstart to limit which disks are initialized by the 'zerombr' option. The following example will limit initialization to the 'vda' disk only:
zerombr
ignoredisk --only-use=vda
 
Old 08-08-2012, 12:55 AM   #8
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Original Poster
Rep: Reputation: 0
It seems like clearpart no longer initializes disks as of RHEL 6.3 (although I'm assuming it still deletes partitions if they already exist):

https://access.redhat.com/knowledge/solutions/117513

I tried the zerombr solution on a system with a "brand new disk" (a KVM virtualized installation) and it worked.

Quote:
Originally Posted by kbp View Post
So really we want both kickstart options set as they cover different cases, a previously used disk, a blank disk or a disk with an invalid partition table:

clearpart: Removes partitions from the system
--initlabel: .. if installing to a brand new hard drive
zerombr: any invalid partition tables found on disks are initialized

Ref: http://docs.redhat.com/docs/en-US/Re...2-options.html

Last edited by phatrik; 08-08-2012 at 01:03 AM.
 
  


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
Kickstart File Problems rbell54 Linux - Newbie 2 01-19-2010 08:14 AM
RH 7.2 kickstart installation problems powah Red Hat 0 08-30-2006 03:32 PM
Problems with USB Floppy and Kickstart barnzenen Red Hat 1 02-24-2005 02:46 PM
Kickstart Problems need huge help Xris718 Linux - General 0 11-11-2003 02:50 PM
Problems with kickstart for RH9 Felipe78 Linux - Networking 1 05-02-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 04:49 AM.

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