On Wed, October 13, 2010 3:04 pm, Matthias Johnson wrote:
> Let me clarify further.  My raid is with my partitions.  Sda1 and sdb1 are
> ext3 partitions.  Sda2 and sdb2 are swap.  Fdisk -l shows this but also
> shows the raid md0 equaling sda1 sdb1 and md1 equaling sda2 and sdb2 and
> says it doesn't recognize these partitions.

Okay.

> Again my thinking is because
> md? exist as virtual devices in dev fdisk tries to determine the partition
> type and fails but can read the individual partitions on the real disks
> themselves sd?.  Just a guess.

It's a good guess, and I'm honestly not sure.  One way of using fdisk is
to pass it a device to operate on, like 'fdisk /dev/sda', in which case it
should only read the partition table on the one device.

'fdisk -l' is a special case where you're trying to list all the partition
tables on devices that can have partitions.  What I'm not sure of is where
it gets this list of devices from.  If I had time, I'd get "apt-get source
util-linux" to get the code for the fdisk command, and examine how it's
done in the code.

I can understand how fdisk can be confused, though; /dev/md0 is a "device"
that contains more than one device that has a partition table, so there's
no way to list the "one" partition table for that virtual device.

   -- Chris

--

Chris Knadle
[email protected]

_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug

Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
  Nov 3 - Open Source Hardware: Bugs, Beagles and Beyond
  Dec 1 - IBM's Open Client Deployment
  Jan 5 - Building a Comunity Site with Drupal

Reply via email to