LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2013, 07:20 AM   #1
_BaZinGa
LQ Newbie
 
Registered: Apr 2013
Distribution: backtrack, kali linux, rhel
Posts: 7

Rep: Reputation: Disabled
Unhappy Manual Partitions in Automatic Installation of CentOS6


I am trying to install CentOS6 using kickstart file...
However, the issue I am facing is I need to configure partitions during the installations and the rest everything needs to go on automatically.

I need this because I have to install the same OS on different systems which have different hard drive sizes.

So, instead of wasting time manually configuring the installation and partitions each time, I need to configure only the partitions.

Any help would be appreciated.
 
Old 08-07-2013, 07:37 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Not specifying the partitioning options should do the trick.

I normally use something like this (just the relevant parts shown):
Code:
# -------------------------------------------------------------------------- #
# Disk layout (assumes 16 Gb or larger VDA disk)
# -------------------------------------------------------------------------- #
zerombr yes
clearpart --drives=vda --all --initlabel
ignoredisk --only-use=vda
# /boot partition
part /boot --fstype=ext4 --size=128
# LVM PV's + VG's
part     pv.00    --grow         --size=256
volgroup VG_SYST  --pesize=4096  pv.00
# LVM - LV's
logvol swap                   --name=LV_SWAP  --vgname=VG_SYST  --size=2048
logvol /       --fstype=ext4  --name=LV_ROOT  --vgname=VG_SYST  --size=4096
logvol /tmp    --fstype=ext4  --name=LV_TMP   --vgname=VG_SYST  --size=2048
logvol /usr    --fstype=ext4  --name=LV_USR   --vgname=VG_SYST  --size=3096
logvol /var    --fstype=ext4  --name=LV_VAR   --vgname=VG_SYST  --size=1024
logvol /home   --fstype=ext4  --name=LV_HOME  --vgname=VG_SYST  --size=2048
# leaves +/- 1.8 Gb free
# -------------------------------------------------------------------------- #
# Boot options
# -------------------------------------------------------------------------- #
bootloader --location=mbr --driveorder=vda --append=" rhgb quiet"
# -------------------------------------------------------------------------- #
If you comment out the blue part, the kickstart installation stops and asks for manual input. Once that is done the kickstart proces takes over again and finishes the automated installation.
 
1 members found this post helpful.
Old 08-07-2013, 08:29 AM   #3
rohitchauhan
Member
 
Registered: Nov 2010
Distribution: RedHat
Posts: 88

Rep: Reputation: 1
Cool

Hi,
I am more familiar with the Redhat anaconda.cfg file.

In anaconda.cfg file, by default, partitions details are commented i.e.
# part /boot --fstype="ext4" --size=200
# part swap --fstype="swap" --size=1000
# part / --fstype="ext4" --size=10000

So I think, you don't need to do anything in the file regarding partitions. Just use it as it is.
It should ask you for the partitions during installation because it will not get the partitions details in the file.

So, just try it and let us know what happens.
 
1 members found this post helpful.
Old 08-07-2013, 08:53 AM   #4
_BaZinGa
LQ Newbie
 
Registered: Apr 2013
Distribution: backtrack, kali linux, rhel
Posts: 7

Original Poster
Rep: Reputation: Disabled
thnx for the help guys....

i found out that I had to remove "interactive" mode for automatic installations.

And commented out the partition lines.


Everything's cool now.
 
Old 08-07-2013, 08:56 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
You're welcome.

BTW: Can you put up the [SOLVED] tag (top right corner / Thread Tools menu).
 
Old 08-18-2013, 09:41 PM   #6
Spheniscidae
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Druuna,

I have used values similar to yours and have done a great deal of reading on the subject and "some" of your values are based on the drive size correct? This is not clear to me. For example, if you're using a 256GB drive would these values still hold true? This is one of the crucial aspects of securing your installation so I have wiped my drive 4 times and I still find many different schools of thought.

Could you point me to a good URL that details the recommendations are add some detail?

thanks!
Sphen
 
Old 08-19-2013, 03:55 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Quote:
Originally Posted by Spheniscidae View Post
I have used values similar to yours and have done a great deal of reading on the subject and "some" of your values are based on the drive size correct? This is not clear to me. For example, if you're using a 256GB drive would these values still hold true? This is one of the crucial aspects of securing your installation so I have wiped my drive 4 times and I still find many different schools of thought.

Could you point me to a good URL that details the recommendations are add some detail?
I'm not sure if I understand the actual issue you are facing; You talk about securing/wiping in combination with PV and/or VG sizes.

Your question also doesn't seem to be related to the OP's initial question. This is called thread hijacking and frowned upon, it also drowns your question in an unrelated thread which doesn't give it the exposure it deserves. Your new here, so you might not have known that.

I would recommend you start a new thread and rephrase the question more clearly.
 
Old 08-19-2013, 04:52 AM   #8
Spheniscidae
LQ Newbie
 
Registered: Aug 2013
Posts: 3

Rep: Reputation: Disabled
Druuna,

Well I am new here, but not to forum's of various kinds - and I think you misunderstand "hijacking" - SOLVED threads cannot be hijacked and having a 1 next to the word POSTS in my profile is misleading. New users who clog forums by asking the same questions that have been answered multiple times can be annoying and are encouraged to SEARCH for related threads rather that start new ones, which is exactly what I did.

I asked for a URL detailing partitioning recommendations for new Linux installs, if you do not know the answer or have anything to add I would prefer you simply do not reply - I checked and it does not say moderator next to your username

Last edited by Spheniscidae; 08-19-2013 at 04:55 AM.
 
Old 08-19-2013, 06:21 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
@Spheniscidae: You have ignored to elaborate on the question you asked, so here's a general answer: partitioning recommendations linux installation

Last edited by druuna; 08-19-2013 at 06:38 AM.
 
  


Reply

Tags
centos, kickstart, linux, partition


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
Xen Server Installation on CentOS6...? chandranjoy Linux - Virtualization and Cloud 3 10-02-2011 03:14 PM
Mandriva: manual or automatic updates? paulpeer Linux - Newbie 6 07-29-2008 04:14 AM
Manual or automatic mounts/accesses/repairs of hardisk/devices on RHEL 5.0 (SL 5.0) wss Red Hat 0 08-30-2007 12:47 PM
installing Fedora COre 4, automatic parition or manual? mr_coffee Linux - Newbie 11 01-17-2006 04:51 AM
Suse needs manual partition or automatic? nycundaground Linux - Newbie 3 08-01-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration