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
[-- Attachment #1 --] > 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 [-- Attachment #2 --] <html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div>On Sep 13, 2023, at 12:20 PM, Wojciech Puchar <wojtek@puchar.net> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><blockquote type="cite" style="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;"> Mode: r0w0e0<br>The /dev entries look OK to me:<br>$ ls -l /dev/da2*<br>crw-r----- 1 root operator 0x66 Sep 13 14:01 /dev/da2<br>crw-r----- 1 root operator 0x6c Sep 13 14:01 /dev/da2p1<br>crw-r----- 1 root operator 0x6d Sep 13 14:01 /dev/da2p2<br>crw-r----- 1 root operator 0x6e Sep 13 14:01 /dev/da2p3<br>crw-r----- 1 root operator 0x6f Sep 13 14:01 /dev/da2p4<br>$ ls -l /dev/gpt/<br>total 0<br>crw-r----- 1 root operator 0x75 Sep 13 14:01 gpboot1<br>crw-r----- 1 root operator 0x77 Sep 13 14:01 gprootfs1<br>crw-r----- 1 root operator 0x79 Sep 13 14:01 gpswap1<br>crw-r----- 1 root operator 0x7b Sep 13 14:01 gpusrfs1<br><br></blockquote><br style="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="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="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="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="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="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="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="cite" style="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 <br>Can't open /dev/gpt/gprootfs1: No such file or directory<br>$ sudo fsck /dev/gpt/gpusrfs1 <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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">$ sudo dd if=/dev/da2 of=/dev/null bs=4096 count=1000</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">1000+0 records in</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">1000+0 records out</div><div style="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=/dev/da2p2 of=/dev/null bs=4096</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=/dev/da2p4 of=/dev/null bs=4096 count=1000</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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA71559-A6D5-4DDF-95A1-DA714C5C32EB>
