Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INFO: how to format on ubuntu or other non-bsd distros #26

Closed
Quas7 opened this issue Oct 27, 2020 · 0 comments
Closed

INFO: how to format on ubuntu or other non-bsd distros #26

Quas7 opened this issue Oct 27, 2020 · 0 comments

Comments

@Quas7
Copy link

Quas7 commented Oct 27, 2020

EDIT: after reading more carefully, I catched to upload the appsroot not with the same methode as system.hex - works now! ;)

I had a very unstable file system under windows 10. This is what I tried to improve the situation but it did not improve much. ;)

I have no freebsd around here and I was to lazy to setup a vmware.
Therefore "newfs_msdos -F 12 -v la104 -O "MSDOS5.0" -S 4096 /dev/disk2" is not available for me.

I ran the following on Ubuntu to get the same result:
mkfs.msdos -s 1 -n la104 -f 2 -v -F 12 -S 4096 -r 512 /dev/sdd

Output of the formating process:

mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
attribute "partition" not found
/dev/sdd has 1 head and 4 sectors per track,
hidden sectors 0x0000;
logical sector size is 4096,
using 0xf8 media descriptor, with 512 sectors;
drive number 0x80;
filesystem has 2 12-bit FATs and 1 sector per cluster.
FAT size is 1 sector, and provides 505 clusters.
There is 1 reserved sector.
Root directory contains 512 slots and uses 4 sectors.
Volume ID is 22190e40, volume label la104      .

Comparison before running the format command:
./fat12tool /dev/sdd ls

Good jump inst
OemName: MSDOS5.0
Good boot sector signature
Bytes per sector: 512
Sectors per cluster: 1
Reserved sectors: 8
Number of FATs: 2
Number of root dir entries: 512
Total number of sectors: 4096
Number of sectors per FAT: 12
Number of hidden sectors: 0
Listing files at cluster 0
Read direntry at 4000 ok
DFU V3_6.1_D attr:08 low:0, crea:000000 0000, high:0000, modif:188d dd40, a:0000, start:0000 size:00000000
Read direntry at 4020 ok
B Inf.o attr:0f low:0, crea:727200 6d00, high:7400, modif:6900 6f00, a:6100, start:0000 size:0000006e
Read direntry at 4040 ok
Syst.e attr:0f low:0, crea:726d00 2000, high:6f00, modif:6c00 7500, a:5600, start:0000 size:0065006d
Read direntry at 4060 ok
SYSTEM~1.    attr:16 low:0, crea:5e6370 5d45, high:0000, modif:6470 5d45, a:5d45, start:0002 size:00000000
Read direntry at 4080 ok
A._.T.r attr:0f low:0, crea:7f6100 7300, high:6500, modif:7300 0000, a:6800, start:0000 size:ffffffff
Read direntry at 40a0 ok
~1      .TRA attr:22 low:0, crea:4a8a5a 7945, high:0000, modif:8a5a 7945, a:7945, start:0005 size:00001000
Read direntry at 40c0 ok
▒RASHE~1.EFM attr:12 low:0, crea:478a5a 7945, high:0000, modif:8a5a 7945, a:7945, start:0004 size:00000000
Read direntry at 40e0 ok
A.Tra.s attr:0f low:0, crea:256800 6500, high:0000, modif:ffff ffff, a:7300, start:0000 size:ffffffff
Read direntry at 4100 ok
TRASHE~1.    attr:12 low:0, crea:478a5a 7945, high:0000, modif:8a5a 7945, a:7945, start:0004 size:00000000
Read direntry at 4120 ok
A.fse.v attr:0f low:0, crea:da6500 6e00, high:7300, modif:6400 0000, a:7400, start:0000 size:ffffffff
Read direntry at 4140 ok
FSEVEN~1.    attr:12 low:0, crea:4d8a5a 7945, high:0000, modif:8a5a 7945, a:7945, start:000d size:00000000
Read direntry at 4160 ok

after formating:
./fat12tool /dev/sdd ls

Good jump inst
OemName: MSDOS5.0
Good boot sector signature
Bytes per sector: 512
Sectors per cluster: 1
Reserved sectors: 8
Number of FATs: 2
Number of root dir entries: 512
Total number of sectors: 4096
Number of sectors per FAT: 12
Number of hidden sectors: 0
Listing files at cluster 0
Read direntry at 4000 ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant