On Tuesday 09 July 2019 15:14:38 Steve Magnani wrote:
On 7/9/19 1:56 PM, Pali RohÃr wrote:It is USB mass storage device? If yes, then grub2 should be able to
Can grub2 recognize such disks?I'm not sure what you're asking here. The physical interface to this drive is USB,
normally use. Read its content, etc... You can use "ls" grub command to
list content of disk with supported filesystem.
and it's not designed for general-purpose storage (or booting). That said, if youThere is also some way for using grub's fs implementation to read disk
have some grub2 commands you want me to run against this drive/partition let me know.
images. It is primary used by grub's automated tests. I do not know
right now how to use, I need to look grub documentation. But I have
already used it during implementation of UDF UUID in grub.
Try to use top of master branch. That mentioned commit is already in gitAlso can you check if libparted from git master branch can recognizeBuild failed:
such disk? In following commit I added support for recognizing UDF
filesystem in libparted, it is only in git master branch, not released:
http://git.savannah.gnu.org/cgit/parted.git/commit/?id=8740cfcff3ea839dd6dc8650dec0a466e9870625
In file included from pt-tools.c:114:0:
pt-tools.c: In function 'pt_limit_lookup':
pt-limit.gperf:78:1: error: function might be candidate for attribute 'pure' [-Werror=suggest-attribute=pure]
If you send me some other SHA to try I can attempt a rebuild.
master.
And if it still produce that error, compile without -Werror flag (or add
-Wno-error).
Main problem with this hack is that it breaks detection of valid UDFISSUE 2: Inability of Windows chkdsk to analyze 4K-sector mediaFair enough, but it's also reasonable to assume the bugginess is
formatted by mkudffs.
This is really bad :-(
It would be possible to work around this by tweaking mkudffs toI would like to avoid this hack. If chkdsk is unable to detect such
insert dummy BOOT2 components in between the BEA/NSR/TEA:
0000: 00 42 45 41 30 31 01 00 00 00 00 00 00 00 00 00 .BEA01..........
0800: 00 42 4f 4f 54 32 01 00 00 00 00 00 00 00 00 00 .BOOT2..........
1000: 00 4e 53 52 30 33 01 00 00 00 00 00 00 00 00 00 .NSR03..........
1800: 00 42 4f 4f 54 32 01 00 00 00 00 00 00 00 00 00 .BOOT2..........
2000: 00 54 45 41 30 31 01 00 00 00 00 00 00 00 00 00 .TEA01..........
That would introduce a slight ECMA-167 nonconformity, but Linux
does not object and Windows actually performs better. I would
have to tweak udffsck though since I believe this could confuse
its automatic detection of medium block size.
filesystem, it is really a good idea to let it do try doing filesystem
checks and recovery? You are saying that udfs.sys can recognize such
disk and mount it. I think this should be enough.
limited to the VRS corner case. AFAIK that's the only place in ECMA-167
where there is a difference in layout specific to 4K sectors.
With the BOOT2 band-aid chkdsk is able to analyze filesystems on 4Kn media.
filesystems which use VRS for block size detection. I do not know which
implementation may use VRS for block size detection, but I do not see
anything wrong in this approach.
I use chkdsk frequently to double-check UDF generation firmwareVojtÄch wrote in his thesis that MS's chkdsk sometimes put UDF
filesystem into more broken state as before.
A udffsck discussion should probably continue in another thread.I am writing, and also udffsck work-in-progress.Have you used some VojtÄch's parts? Or are you writing it from scratch?