Did it happen under command prompt or X11 session? Some window managers have disk stuff running in background that can need additional troubleshooting.
i perused /var/log/ but didn't find anything useful...
cat /var/log/messages | tail -n30
the hd is 2THow big is the FAT32 partition?
cat /var/log/messages | tail -n30
Jul 12 16:09:51 punkspresso kernel: g_vfs_done():da0s1[WRITE(offset=-1091283714048, length=32768)]error = 5
thanks...If you read this message, it means that the kernel was trying to write on the disk. It was trying to write 32KB, which makes sense. What doesn't make sense is that it is trying to write at a place that doesn't exist, namely a huge negative offset, about minus 1TB. The disk obviously can't do that (offsets go from 0 to the size), so it responds with error 5, which is an IO error.
In and of itself, that should not cause a system crash, but the error should be reported and the operation (probably your unmount) aborted. So superficially there are two problems: A write to a disk at a crazy offset, and a system crash. But most likely those are not separate problems, but caused by the same root cause. Which is hard to diagnose, in particular from a distance.
FORMAT /A:256K
. That's OK. -S sector-size
option.ok so the umount didn't crash the systemso i can mount it, and copy from it. i cannot copy to it.
and when i unmounted it, it froze x11 and crashed the same way, with the same message, trying to write at a crazy offset.
i tried and look in /var/crash but i do not have debug installed so the info is empty. the core is 1.4G so i guess i'm not uploading it.
so i ran fsck_msdosfs on it and it seems to have worked. at least i'm able to write stuff onto it.
i'll now try to unmount and cross fingers.
[posting this before i do it, in case it crashes again, noting it won't solve the issue, just maybe have fixed my fs]
2TB is the max allowable FAT32. I have a hunch that is the issue. I would try with a 1.9TB partition.
Also checkout your sectors.FAT32:
Maximum cluster size for FAT32 is 256K.
Windows:
Microsoft documentation and related blogs are all over the places. They generally state that max is 64K -- they rarely mentioned 256K.
I've read somewhere clusters larger than 64K in Windows may cause problem for calculating space (in some programs).
But you can have 256K cluster:FORMAT /A:256K
. That's OK.
BSDs:
newfs_msdos(8) in all three BSDSs i.e. FreeBSD, OpenBSD and NetBSD has a limit of 32768 (32K) for-S sector-size
option.
Question:...
[root@punkspresso /home/hern42/Downloads]# df -h /media/USB
Filesystem Size Used Avail Capacity Mounted on
/dev/msdosfs/Alaotra 1.8T 1.7T 113G 94% /media/USB
Yes, repartitioning would likely destroy any data on it.ok so the umount didn't crash the system
maybe partitioning the whole hd as 2 times 1TB could be a good idea but i'd need to backup the whole thing before, wouldn't i?
file -s /dev/msdosfs/Alaotra
because it includes the basic parameters of the FAT filesystem.ok i'll do that when i get the chance.The photo displaying the panic and the related kernel messages is sufficient to file a problem report. Start here: https://www.freebsd.org/support/
Include in your report the output offile -s /dev/msdosfs/Alaotra
because it includes the basic parameters of the FAT filesystem.