Re: [opensuse] How to tell what format is a partions



On Tuesday 05 August 2008 16:11, Chuck Payne wrote:
Guy,

This might be a nubie question, but last night I installed a new sata
card and 1TB drive. Well, I thought I had made the 1TB drive ext3,
but when I got to mount it, I get wrong super block error. Now, if I
tell that to mount it with auto it does. So how can I tell what
format is the partions, because it not ext3.

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]
/dev/sda1: ReiserFS V3.6 block size 4096 (mounted or unclean) num blocks 73254384 r5 hash
/dev/sdb1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)
/dev/sdb2: x86 boot sector, Microsoft Windows XP MBR
/dev/sdb3: Linux/i386 swap file (new style) 1 (4K pages) size 1048240 pages
/dev/sdb4: x86 boot sector, extended partition table
/dev/sdc1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)
/dev/sdd1: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)
/dev/sdd2: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)
/dev/sdd3: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs)


This works on CDs and DVDs, too, if there's a disc in the drive. and
will show you the volume label.


Thanks.


Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx