NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: noob Question: How to format a floppy on a USB floppy disk drive (on RPi 4) ?
Le Tue, Nov 15, 2022 at 04:04:05PM -0800, Michael Cheponis a écrit :
>[...]
>
> I see other unexpected behavior; when I copy to identical files that are
> exactly 1/2 of 1.4 MB long
> # ll f1 f2
>
> -rw-r--r-- 1 mac wheel 737280 Nov 15 02:53 f1
> -rw-r--r-- 1 mac wheel 737280 Nov 15 02:54 f2
>
> Each of these is 1440 sectors (std 512-byte sectors); I know the diskette
> is 'perfect' (no defects), yet when I write both of these files to the
> mounted "/a" filesystem, only f1 gets fully written, and then it complains
> there's not enough room for f2:
>
> # cp f2 /a
> cp: /a/f2: No space left on device
> arm64# ll /a
> total 2592
> -rwxr-xr-x 1 root wheel 737280 Nov 15 08:06 f1*
> -rwxr-xr-x 1 root wheel 589824 Nov 15 23:59 f2*
>
Excuse me if que question is stupid, but is `a' (i suppose a 1.44MB
floppy device) an exactly 1.44MB device?
Because, for copying, one needs a filesystem; and the filesystem
metadata takes space. You can dd(1) exactly this amount; you can cp(1)
only less...
Or am I missing something?
Best,
--
Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
Home |
Main Index |
Thread Index |
Old Index