Re: Unable to access GPT disk partitions - No such file or directory

From: Wojciech Puchar <wojtek_at_puchar.net>
Date: Wed, 13 Sep 2023 17:20:29 UTC
>    Mode: r0w0e0
> 
> The /dev entries look OK to me:
> $ ls -l /dev/da2*
> crw-r-----  1 root  operator  0x66 Sep 13 14:01 /dev/da2
> crw-r-----  1 root  operator  0x6c Sep 13 14:01 /dev/da2p1
> crw-r-----  1 root  operator  0x6d Sep 13 14:01 /dev/da2p2
> crw-r-----  1 root  operator  0x6e Sep 13 14:01 /dev/da2p3
> crw-r-----  1 root  operator  0x6f Sep 13 14:01 /dev/da2p4
> $ ls -l /dev/gpt/
> total 0
> crw-r-----  1 root  operator  0x75 Sep 13 14:01 gpboot1
> crw-r-----  1 root  operator  0x77 Sep 13 14:01 gprootfs1
> crw-r-----  1 root  operator  0x79 Sep 13 14:01 gpswap1
> crw-r-----  1 root  operator  0x7b Sep 13 14:01 gpusrfs1
>

i don't think it's FreeBSD problem at all.

Can you do dd from da2 or da2p2 to /dev/null?

> However, any attempt to access the /dev entries fails with "No such file or directory":
> 
> $ sudo fsck /dev/da2p2
> Can't open /dev/da2p2: No such file or directory
> $ sudo fsck /dev/da2p4
> Can't open /dev/da2p4: No such file or directory
> $ sudo fsck /dev/gpt/gprootfs1 
> Can't open /dev/gpt/gprootfs1: No such file or directory
> $ sudo fsck /dev/gpt/gpusrfs1 
> Can't open /dev/gpt/gpusrfs1: No such file or directory
> 
> I've never had an issue like this before and I can't find anything using Google searches that resolves access to these disk devices.
> Any ideas?
> 
> Thanks,
> Guy Helmer, Ph.D.
> 
> 
>