%pre - trying to detect what hdd there is and partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Is there a way to put a script in %pre section which tells what hard disk is present, like hda, hdb, sda, md etc...
and then partiton based on what the hard disk is.
for eg if it was a ide hard disk I would partiton it like this
 
 
clearpart --all --initlabel
part swap --size 200 --onpart hda1
part /boot --size 100 --fstype ext3 --onpart hda2
part / --size 3000 --fstype ext3 --onpart hda3
 
for scsi I would be able to specify --onpart sda1 etc...
 
RedHat has given an example for how to set up if there is an ide hdd available at
 
How do I detect if the hard disk is a ide / scsi ?
 

 
Regards,
Keith
--------
"The linuX Files -- The Source is Out There."
--------

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux