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
1 questions:
2 * what's going on?
3 * how to find out?
4 * how to fix?
5
6
7 symptoms:
8 * can't write (gives read/write error).
9 * but files can get created and deleted.
10 * newly created files, which also have failed writes
11 have 0 bytes in them.
12 * mount /dev/sda1 /boot is slow.
13 * umount /boot is slow.
14
15
16 cave ~ # fsck.vfat -v -a -w /dev/sda1
17 fsck.fat 4.1 (2017-01-24)
18 Checking we can access the last sector of the filesystem
19 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
20 Automatically removing dirty bit.
21 Boot sector contents:
22 System ID "mkfs.fat"
23 Media byte 0xf8 (hard disk)
24 512 bytes per logical sector
25 4096 bytes per cluster
26 32 reserved sectors
27 First FAT starts at byte 16384 (sector 32)
28 2 FATs, 32 bit entries
29 565248 bytes per FAT (= 1104 sectors)
30 Root directory start at cluster 2 (arbitrary size)
31 Data area starts at byte 1146880 (sector 2240)
32 140520 data clusters (575569920 bytes)
33 63 sectors/track, 255 heads
34 2048 hidden sectors
35 1126400 sectors total
36 Got 4096 bytes instead of 562088 at 16384
37
38
39
40
41 thoughts?
42
43 rgrds,
44 cm.
45
46 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>