Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2023 13:57:28 -0500
From:      Guy Helmer <guy.helmer@gmail.com>
To:        Wojciech Puchar <wojtek@puchar.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Unable to access GPT disk partitions - No such file or directory
Message-ID:  <4FA71559-A6D5-4DDF-95A1-DA714C5C32EB@gmail.com>
In-Reply-To: <7641162f-746f-8fda-2fbc-731bd17e844f@puchar.net>
References:  <0CAE8FD0-9F09-4CF6-A402-DF30B039DF23@gmail.com> <7641162f-746f-8fda-2fbc-731bd17e844f@puchar.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_1560409D-1B16-410E-8314-EDE9DB7E1515
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

> On Sep 13, 2023, at 12:20 PM, Wojciech Puchar <wojtek@puchar.net> =
wrote:
>=20
>>    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
>>=20
>=20
> i don't think it's FreeBSD problem at all.
>=20
> Can you do dd from da2 or da2p2 to /dev/null?
>=20
>> 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=20
>> Can't open /dev/gpt/gprootfs1: No such file or directory
>> $ sudo fsck /dev/gpt/gpusrfs1=20
>> 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=3D/dev/da2 of=3D/dev/null bs=3D4096 count=3D1000
1000+0 records in
1000+0 records out
4096000 bytes transferred in 0.109224 secs (37500992 bytes/sec)
$ sudo dd if=3D/dev/da2p2 of=3D/dev/null bs=3D4096
1048576+0 records in
1048576+0 records out
4294967296 bytes transferred in 56.561789 secs (75934078 bytes/sec)
$ sudo dd if=3D/dev/da2p4 of=3D/dev/null bs=3D4096 count=3D1000
1000+0 records in
1000+0 records out
4096000 bytes transferred in 0.119445 secs (34291805 bytes/sec)

Guy


--Apple-Mail=_1560409D-1B16-410E-8314-EDE9DB7E1515
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: =
after-white-space;"><div><blockquote type=3D"cite"><div>On Sep 13, 2023, =
at 12:20 PM, Wojciech Puchar &lt;wojtek@puchar.net&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta =
charset=3D"UTF-8"><blockquote type=3D"cite" style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;">&nbsp; &nbsp;Mode: r0w0e0<br>The /dev entries =
look OK to me:<br>$ ls -l /dev/da2*<br>crw-r----- &nbsp;1 root =
&nbsp;operator &nbsp;0x66 Sep 13 14:01 /dev/da2<br>crw-r----- &nbsp;1 =
root &nbsp;operator &nbsp;0x6c Sep 13 14:01 /dev/da2p1<br>crw-r----- =
&nbsp;1 root &nbsp;operator &nbsp;0x6d Sep 13 14:01 =
/dev/da2p2<br>crw-r----- &nbsp;1 root &nbsp;operator &nbsp;0x6e Sep 13 =
14:01 /dev/da2p3<br>crw-r----- &nbsp;1 root &nbsp;operator &nbsp;0x6f =
Sep 13 14:01 /dev/da2p4<br>$ ls -l /dev/gpt/<br>total 0<br>crw-r----- =
&nbsp;1 root &nbsp;operator &nbsp;0x75 Sep 13 14:01 =
gpboot1<br>crw-r----- &nbsp;1 root &nbsp;operator &nbsp;0x77 Sep 13 =
14:01 gprootfs1<br>crw-r----- &nbsp;1 root &nbsp;operator &nbsp;0x79 Sep =
13 14:01 gpswap1<br>crw-r----- &nbsp;1 root &nbsp;operator &nbsp;0x7b =
Sep 13 14:01 gpusrfs1<br><br></blockquote><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;">i don't =
think it's FreeBSD problem at all.</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;">Can you =
do dd from da2 or da2p2 to /dev/null?</span><br style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: 400; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><blockquote type=3D"cite" style=3D"font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: auto; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;">However, any attempt to access the /dev entries =
fails with "No such file or directory":<br>$ sudo fsck =
/dev/da2p2<br>Can't open /dev/da2p2: No such file or directory<br>$ sudo =
fsck /dev/da2p4<br>Can't open /dev/da2p4: No such file or directory<br>$ =
sudo fsck /dev/gpt/gprootfs1&nbsp;<br>Can't open /dev/gpt/gprootfs1: No =
such file or directory<br>$ sudo fsck /dev/gpt/gpusrfs1&nbsp;<br>Can't =
open /dev/gpt/gpusrfs1: No such file or directory<br>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.<br>Any =
ideas?<br>Thanks,<br>Guy Helmer, =
Ph.D.</blockquote></div></blockquote><br></div><div>Hi, Wojciech, thanks =
for the response - appreciate any assistance. dd seems to be able to =
read OK from the devices:</div><div><br></div><div><div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">$ sudo dd =
if=3D/dev/da2 of=3D/dev/null bs=3D4096 count=3D1000</div><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">1000+0 records =
in</div><div style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, =
0);">1000+0 records out</div><div style=3D"caret-color: rgb(0, 0, 0); =
color: rgb(0, 0, 0);">4096000 bytes transferred in 0.109224 secs =
(37500992 bytes/sec)</div><div>$ sudo dd if=3D/dev/da2p2 of=3D/dev/null =
bs=3D4096</div><div>1048576+0 records in</div><div>1048576+0 records =
out</div><div>4294967296 bytes transferred in 56.561789 secs (75934078 =
bytes/sec)</div><div><div>$ sudo dd if=3D/dev/da2p4 of=3D/dev/null =
bs=3D4096 count=3D1000</div><div>1000+0 records in</div><div>1000+0 =
records out</div><div>4096000 bytes transferred in 0.119445 secs =
(34291805 =
bytes/sec)</div></div></div></div><br><div>Guy</div><div><br></div></body>=
</html>=

--Apple-Mail=_1560409D-1B16-410E-8314-EDE9DB7E1515--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA71559-A6D5-4DDF-95A1-DA714C5C32EB>