LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-30-2011, 06:05 AM   #1
santino83
LQ Newbie
 
Registered: Sep 2011
Location: Rome, IT
Distribution: Centos
Posts: 2

Rep: Reputation: Disabled
Creating custom kickstart for Centos 5 and change hard disk from hda to sda


Hello,

I have created a custom kickstart for my customized centos distribution. It works ok. Now the problem is: with a specific hardware, Centos is not able to understand which driver is needed for the hard disk, and so instead of use the hard disk as sda it uses hda.

When installing, it takes more than one hour and half for formatting, and when then I see a lot of errors in writing on disk.

I've found out the solution: hda=noprobe hda=none in grub.conf, and it works great. Now the issue is only while installing: I'm searching a way to put this commands in my ks, so I hope not to have to wait hours for formatting 250GB of hard disk...

Using a normal centos distro, I could do "linux text hda=noprobe hda=none" and it works, but mine is not a normal distro, and I cannot understand where to put those commands in the ks, as in the documentation I don't find the right option to set

Here is my ks (the most relevant part):

Code:
text
install
cdrom
lang it_IT.UTF-8
timezone Europe/Rome
keyboard it
langsupport --default=it_IT.UTF-8 it_IT.UTF-8
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
bootloader --location=mbr --append="hda=noprobe hda=none"
clearpart --all
part /boot --fstype ext3 --size=100
part swap --recommended
part pv.2 --size=0 --grow
volgroup vg00 --pesize=32768 pv.2
logvol / --fstype ext3 --name=root --vgname=vg00 --size=8192
logvol /var --fstype ext3 --name=var --vgname=vg00 --size=5120
logvol /vlstorage --fstype ext3 --name=vps --vgname=vg00 --size=1024 --grow
skipx
reboot --eject
thanks for your help
 
Old 10-01-2011, 06:05 AM   #2
santino83
LQ Newbie
 
Registered: Sep 2011
Location: Rome, IT
Distribution: Centos
Posts: 2

Original Poster
Rep: Reputation: Disabled
I've found the solution, and it was pretty easy.... Just put hda=noprobe hda=none in the isolinux.cfg

Code:
label mylabel
  kernel vmlinuz
  append initrd=initrd.img ks=cdrom:/images/ks.myks text hda=noprobe hda=none
thanks everybody
 
  


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
how to change hard disk hda to sda in linux yogi10 Linux - Server 6 06-16-2011 05:59 AM
slow disk in fedora 6 / hda sda detection issue tarik Linux - Hardware 2 09-10-2007 06:07 AM
Custom kernel 2.6.22 name change from hda to sda bristi Debian 4 07-15-2007 11:27 AM
Creating a custom Cent kickstart CD jakev383 Red Hat 6 02-27-2007 06:19 AM
found problem now how to change from hda to sda bird603568 Slackware 29 10-28-2005 11:18 AM


All times are GMT -5. The time now is 12:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration