When using UUIDs or labels in fstab, they need to be marked:

LABEL=whatever
UUID=1234-ASDF-etc

Otherwise the system interprets it as a block device path as normal.

On Fri, Jan 19, 2024 at 9:56 AM Rich Shepard <rshep...@appl-ecosys.com> wrote:
>
> Tomas,
>
> Now, fdisk -l shows (for /dev/sdc (yes, it changed again):
> Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 104E50EF-09CF-435F-B1AE-5CD34E251F15
>
> Device     Start        End    Sectors  Size Type
> /dev/sdc1   2048 3907029134 3907027087  1.8T Linux filesystem
>
> In /etc/fstab is:
> 104E50EF-09CF-435F-B1AE-5CD34E251F15 /media/data2  ext4 auto,users,rw 1  2
>
> When I try to mount /media/data2 I'm told:
> # mount /media/data2
> mount: special device 104E50EF-09CF-435F-B1AE-5CD34E251F15 does not exist
>
> How do I enter these drives in fstab so they always are mounted
> (automatically or manually)?
>
> Rich
>

Reply via email to