On Wed, 6 Aug 2008 23:12:00 Amedee Van Gasse wrote:
On Wed, August 6, 2008 01:37, Randall R Schulz wrote:
Use "file -s" command on the partition's /dev entry. You usually must be root to do this.
On my system:
# file -s /dev/sd[a-z][0-9]
Wow, that's a real nice solution. I'm not near such a box now, but would this also work for RAID (md) and LVM devices?
-- Amedee
With a slight change to the regex (or just specifying the /dev/md<n> device directly) it does work correctly for Raid 1 partitions (showing them as the underlying format, in my case ext3) but not for linear raid partitions. It shows the first part as expected, but the second part is shown as an "MPEG sequence" and the third simply as "data". I don't have any LVM partitions so I can't comment on that. -- =================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au =================================================== Rule of the Great: When people you greatly admire appear to be thinking deep thoughts, they probably are thinking about lunch.