[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using UUID's for a raid1 in /etc/fstab instead of /dev/md0



SNIP

I am on amd64 lenny (with some sid), 2.6.24
I don't normally use UUID's i have been using labels

mdadm --detail /dev/md1 | grep UUID
           UUID : ba8c4627:6e74a6c4:1a2e6c15:22feafcf
tune2fs -l /dev/md1 | grep  UUID
Filesystem UUID:          ec3e3537-4e36-443e-8132-5b0f03dd0978

As you can see the UUID ids are different between md1, I don't have a
/dev/disk/by-uuid (i remember having it before)

here is the output of blkid (which i believe is used to make up the links
in /dev/disk/by-uuid)
 blkid  | grep md1
/dev/md1: LABEL="/" UUID="ec3e3537-4e36-443e-8132-5b0f03dd0978"
SEC_TYPE="ext2" TYPE="ext3"

so if i wanted to mount my / partition (/dev/md0 is /boot), then I could
put
UUID=ec3e3537-4e36-443e-8132-5b0f03dd0978 / auto ...... in my fstab file

Alex
Alex,

I think you have it, though I can't explain the different UUIDs from tune2fs and mdadm --detail. I would rather put in the fs type rather then auto, but that is a matter of style. What is the result?

damon@damtek.com


Reply to: