all:
Bringing up a new server, I have the following situation. I can mount the device at /dev/sda1 manually via this command: mount /dev/sda1 /owncloud
But when I use the recommended approach (UUID) in /etc/fstab, I receive an error that the device does not exist. This is contrary to what blkid tells me, so I'm confused. (One post elsewhere suggested telling the kernel to re-read the partition table so that's what the first command that follows is all about.)
/etc> sudo blockdev --rereadpt /dev/sda
/etc> blkid
/dev/mmcblk0p1: LABEL_FATBOOT="boot" LABEL="boot" UUID="6341-C9E5" TYPE="vfat" PARTUUID="ea7d04d6-01"
/dev/mmcblk0p2: LABEL="rootfs" UUID="80571af6-21c9-48a0-9df5-cffb60cf79af" TYPE="ext4"
PARTUUID="ea7d04d6-02"
/dev/sda1: LABEL="owncloud" UUID="172715c3-abba-4a4b-b81e-47c9bbe28faf" TYPE="ext4"
PARTUUID="27760ec0-01"
/dev/mmcblk0: PTUUID="ea7d04d6" PTTYPE="dos"
/etc> mount /owncloud
mount: /owncloud: special device 172715c3-abba-4a4b-b81e-47c9bbe28faf does not exist.
/etc> cat /etc/fstab
proc /proc proc defaults 0 0
PARTUUID=ea7d04d6-01 /boot vfat defaults 0 2
PARTUUID=ea7d04d6-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
172715c3-abba-4a4b-b81e-47c9bbe28faf /owncloud ext4 permissions,locale=en_us.utf8 0 1
/etc> > mount /dev/sda1 /owncloud; mount|grep sda
/dev/sda1 on /owncloud type ext4 (rw,relatime)
Any ideas why this wouldn't work?
Thanks for your help.