Re: RPi4 died SD card weirdness?

Ramiro Aceves <[email protected]>
Newsgroups gmane.os.netbsd.general
Message-ID <[email protected]>
El 23/8/26 a las 10:27, Michael van Elst escribió:
> [email protected] (Ramiro Aceves) writes:
> 
>> Sorry, I placed commands not in the mount directory. This is the right test:
> 
> Can you please do a fsck before mounting ?


Thanks Michael:

[   121,777105] umass0 at uhub4 port 1 configuration 1 interface 0
[   121,777105] umass0: SanDisk (0x0781) SDDR-B531 (0xcfcb), rev 
2.10/29.20, addr 3
[   121,777105] umass0: using SCSI over Bulk-Only
[   121,777105] scsibus0 at umass0: 2 targets, 1 lun per target
[   122,197119] sd0 at scsibus0 target 0 lun 0: <SanDisk, SDDR-B531, 
2920> disk removable
[   122,197119] sd0: fabricating a geometry
[   122,197119] sd0: 119 GB, 121942 cyl, 64 head, 32 sec, 512 bytes/sect 
x 249737216 sectors
[   122,207118] sd0: fabricating a geometry
[   122,217118] sd0: GPT GUID: 987939cb-c08e-4614-88c3-6749b5d3104f
[   122,227118] dk2 at sd0: "EFI", 163840 blocks at 32768, type: msdos
[   122,227118] dk3 at sd0: "netbsd-root", 249536512 blocks at 196608, 
type: ffs

netbsd-acer# fsck -y /dev/dk2
** /dev/rdk2
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
265 files, 28839 free (28839 clusters)

netbsd-acer# pwd
/home/ramiro
netbsd-acer# cd
netbsd-acer# pwd
/root
netbsd-acer# mount /dev/dk2 disco_fat/
netbsd-acer# mount -v |grep dk2
/dev/dk2 on /root/disco_fat type msdos (local, fsid: 0xa802/0x764f, 
reads: sync 0 async 0, writes: sync 0 async 0)
netbsd-acer# cd disco_fat/
netbsd-acer# echo "testing" > test
netbsd-acer# cat test
testing
netbsd-acer# sync
netbsd-acer# sync
netbsd-acer# sync
netbsd-acer# ls
EFI                                     config.txt-bak
LICENCE.broadcom                        dtb
RPI4_UEFI_Firmware_v1.50.zip            firmware
RPI_EFI.fd                              fixup.dat
RPI_EFI.fd-bak                          fixup4.dat
Readme.md                               fixup4cd.dat
bcm2711-rpi-4-b.dtb                     fixup_cd.dat
bcm2711-rpi-400.dtb                     netbsd.img
bcm2711-rpi-cm4.dtb                     overlays
boot                                    start.elf
boot.cfg                                start4.elf
bootcode.bin                            start4cd.elf
cmdline.txt                             start_cd.elf
cmdline.txt-bak                         test
config.txt
netbsd-acer# cd ..
netbsd-acer# umount /dev/dk2
netbsd-acer# fsck -y /dev/dk2
** /dev/rdk2
** Phase 1 - Read and Compare FATs
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
265 files, 28839 free (28839 clusters)
netbsd-acer# mount /dev/dk2 disco_fat/
netbsd-acer# cd disco_fat/
netbsd-acer# cat test
cat: test: No such file or directory
netbsd-acer#
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.