Jörg Sommer hat am Mon 25. Apr, 23:21 (+0200) geschrieben:
> Ben Hutchings hat am Sun 03. Apr, 03:06 (+0100) geschrieben:
> > /sbin/blkid -o device | while read device; do
> > echo "$device:"
> > /sbin/blkid -o udev -s LABEL -s UUID -s TYPE "$device"
> > done
>
> /dev/sda1
> ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> ID_FS_UUID_ENC=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
> ID_FS_LABEL=_grml_:0
> ID_FS_LABEL_ENC=\x27grml\x27:0
> ID_FS_TYPE=linux_raid_member
> /dev/sda2
> ID_FS_LABEL=Linux_Var
> ID_FS_LABEL_ENC=Linux_Var
> ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202
> ID_FS_UUID_ENC=60342ce9-209a-4b60-97b5-7d9309751202
> ID_FS_TYPE=ext4
That's strange. sda2 is a RAID member. I don't know why blkid thinks it's
a standalone filesystem.
# mdadm -E /dev/sda2
/dev/sda2:
Magic : a92b4efc
Version : 0.90.00
UUID : 2e95c5a4:d658a167:cf89181d:5e6e3dc4
Creation Time : Mon Jan 4 22:24:41 2010
Raid Level : raid1
Used Dev Size : 68380608 (65.21 GiB 70.02 GB)
Array Size : 68380608 (65.21 GiB 70.02 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Update Time : Mon Apr 25 23:25:53 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : 79364718 - correct
Events : 837534
Number Major Minor RaidDevice State
this 0 8 2 0 active sync /dev/sda2
0 0 8 2 0 active sync /dev/sda2
1 1 8 34 1 active sync /dev/sdc2
Do you know which of the UUIDs should be equal? The devices are grouped
as they belong together.
# for i in sda1 sdc1 md0 sda2 sdc2 md1; do printf '%-4s: ' $i; blkid -o udev -s UUID /dev/$i G -v _ENC; done
sda1: ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
sdc1: ID_FS_UUID=a59a6be1-01ac-2c7a-12ab-c8dc8e4c3255
md0 : ID_FS_UUID=366ac7f5-493d-4dc4-bf54-d761b477405c
sda2: ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202
sdc2: ID_FS_UUID=2e95c5a4-d658-a167-cf89-181d5e6e3dc4
md1 : ID_FS_UUID=60342ce9-209a-4b60-97b5-7d9309751202
Bye, Jörg.
--
Nutze die Talente, die du hast. Die Wälder wären sehr still,
wenn nur die begabtesten Vögel sängen. (Henry van Dyke)
Attachment:
signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP