-
Notifications
You must be signed in to change notification settings - Fork 27
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
lsblk.sh lists exfat as ntfs filesystem #3
Comments
Can you send me output of these?
Also sometimes when you create new fileystem on old one without cleaning the beginning of device with dd(8) - For example: The above can be detected both as NTFS or exFAT depending on the method used. |
|
Can you also send me output of this? Thanks.
|
The /dev/da1s1 is the exFAT partition? |
Yes. |
Please show me also |
=> 63 15728577 da1 MBR (7.5G) => 63 15728577 diskid/DISK-AA00000000000489 MBR (7.5G) This is the output of gpart show -p /dev/da1 in case you want it: |
It looks like TYPE_EXFAT_HELPER is returning nothing from the sh -x output, but I might be reading that wrong. |
The current TYPE_EXFAT_HELPER is only useful when exFAT is created on whole device. Useless for exFAT created on partition. Working on small 'workaround' for that ... |
Try this version: |
I get errors: I ran that with sh in a tcsh shell. |
I will recreate this exFAT on MBR and will figure something out. |
I reran the script (not the modified one, but a fresh script from the repository) on 12.2-STABLE (stable/12-n233912-0d2b77383b0) and the exfat partition is now identified as ms-basic-data, although it seems this is because windows is leaving a 1.0 M blank partition before writing the data partition. This is the case after having windows writing 0s to the device before formatting as exfat. This is opposed to earlier in the thread when it wrote exfat in the first partition. I noticed that windows was setting the drive as GPT after it formatted so I don't know if this is different from last time, although this may not be the case because here is the output when I typed the following commands (from earlier in the thread):
Output of gpart show -p: In case you needed it here are images of the aforementioned usb drive that was formatted on Windows. These were copied with conv=sync,noerror: |
Thakns for the report and the images. I will look into that. Regards |
When I run lsblk with a drive (I tested with an external drive connected via usb) formatted on Windows as exfat, lsblk.sh will list the filesystem of the relevant formatted partition as ntfs instead of exfat. On Linux, lsblk -fs would list the relevant formatted partition as exfat.
The text was updated successfully, but these errors were encountered: