Gentoo Archives: gentoo-user

From: Caveman Al Toraboran <toraboracaveman@××××××××××.com>
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] repair uefi vfat /boot?
Date: Sat, 21 Mar 2020 13:49:17
Message-Id: RPeKweA_tdCfm1_rhF78LQW4XD2aSCbEwloypLf_Y71CFlyj8CeTu1cg2YCYBK_VCUKgeutlOQIW1zuzh7agOa2xTdb_txzk0hVH2Bz6DfI=@protonmail.com
questions:
 * what's going on?
 * how to find out?
 * how to fix?


symptoms:
 * can't write (gives read/write error).
 * but files can get created and deleted.
 * newly created files, which also have failed writes
   have 0 bytes in them.
 * mount /dev/sda1 /boot is slow.
 * umount /boot is slow.


cave ~ # fsck.vfat -v -a -w /dev/sda1
fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
    565248 bytes per FAT (= 1104 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1146880 (sector 2240)
    140520 data clusters (575569920 bytes)
63 sectors/track, 255 heads
      2048 hidden sectors
   1126400 sectors total
Got 4096 bytes instead of 562088 at 16384




thoughts?

rgrds,
cm.

Sent with ProtonMail Secure Email.

Replies

Subject Author
Re: [gentoo-user] repair uefi vfat /boot? Michael <confabulate@××××××××.com>
Re: [gentoo-user] repair uefi vfat /boot? Stefan Schmiedl <s@×××.de>