[CentOS] SDA and HDA

Wed Aug 18 18:56:51 UTC 2010
Keith Roberts <keith at karsites.net>

On Wed, 18 Aug 2010, Hannes Frederic Sowa wrote:

> To: CentOS mailing list <centos at centos.org>
> From: Hannes Frederic Sowa <hannes at mailcolloid.de>
> Subject: Re: [CentOS] SDA and HDA
> 
> On Wed, Aug 18, 2010 at 1:23 AM, Matt <lm7812 at gmail.com> wrote:
>> With the default settings in my Supermicro motherboard CentOS calls my
>> SATA drive /dev/hda.  If in bios setup I change 'Native Mode
>> Operation' from auto to 'Serial ATA' it boots up calling the drive
>> /dev/sda.  I keep thinking its likely better under /dev/sda not?  Any
>> problem switching it to that after install?
>
> If you have setup lvm and use labels for mounting your filesystem, the
> change should be hassle free. Otherwise you have to check grub.conf
> for the root parameter and change blockdevices in /etc/fstab.

I don't use LVM yet, but I found that using hard-coded 
/dev/sda?? or /dev/hda?? in /etc/fstab is not recommended.

If LVM supports them, partition labels are the way to go.

/dev/?da?? get screwed up if you create or destroy 
partitions. Whereas labels don't care about the actual 
device name in question.

>From my etc/fstab file:

##########################################################################
# device sda  - PRIMARY MASTER - BOTTOM BAY 4
##########################################################################

LABEL=Fedora-12-root   /              ext3       defaults     1 1

#/dev/sda5
LABEL=home        /home               ext3       defaults     1 2

# dev/sda6
LABEL=other-docs  /mnt/other-docs     ext3  rw,noauto,noexec,user 0 0

# dev/sda7
LABEL=tmp         /tmp                ext3       defaults     1 2

HTH

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------