[TriLUG] new SATA drive 101

Matthew Opoka matthew at opoka.name
Mon Oct 23 12:17:17 EDT 2006


Chris,

The reason you are not seeing your physical
devices in the fstab is due to the fact you are using Logical Volume
Management or LVM. LVM maps you physical device or physical partition
to a volume group and logical volume, ie: /dev/VolGroup00/LogVol00.  In
addition, you /boot partition is being mounted by the label name.
To figure out what physical partition is mapped to which volume, run the command below and notice the PV Name:
/usr/sbin/pvdisplay

One way to figure out which partition may be labeled /boot, run the commands below:
/sbin/tune2fs -l /dev/sda1 | grep name
/sbin/tune2fs -l /dev/sda2 | grep name
I'm assuming the later command will error out because I suspect it is a physical volume, pv.
The output of fdisk -l /dev/sda will also confirm which partition is the pv.


Matthew


----- Original Message ----
From: Christopher L Merrill <chris at webperformance.com>
To: Triangle Linux Users Group discussion list <trilug at trilug.org>
Sent: Monday, October 23, 2006 10:36:29 AM
Subject: [TriLUG] new SATA drive 101

So I'm back in the Linux world for a while - and thought I'd better check
my understanding before I format something important :>

I'm adding a new drive to a machine that has the following
1 SATA drive that was present during installation of the OS (CentOS 4)
1 CD-ROM drive
1 IDE HDD added post-OS-install, containing a single partition
1 new SATA drive (right out of the box)**

I recognize these devices and think I know what they are:
/dev/hda - CD ROM
/dev/hdc - IDE HDD
/dev/hdc1 - partition on IDE HDD
/dev/sda - 1st SATA HDD
/dev/sda1,2 - 2 primary partitions on 1st (original) SATA HDD

here's the one I want to be sure I've got right:
/dev/sdb -- the NEW, unformatted SATA HDD
(there is no /dev/sdb1)

The reason I'm a little unsure is that I don't see any references to
/dev/sda in the fstab:

> [root at lab6 ~]# cat /etc/fstab
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
> LABEL=/boot             /boot                   ext3    defaults        1 2
> none                    /dev/pts                devpts  gid=5,mode=620  0 0
> none                    /dev/shm                tmpfs   defaults        0 0
> none                    /proc                   proc    defaults        0 0
> none                    /sys                    sysfs   defaults        0 0
> /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
> /dev/hdc1               /data                   ext2    defaults        1 2
> /dev/hda                /media/cdrom            auto    pamconsole,fscontext=sys
> tem_u:object_r:removable_t,exec,noauto,managed 0 0
> [root at lab6 ~]#


Am I correct in my understanding that the SATA drives are mapped differently
from the IDE drives - and that /dev/sdb is my shiny new HDD?

Is formatting a SATA drive any different than an IDE drive?

TIA,
C



-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
chris at webperformance.com                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Website Load Testing and Stress Testing Software & Services
------------------------------------------------------------------------ -
-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/






More information about the TriLUG mailing list