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

From: Guy Helmer <guy.helmer_at_gmail.com>
Date: Wed, 13 Sep 2023 18:57:28 UTC
> On Sep 13, 2023, at 12:20 PM, Wojciech Puchar <wojtek@puchar.net> wrote:
> 
>>    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.

Hi, Wojciech, thanks for the response - appreciate any assistance. dd seems to be able to read OK from the devices:

$ sudo dd if=/dev/da2 of=/dev/null bs=4096 count=1000
1000+0 records in
1000+0 records out
4096000 bytes transferred in 0.109224 secs (37500992 bytes/sec)
$ sudo dd if=/dev/da2p2 of=/dev/null bs=4096
1048576+0 records in
1048576+0 records out
4294967296 bytes transferred in 56.561789 secs (75934078 bytes/sec)
$ sudo dd if=/dev/da2p4 of=/dev/null bs=4096 count=1000
1000+0 records in
1000+0 records out
4096000 bytes transferred in 0.119445 secs (34291805 bytes/sec)

Guy