Git Product home page Git Product logo

Comments (15)

namjaejeon avatar namjaejeon commented on June 18, 2024

Can you show me the value after commanding the below ?

# cat /sys/block/sda/queue/hw_sector_size 

from exfatprogs.

fijam avatar fijam commented on June 18, 2024
cat /sys/block/sdb/queue/hw_sector_size
512

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

Please do this also.

$ lsblk --topology /dev/vda
NAME ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED       RQ-SIZE  RA WSAME
vda          0   4096      0    4096    4096    1 mq-deadline     256 128    0B

You can command "lsblk --topology /dev/sdb"

from exfatprogs.

fijam avatar fijam commented on June 18, 2024
# lsblk --topology /dev/sdb
NAME   ALIGNMENT MIN-IO OPT-IO PHY-SEC LOG-SEC ROTA SCHED       RQ-SIZE  RA WSAME
sdb            0   4096      0    4096     512    1 mq-deadline       2 128    0B
├─sdb1      3072   4096      0    4096     512    1 mq-deadline       2 128    0B
└─sdb2         0   4096      0    4096     512    1 mq-deadline       2 128    0B

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

okay. Could you please try to mount after formatting your usb drive using mkfs.exfat ?

from exfatprogs.

fijam avatar fijam commented on June 18, 2024

I can, but I need to back up the data first. It will take a few hours. I will report back!

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

Ah..Okay, no need to do it if you need backup.

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

@cvubrugier Could you please help me fix this issue ? I don't have this type of HDD.
His hard has 4K hw sector and 512B logical sector. I wonder if this difference is causing this issue.
Do you have this type of HDD drive ?

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

@fijam if you try to mount /dev/sdb2 ?

from exfatprogs.

fijam avatar fijam commented on June 18, 2024

Mounting sdb2 in fact works! Although I don't understand why Windows creates two volumes (the drive only appears as one volume in Windows).

Apologies for the trouble.

from exfatprogs.

cvubrugier avatar cvubrugier commented on June 18, 2024

@namjaejeon wrote:

@cvubrugier Could you please help me fix this issue ? I don't have this type of HDD.
His hard has 4K hw sector and 512B logical sector. I wonder if this difference is causing this issue.
Do you have this type of HDD drive ?

I could arrange for that. Most modern HDDs have 4 KB sectors but emulate 512 bytes sectors (512e) so that even firmware or OSes that do not support 4 KB sectors can work with them.

I guess the problem reported by @fijam is not caused by the HDD sector size.

dump.exfat /dev/sdb1
exfatprogs version : 1.1.3
bogus sector size bits : 0

I think sector size bits should be 9 (1 << 9 == 512).

tune.exfat -v /dev/sdb1
exfatprogs version : 1.1.3
[exfat_get_blk_dev_info: 202] Block device name : /dev/sdb1
[exfat_get_blk_dev_info: 203] Block device offset : 17408
[exfat_get_blk_dev_info: 204] Block device size : 134217728

So the size of the first partition is 128 MiB whereas the HDD capacity is 3 TB. This looks like an EFI System Partition.

Mounting sdb2 in fact works! Although I don't understand why Windows creates two volumes (the drive only appears as one volume in Windows).

This is consistent with our guess that the first partition is an EFI System Partition.

@fijam, could you run the following command? With that, we can verify if the first partition is an EFI System Partition.

$ sudo blkid /dev/sdb1

from exfatprogs.

fijam avatar fijam commented on June 18, 2024

Looks like you got it right:

# blkid /dev/sdb1
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="69faad38-f483-4939-a7bf-c7d6cef4828b"

from exfatprogs.

cvubrugier avatar cvubrugier commented on June 18, 2024

Maybe the exfatprogs utilities do not display an error if the file system magic does not match the one for exFAT.

In your situation, I think fsck.exfat, dump.exfat, and tune.exfat should have warned you that it is not an exFAT file system. Instead of that, the commands reported that the file system was corrupted.

There is probably room for improvement here.

from exfatprogs.

namjaejeon avatar namjaejeon commented on June 18, 2024

@cvubrugier Fully agreed:)

from exfatprogs.

hclee avatar hclee commented on June 18, 2024

@cvubrugier
Thank you for comments. I will fix it.

from exfatprogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.